Update vimrc

This commit is contained in:
Rob Watson 2021-03-19 02:31:37 +01:00
parent f3d39d8f00
commit 3332dc8c36
1 changed files with 15 additions and 1 deletions

16
vimrc
View File

@ -182,9 +182,24 @@ let g:lightline = {
\ 'gobuild': 'go#statusline#Show',
\ 'gitbranch': 'FugitiveHead',
\ },
\ 'mode_map': {
\ 'n' : 'N',
\ 'i' : 'I',
\ 'R' : 'R',
\ 'v' : 'V',
\ 'V' : 'V-LINE',
\ "\<C-v>": 'V-BLOCK',
\ 'c' : 'C',
\ 's' : 'S',
\ 'S' : 'S-LINE',
\ "\<C-s>": 'S-BLOCK',
\ 't': 'TERM',
\ },
\ }
" vim-gitgutter configuration
packadd! vim-gitgutter
set signcolumn=yes
nnoremap hg :GitGutterLineHighlightsToggle<cr>
nmap ]h <Plug>(GitGutterNextHunk)
nmap [h <Plug>(GitGutterPrevHunk)
@ -280,7 +295,6 @@ packadd! ale
" load other plugins:
packadd! tmux-complete.vim
packadd! vim-commentary
packadd! vim-gitgutter
" Requires both fzf.vim plugin to be manually installed:
" https://github.com/junegunn/fzf/blob/master/plugin/fzf.vim
" and also this separate plugin, which is loaded here: