nvim: Switch to vim-sneak

Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
This commit is contained in:
Sanchayan Maity 2020-05-27 10:32:44 +05:30
parent 4051932e7e
commit c42e841e3e
4 changed files with 23 additions and 4 deletions

View file

@ -0,0 +1,17 @@
" Replace 'f' with 1 character sneak
nmap f <Plug>Sneak_f
nmap F <Plug>Sneak_F
xmap f <Plug>Sneak_f
xmap F <Plug>Sneak_F
omap f <Plug>Sneak_f
omap F <Plug>Sneak_F
" Replace 't' with 1 character sneak
nmap t <Plug>Sneak_t
nmap T <Plug>Sneak_T
xmap t <Plug>Sneak_t
xmap T <Plug>Sneak_T
omap t <Plug>Sneak_t
omap T <Plug>Sneak_T
" Two character sneak
nmap s <Plug>Sneak_s
nmap S <Plug>Sneak_S

View file

@ -4,7 +4,7 @@ call plug#begin('~/.config/nvim/plugged')
Plug 'ervandew/supertab'
" Motions
Plug 'haya14busa/incsearch.vim'
Plug 'rhysd/clever-f.vim'
Plug 'justinmk/vim-sneak'
" Fuzzy search
Plug 'junegunn/fzf.vim'
" Remove extraneous whitespace when edit mode is exited

View file

@ -140,9 +140,6 @@ noremap ^ 0
vnoremap . :norm.<CR>
" Go to the last file we changed
nnoremap <BS> <C-^>
" Map to ; to : for easy access to command mode. Behaviour of ; can be taken
" care of by f due to clever-f
nnoremap ; :
" For nvim-completion
imap <C-j> <cmd>lua require'source'.prevCompletion()<CR>

View file

@ -57,6 +57,11 @@ let g:cpp_posix_standard = 1
let g:cpp_experimental_template_highlight = 1
let g:cpp_concepts_highlight = 1
" Sneak
let g:sneak#label = 1
let g:sneak#s_next = 1
let g:sneak#use_ic_scs = 0
" Markify
let g:markify_error_text = 'E'
let g:markify_warning_text = 'W'