nvim: init.vim: Use custom bindings for smoothie

Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
This commit is contained in:
Sanchayan Maity 2019-12-30 20:22:28 +05:30
parent 05a281029f
commit a42cc7bba7

View file

@ -204,6 +204,11 @@ cnoremap <Esc> <Nop>
nnoremap ; : nnoremap ; :
" Use Q to execute default register. " Use Q to execute default register.
nnoremap Q <Nop> nnoremap Q <Nop>
" Smooth scroll
nmap <S-J> <Plug>(SmoothieDownwards)
nmap <S-K> <Plug>(SmoothieUpwards)
nmap <S-F> <Plug>(SmoothieForwards)
nmap <S-B> <Plug>(SmoothieBackwards)
" For Fuzzy " For Fuzzy
nnoremap ff :GFiles<CR> nnoremap ff :GFiles<CR>
@ -662,9 +667,10 @@ let g:netrw_winsize = 10
" For SLIMV " For SLIMV
let g:lisp_rainbow=1 let g:lisp_rainbow=1
" For Purescript " For Purescript
let g:psc_ide_auto_imports = 1 let g:psc_ide_auto_imports = 1
" For vim-smoothie. We want to Shift instead of Ctrl for scroll.
let g:smoothie_no_default_mappings = 1
" ----------------------------- Functions ------------------------------------ " ----------------------------- Functions ------------------------------------
function! Cscope(option, query) function! Cscope(option, query)