chore: vim improvements
10812563
3 file(s) · +16 −1
| 6 | 6 | \ [ 'gitbranch', 'readonly', 'filename', 'modified' ] ], |
|
| 7 | 7 | \ 'right': [ [ 'lineinfo' ], [ 'fileformat', 'fileencoding', 'filetype' ] ] |
|
| 8 | 8 | \ }, |
|
| 9 | + | \ 'mode_map': { |
|
| 10 | + | \ 'n' : 'N', |
|
| 11 | + | \ 'i' : 'I', |
|
| 12 | + | \ 'R' : 'R', |
|
| 13 | + | \ 'v' : 'V', |
|
| 14 | + | \ 'V' : 'VL', |
|
| 15 | + | \ "\<C-v>": 'VB', |
|
| 16 | + | \ 'c' : 'C', |
|
| 17 | + | \ 's' : 'S', |
|
| 18 | + | \ 'S' : 'SL', |
|
| 19 | + | \ "\<C-s>": 'SB', |
|
| 20 | + | \ 't' : 'T' |
|
| 21 | + | \ }, |
|
| 9 | 22 | \ 'component_function': { |
|
| 10 | - | \ 'gitbranch': 'FugitiveHead', |
|
| 11 | 23 | \ 'filename': 'LightlineFilename' |
|
| 12 | 24 | \ } |
|
| 13 | 25 | \ } |
| 9 | 9 | set showmatch |
|
| 10 | 10 | set backspace=indent,eol,start |
|
| 11 | 11 | set autoread |
|
| 12 | + | set updatetime=100 " Drives CursorHold; gitgutter signs refresh on it |
|
| 12 | 13 | set lazyredraw |
|
| 13 | 14 | syntax on |
|
| 14 | 15 | set termguicolors |
| 21 | 21 | call s:ensure('junegunn/fzf.vim') |
|
| 22 | 22 | call s:ensure('itchyny/lightline.vim') |
|
| 23 | 23 | call s:ensure('yegappan/lsp') |
|
| 24 | + | call s:ensure('tpope/vim-fugitive') |
|
| 25 | + | call s:ensure('airblade/vim-gitgutter') |
|
| 24 | 26 | ||
| 25 | 27 | " Colorscheme |
|
| 26 | 28 | call s:ensure('stevedylandev/darkmatter-nvim') |