by oftenwrong · 7y ago · 0 comments
Plugins:
https://github.com/tmhedberg/matchit
https://github.com/tpope/vim-sleuth
https://github.com/tpope/vim-repeat
https://github.com/tpope/vim-surround
https://github.com/junegunn/fzf.vim
(also see https://jesseleite.com/posts/2/its-dangerous-to-vim-alone-ta... )
Some snippets:
https://github.com/mhinz/vim-galore#change-cursor-style-depe...
https://github.com/mhinz/vim-galore#saner-behavior-of-n-and-...
and a similar snippet:
" consistent direction regardless of initial charsearch direction for ; and ,
nnoremap <expr> ; ',;'[getcharsearch().forward]
nnoremap <expr> , ';,'[getcharsearch().forward]
I use my arrow keys for buffer navigation in normal mode: nnoremap <up> :Buffers<cr>
nnoremap <down> :b#<cr>
nnoremap <left> :bp<cr>
nnoremap <right> :bn<cr>
...and disable them in insert mode: inoremap <down> <nop>
inoremap <left> <nop>
inoremap <right> <nop>
inoremap <up> <nop>No comments yet.