diff --git a/nvim/.config/nvim/keymappings.vim b/nvim/.config/nvim/keymappings.vim index 8229cc9..a940cd8 100644 --- a/nvim/.config/nvim/keymappings.vim +++ b/nvim/.config/nvim/keymappings.vim @@ -18,8 +18,8 @@ nnoremap ff :GFiles nnoremap fF :Files nnoremap fL :Lines nnoremap fl :BLines -nnoremap ft :BTags -nnoremap fT :Tags +nnoremap ft :exe ':Tags ' . expand('') +nnoremap fT :Tags nnoremap fc :BCommits nnoremap fC :Commits nnoremap fh :History: @@ -47,10 +47,18 @@ nnoremap [b :bprevious nnoremap ]b :bnext nnoremap [B :bfirst nnoremap ]B :blast -nnoremap [t :tabprevious -nnoremap ]t :tabnext -nnoremap [T :tabfirst -nnoremap ]T :tablast +" Tab navigation +nnoremap tp :tabprevious +nnoremap tn :tabnext +nnoremap tf :tabfirst +nnoremap tl :tablast +nnoremap tN :tabnew +" For tags +nnoremap [t :tprevious +nnoremap ]t :tNext +nnoremap [T :tfirst +nnoremap ]T :tlast +nnoremap ts :exec("tselect ".expand("")) " For git nnoremap ]c :GitGutterNextHunk nnoremap [c :GitGutterPrevHunk