nvim: Switch to vim-sneak
Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
This commit is contained in:
parent
4051932e7e
commit
c42e841e3e
4 changed files with 23 additions and 4 deletions
17
nvim/.config/nvim/after/plugin/vim-sneak.vim
Normal file
17
nvim/.config/nvim/after/plugin/vim-sneak.vim
Normal 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
|
|
@ -4,7 +4,7 @@ call plug#begin('~/.config/nvim/plugged')
|
||||||
Plug 'ervandew/supertab'
|
Plug 'ervandew/supertab'
|
||||||
" Motions
|
" Motions
|
||||||
Plug 'haya14busa/incsearch.vim'
|
Plug 'haya14busa/incsearch.vim'
|
||||||
Plug 'rhysd/clever-f.vim'
|
Plug 'justinmk/vim-sneak'
|
||||||
" Fuzzy search
|
" Fuzzy search
|
||||||
Plug 'junegunn/fzf.vim'
|
Plug 'junegunn/fzf.vim'
|
||||||
" Remove extraneous whitespace when edit mode is exited
|
" Remove extraneous whitespace when edit mode is exited
|
||||||
|
|
|
@ -140,9 +140,6 @@ noremap ^ 0
|
||||||
vnoremap . :norm.<CR>
|
vnoremap . :norm.<CR>
|
||||||
" Go to the last file we changed
|
" Go to the last file we changed
|
||||||
nnoremap <BS> <C-^>
|
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
|
" For nvim-completion
|
||||||
imap <C-j> <cmd>lua require'source'.prevCompletion()<CR>
|
imap <C-j> <cmd>lua require'source'.prevCompletion()<CR>
|
||||||
|
|
|
@ -57,6 +57,11 @@ let g:cpp_posix_standard = 1
|
||||||
let g:cpp_experimental_template_highlight = 1
|
let g:cpp_experimental_template_highlight = 1
|
||||||
let g:cpp_concepts_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
|
" Markify
|
||||||
let g:markify_error_text = 'E'
|
let g:markify_error_text = 'E'
|
||||||
let g:markify_warning_text = 'W'
|
let g:markify_warning_text = 'W'
|
||||||
|
|
Loading…
Reference in a new issue