From 9f1df652a3290f475e5b6d33339b688049adc8d2 Mon Sep 17 00:00:00 2001 From: Felix Van der Jeugt Date: Wed, 30 Dec 2015 01:23:08 +0100 Subject: [PATCH] add hardtime and grepper. also quickfix shortkeys --- config/nvim/init.vim | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/config/nvim/init.vim b/config/nvim/init.vim index 2211a80..b1aa722 100644 --- a/config/nvim/init.vim +++ b/config/nvim/init.vim @@ -37,11 +37,11 @@ nnoremap nnoremap nnoremap nnoremap -nnoremap gg -nnoremap gh h -nnoremap gj j -nnoremap gk k -nnoremap gl l +nnoremap wg +nnoremap wh h +nnoremap wj j +nnoremap wk k +nnoremap wl l " Not too much folding set foldlevelstart=2 @@ -50,6 +50,11 @@ set foldlevelstart=2 nnoremap s :vsplit +:terminal tnoremap +" Quickfixing +nnoremap co :copen +nnoremap cn :cnext +nnoremap cp :cprevious + " General Options }}} " Plugins {{{ @@ -72,12 +77,14 @@ Plug 'chriskempson/base16-vim' Plug 'junegunn/vim-after-object' Plug 'junegunn/vim-peekaboo' +Plug 'takac/vim-hardtime' +Plug 'mhinz/vim-grepper' call plug#end() " Plugin configuration " -------------------- let g:ctrlp_map='l' -let g:ctrlp_user_command = ['.git/', 'git --git-dir=%s/.git ls-files -oc --exclude-standard'] +let g:ctrlp_user_command=['.git/', 'git --git-dir=%s/.git ls-files -oc --exclude-standard'] let g:airline_powerline_fonts=1 @@ -98,7 +105,7 @@ nmap f (easymotion-s) nmap j (easymotion-j) nmap k (easymotion-k) -let g:ycm_global_ycm_extra_conf = '~/.config/nvim/ycm_extra_conf.py' +let g:ycm_global_ycm_extra_conf='~/.config/nvim/ycm_extra_conf.py' "set completeopt=menu let base16colorspace=256 @@ -107,6 +114,12 @@ colorscheme base16-colors highlight LineNr ctermfg=08 ctermbg=NONE autocmd VimEnter * call after_object#enable('=', ':', '-', '#', ' ') + +let g:hardtime_default_on=1 +let g:hardtime_ignore_quickfix=1 +let g:hardtime_maxcount=2 + +nnoremap g :Grepper " Plugged }}} " vim: foldmethod=marker