diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2015-01-30 17:14:00 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2015-01-30 17:14:00 +0100 |
commit | 146fda9a928d8192cec55a122d671f8e0cbd7780 (patch) | |
tree | b0929cd4596f63a12e33a5d07ce08f289253d520 /vimrc | |
parent | 877ac21b3d557087fa9bea4d6bc3580c76df13d8 (diff) | |
download | vim-146fda9a928d8192cec55a122d671f8e0cbd7780.zip vim-146fda9a928d8192cec55a122d671f8e0cbd7780.tar.gz |
vimrc: add mapping for CtrlP and buffer manipulation
Diffstat (limited to 'vimrc')
-rw-r--r-- | vimrc | 24 |
1 files changed, 19 insertions, 5 deletions
@@ -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 <leader>l :set list!<CR> - -" remap vim-comentary : nmap \\ <Plug>Commentary -map <C-c> \\\ +" CtrlP +nmap <leader>e :CtrlP<cr> +nmap <leader>ep :CtrlPBuffer<cr> +nmap <leader>em :CtrlPMixed<cr> + +" buffers : hidden -> can leave modified buffers hidden +set hidden +nmap <leader>l :ls<CR> +nmap <leader>N :enew<cr> +nmap <leader>n :bnext<CR> +nmap <leader>p :bprevious<CR> +" close and goto next +nmap <leader>bq :bp <BAR> bd #<CR> " <C-r> jump to definition, <C-t> to jump back to the call nmap <C-r> g<C-]> @@ -113,6 +121,12 @@ inoremap <C-x> <C-X><C-]> " code completion inoremap <C-d> <C-X><C-]> +" \t : toggle view invisible +nmap <leader>l :set list!<CR> + +" remap vim-commentary : nmap \\ <Plug>Commentary +map <C-c> \\\ + " replace current selection with content of "" buffer vmap p "_dP |