From b0588883081bd87a2dcd4c04a8eb3cf005cb6f2f Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sun, 7 Sep 2014 02:36:41 -0400 Subject: try out easymotion again --- .gitmodules | 3 +++ vim/bundle/easymotion | 1 + vimrc | 21 ++++++++++++++++++++- 3 files changed, 24 insertions(+), 1 deletion(-) create mode 160000 vim/bundle/easymotion diff --git a/.gitmodules b/.gitmodules index fd8535c..2566e5b 100644 --- a/.gitmodules +++ b/.gitmodules @@ -73,3 +73,6 @@ [submodule "vim/bundle/typescript"] path = vim/bundle/typescript url = git://github.com/leafgarland/typescript-vim +[submodule "vim/bundle/easymotion"] + path = vim/bundle/easymotion + url = https://github.com/Lokaltog/vim-easymotion.git diff --git a/vim/bundle/easymotion b/vim/bundle/easymotion new file mode 160000 index 0000000..3b8a2dd --- /dev/null +++ b/vim/bundle/easymotion @@ -0,0 +1 @@ +Subproject commit 3b8a2dda5c69612c948017424d621f83e38b51a5 diff --git a/vimrc b/vimrc index 7779892..9ba62aa 100644 --- a/vimrc +++ b/vimrc @@ -744,7 +744,6 @@ function! s:unite_my_settings() autocmd InsertLeave call feedkeys("\(unite_exit)") endfunction nnoremap t :Unite -silent -profile-name=with_dir buffer file_rec/async -nnoremap f :Unite -silent buffer file nnoremap & :Unite -silent grep:. " }}} " vimfiler {{{ @@ -802,4 +801,24 @@ smap \ "\" : \ neocomplete#start_manual_complete() " }}} +" easymotion {{{ +let g:EasyMotion_do_mapping = 0 +let g:EasyMotion_smartcase = 1 +let g:EasyMotion_enter_jump_first = 1 + +map ff (easymotion-fl) +omap ff (easymotion-tl) + +map fj (easymotion-j) +map fk (easymotion-k) +map fh (easymotion-linebackward) +map fl (easymotion-lineforward) + +map f/ (easymotion-fn) +omap f/ (easymotion-tn) +map f? (easymotion-Fn) +omap f? (easymotion-Tn) +map fn (easymotion-vim-n) +map fN (easymotion-vim-N) +" }}} " }}} -- cgit v1.2.3-54-g00ecf