summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Toso <victortoso@redhat.com>2016-02-12 15:25:15 +0100
committerVictor Toso <victortoso@redhat.com>2016-02-12 15:35:42 +0100
commitb2e0fb066f4c294fd24da09d4b5a8cd389e0a855 (patch)
tree21c42d99de1e512ed18722e8d9e0dc6014fd8a27
parent313b8e9d6cce88117dada57315816d0f776d600b (diff)
vim: use easymotion!
-rw-r--r--.gitmodules3
m---------vim/bundle/vim-easymotion0
-rw-r--r--vimrc8
3 files changed, 10 insertions, 1 deletions
diff --git a/.gitmodules b/.gitmodules
index 65398b6..ac83adc 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -25,3 +25,6 @@
[submodule "vim/bundle/color_coded"]
path = vim/bundle/color_coded
url = https://github.com/jeaye/color_coded.git
+[submodule "vim/bundle/vim-easymotion"]
+ path = vim/bundle/vim-easymotion
+ url = https://github.com/easymotion/vim-easymotion.git
diff --git a/vim/bundle/vim-easymotion b/vim/bundle/vim-easymotion
new file mode 160000
+Subproject 33f141c3c044b175d53cf161f31b90aebb0bda8
diff --git a/vimrc b/vimrc
index 09826ad..c2ca13c 100644
--- a/vimrc
+++ b/vimrc
@@ -45,6 +45,7 @@ Plugin 'tmux-plugins/vim-tmux'
Plugin 'rdnetto/YCM-Generator'
Plugin 'Valloric/YouCompleteMe'
Plugin 'jeaye/color_coded'
+Plugin 'easymotion/vim-easymotion'
call vundle#end()
filetype plugin indent on
@@ -79,7 +80,12 @@ imap <leader>2 <C-R>="Reviewed-by: Victor Toso <victortoso@redhat.com>"<CR>
let g:lasttab = 1
nmap bt :exe "tabn ".g:lasttab<CR>
au TabLeave * let g:lasttab = tabpagenr()
-
+" ----------------------------------------------------------------------------
+" ------------------ EasyMotion ----------------------------------------------
+" ----------------------------------------------------------------------------
+nmap <leader>f <Plug>(easymotion-overwin-f)
+map <leader>j <Plug>(easymotion-j)
+map <leader>k <Plug>(easymotion-k)
" ----------------------------------------------------------------------------
" ------------------ CSCOPE --------------------------------------------------
" ----------------------------------------------------------------------------