From 146fda9a928d8192cec55a122d671f8e0cbd7780 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Fri, 30 Jan 2015 17:14:00 +0100 Subject: vimrc: add mapping for CtrlP and buffer manipulation --- vimrc | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/vimrc b/vimrc index 38a8eb2..3e67494 100644 --- a/vimrc +++ b/vimrc @@ -100,11 +100,19 @@ let Tlist_Exit_OnlyWindow = 1 " exit if taglist is last window open let Tlist_Show_One_File = 1 " Only show tags for current buffer let Tlist_Enable_Fold_Column = 0 " no fold column (only showing one file) -" toggle view invisible with \t -nmap l :set list! - -" remap vim-comentary : nmap \\ Commentary -map \\\ +" CtrlP +nmap e :CtrlP +nmap ep :CtrlPBuffer +nmap em :CtrlPMixed + +" buffers : hidden -> can leave modified buffers hidden +set hidden +nmap l :ls +nmap N :enew +nmap n :bnext +nmap p :bprevious +" close and goto next +nmap bq :bp bd # " jump to definition, to jump back to the call nmap g @@ -113,6 +121,12 @@ inoremap " code completion inoremap +" \t : toggle view invisible +nmap l :set list! + +" remap vim-commentary : nmap \\ Commentary +map \\\ + " replace current selection with content of "" buffer vmap p "_dP -- cgit v1.1-2-g2b99