Add alternativ keymapping in vim by typing "ä" for CTRL+]

This commit is contained in:
2022-09-25 02:24:07 +02:00
parent 1422cb6aab
commit 8ee1098593

9
.vimrc
View File

@@ -123,6 +123,15 @@ highlight CusrsorLine ctermbg=green
colorscheme gruvbox8
" ease CTRL-] since it's very hard to type on german keyboards
" However I can't just remap the command to the matching position since this
" is not a valid input for most unix-terminals. Therefore I just drop the
" CTRL-prefix and use the letter where the bracket would be on us keyboards.
" See: https://stackoverflow.com/a/16748339/4316528
nnoremap ä <C-]>
" <C-T> just don't work right now and that seems like a convenient keybinding
nnoremap ö <C-T>
" General utilities
nnoremap <leader>cd :cd %:p:h<CR>
nnoremap <Leader>gg :Goyo<CR>