Update .vimrc
8b986284e7d8fd54976d8ff1de3743002c73e9bf
1 parent
621b9e2d
.vimrc
+3 -12
| 82 | 82 | set t_Co=256 |
|
| 83 | 83 | endif |
|
| 84 | 84 | ||
| 85 | 85 | let mapleader = "\<Space>" |
|
| 86 | 86 | ||
| 87 | - | " Deoplete (autocomplete) |
|
| 87 | + | " inccommand |
|
| 88 | 88 | if has("nvim") |
|
| 89 | - | let g:deoplete#enable_at_startup = 1 |
|
| 90 | - | let g:deoplete#disable_auto_complete = 1 |
|
| 91 | - | inoremap <silent><expr> <TAB> |
|
| 92 | - | \ pumvisible() ? "\<C-n>" : |
|
| 93 | - | \ <SID>check_back_space() ? "\<TAB>" : |
|
| 94 | - | \ deoplete#mappings#manual_complete() |
|
| 95 | - | function! s:check_back_space() |
|
| 96 | - | let col = col('.') - 1 |
|
| 97 | - | return !col || getline('.')[col - 1] =~ '\s' |
|
| 98 | - | endfunction |
|
| 89 | + | set inccommand=nosplit |
|
| 99 | 90 | endif |
|
| 100 | 91 | ||
| 101 | 92 | " Save on focus lost |
|
| 102 | 93 | au FocusLost * call s:SaveOnFocusLost() |
|
| 103 | 94 | function! s:SaveOnFocusLost() |
| 122 | 113 | au FileType fountain setlocal nonumber noai nocin nosi inde= wrap linebreak |
|
| 123 | 114 | ||
| 124 | 115 | au BufRead,BufNewFile *.txt setf markdown |
|
| 125 | 116 | au BufRead,BufNewFile *.md setf markdown |
|
| 126 | 117 | au BufRead,BufNewFile *.tex setf tex |
|
| 118 | + | au BufRead,BufNewFile *.todo setf todo |
|
| 127 | 119 | ||
| 128 | 120 | " Remove trailing whitespace on save |
|
| 129 | 121 | autocmd BufWritePre * call s:StripTrailing() |
|
| 130 | 122 | function! s:StripTrailing() |
|
| 131 | 123 | let l = line(".") |
| 283 | 275 | ||
| 284 | 276 | Plug 'tpope/vim-fugitive' |
|
| 285 | 277 | Plug 'tpope/vim-commentary' |
|
| 286 | 278 | Plug 'tpope/vim-markdown' |
|
| 287 | 279 | Plug 'mileszs/ack.vim' |
|
| 288 | - | Plug 'shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' } |
|
| 289 | 280 | Plug 'bronson/vim-visual-star-search' |
|
| 290 | 281 | Plug 'ndmitchell/ghcid', { 'rtp': 'plugins/nvim' } |
|
| 291 | 282 | Plug 'cloudhead/neovim-fuzzy' |
|
| 292 | 283 | Plug 'cloudhead/shady.vim' |
|
| 293 | 284 | Plug 'tikhomirov/vim-glsl' |