summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2016-09-21 11:07:30 +0100
committerUrbain Vaes <urbain@vaes.uk>2016-09-21 11:07:30 +0100
commit0da3d56ca20efe17f3b01b03fbe514e222b62661 (patch)
tree9be199d2526f9dce899c99eef31c2f8556a06ccf
parentf48f9065c12395354def7b5d8277800e7fcc6c71 (diff)
[vimrc] Update fzf mappings
-rw-r--r--vim/.vimrc13
1 files changed, 9 insertions, 4 deletions
diff --git a/vim/.vimrc b/vim/.vimrc
index 0baab27..9e93a22 100644
--- a/vim/.vimrc
+++ b/vim/.vimrc
@@ -81,12 +81,17 @@ nnoremap cpt :TagbarToggle<cr>
nnoremap cpu :GundoToggle<cr>
" Fuzzy finder
+nnoremap <c-p>a :Ag
nnoremap <c-p>b :Buffers<cr>
+nnoremap <c-p>c :Commands<cr>
nnoremap <c-p>f :Files<cr>
-nnoremap <c-p>r :History<cr>
nnoremap <c-p>g :GitFiles<cr>
-nnoremap <c-p>c :Colors<cr>
-nnoremap <c-p>h :History:<cr>
+nnoremap <c-p>hf :History<cr>
+nnoremap <c-p>h: :History:<cr>
+nnoremap <c-p>h/ :History/<cr>
+nnoremap <c-p>l :BLines<cr>
+nnoremap <c-p>m :Marks<cr>
+nnoremap <c-p>t :Tags<cr>
imap <c-x><c-l> <plug>(fzf-complete-line)
imap <c-x><c-f> <plug>(fzf-complete-file)
@@ -271,7 +276,7 @@ nnoremap cqc :cclose<cr>
nnoremap got :call system('urxvt -cd '.getcwd().' &')<cr>
nnoremap goT :call system('urxvt -cd '.expand("%:p:h").' &')<cr>
-nnoremap gof :call system('urxvt -e vifm '.expand("%:p:h").' '.expand("%:p:h").' &')<cr>
+nnoremap gof :call system('urxvt -e vifm '.getcwd().' '.getcwd().' &')<cr>
nnoremap goF :call system('urxvt -e vifm '.expand("%:p:h").' '.expand("%:p:h").' &')<cr>
nnoremap <LocalLeader>h :e %:p:s,.hpp$,.X123X,:s,.cpp$,.hpp,:s,.X123X$,.cpp,<CR>