vim: Add a mapping for symbol renaming

This commit is contained in:
Oliver Davies 2021-05-14 00:34:06 +01:00
parent 1fa379691a
commit a80ee43b83

View file

@ -52,6 +52,9 @@ let g:NERDTreeShowHidden=1
let g:NERDTreeWinPos = "right" let g:NERDTreeWinPos = "right"
nnoremap <leader>ne :NERDTreeToggle<CR> nnoremap <leader>ne :NERDTreeToggle<CR>
" Symbol renaming.
nmap <leader>rn <Plug>(coc-rename)
autocmd FileType gitcommit highlight ColorColumn ctermbg=8 autocmd FileType gitcommit highlight ColorColumn ctermbg=8
autocmd FileType gitcommit setlocal colorcolumn=50,72 autocmd FileType gitcommit setlocal colorcolumn=50,72
autocmd FileType gitcommit setlocal textwidth=72 autocmd FileType gitcommit setlocal textwidth=72