From 6fbc3fae0fe2ad79659cd0c538cb5abb676c244f Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Wed, 27 Nov 2019 13:03:51 +0530 Subject: [PATCH] nvim: init.vim: Add comfortable motion Signed-off-by: Sanchayan Maity --- nvim/init.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nvim/init.vim b/nvim/init.vim index 0138cd0..2b722e3 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -83,6 +83,7 @@ Plug 'rhysd/vim-clang-format', { 'for': [ 'c', 'cpp'] } Plug 'pelodelfuego/vim-swoop' Plug 'adelarsq/vim-matchit' Plug 'stefandtw/quickfix-reflector.vim' +Plug 'yuttie/comfortable-motion.vim' " Initialize plugin system call plug#end() @@ -405,6 +406,9 @@ let g:workspace_session_directory = $HOME . '/.vim/session/' let g:workspace_undodir = $HOME . '/.vim/undodir' let g:workspace_autosave = 0 let g:workspace_autosave_ignore = ['gitcommit', 'qf', 'nerdtree', 'tagbar'] +" For comfortable motion +let g:comfortable_motion_scroll_down_key = "j" +let g:comfortable_motion_scroll_up_key = "k" " Default indentations autocmd BufRead,BufNewFile */gst-*/*.[ch] set et sw=2