Add a bunch of helpful alias to vim, e.g. ',p' to open CtrlP

This commit is contained in:
2025-01-03 16:26:53 +01:00
parent 623ebfa003
commit df504bb6a4

7
.vimrc
View File

@@ -193,11 +193,18 @@ nnoremap <Leader>tc :Tabularize /;/l1<CR>
nnoremap <Leader>tp :Tabularize /\|/l1<CR>
nnoremap <Leader>tt :Tabularize /\|/l1<CR>
" Open CtrlP faster
nnoremap <Leader>p :CtrlP<CR>
" diffs
if &diff
nnoremap <Leader>1 :diffget LOCAL<CR>
nnoremap <Leader>2 :diffget BASE<CR>
nnoremap <Leader>3 :diffget REMOTE<CR>
nnoremap <Leader>n ]c
nnoremap <Leader>p [c
nnoremap ä ]c
nnoremap ö [c
endif
augroup configgroup