aboutsummaryrefslogtreecommitdiff
path: root/vimrc
diff options
context:
space:
mode:
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc10
1 files changed, 9 insertions, 1 deletions
diff --git a/vimrc b/vimrc
index 26d9d47..e980e8a 100644
--- a/vimrc
+++ b/vimrc
@@ -14,7 +14,6 @@ syntax enable
14nnoremap <C-Right> :bnext<cr> 14nnoremap <C-Right> :bnext<cr>
15nnoremap <C-Left> :bprevious<cr> 15nnoremap <C-Left> :bprevious<cr>
16nnoremap <C-b> :buffers<cr>:buffer 16nnoremap <C-b> :buffers<cr>:buffer
17nnoremap <C-p> :Explore<cr>
18nnoremap <C-q> :copen<cr> 17nnoremap <C-q> :copen<cr>
19 18
20" Personal tabs/spaces settings. 19" Personal tabs/spaces settings.
@@ -42,3 +41,12 @@ function! Format()
42endfunction 41endfunction
43command! Format call Format() 42command! Format call Format()
44 43
44" FZF integration.
45function! FZF()
46 let t=tempname()
47 silent execute '!fzf --preview=''cat {}'' --multi|awk ''{print $1":1:0"}'' > '.fnameescape(t)
48 execute 'cfile '.t|redraw!
49 call delete(t)
50endfunction
51nnoremap <C-p> :call FZF()<cr>
52