about summary refs log tree commit diff
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2016-11-08T20·10-0500
committerWilliam Carroll <wpcarro@gmail.com>2016-11-08T20·10-0500
commitce6d38c5e87a99cc8369f65af82236634823e71f (patch)
tree109bb033da5ad5468915c1a880f41fd46feb19aa
parent1870aadddbaee0132e94006cd1bec5b315e1a4fe (diff)
Remaps leader key to C-w for window mgt
-rw-r--r--usbify/vim/.vimrc13
1 files changed, 11 insertions, 2 deletions
diff --git a/usbify/vim/.vimrc b/usbify/vim/.vimrc
index 9ddfe6d41b3f..54ea2f709ec0 100644
--- a/usbify/vim/.vimrc
+++ b/usbify/vim/.vimrc
@@ -123,6 +123,17 @@ nnoremap sp <Esc>:sp<CR>
 nnoremap ss <Esc>:sp<CR>
 
 
+" Move around splits with <leader>
+nnoremap <leader>h <C-w>h
+nnoremap <leader>j <C-w>j
+nnoremap <leader>k <C-w>k
+nnoremap <leader>l <C-w>l
+
+
+" Fuzzy-find open buffer via CtrlP
+nnoremap <leader>bg :CtrlPBuffer<CR>
+
+
 " Buffer creation and management
 " Buffer movement
 nnoremap <C-l> :1bnext<CR>
@@ -335,8 +346,6 @@ nnoremap <leader>p :CtrlP<CR>
 
 " Fuzzy-finds files within cwd.
 " nnoremap <leader>pf :CtrlP<CR>
-" Fuzzy-finds files within open buffers.
-" nnoremap <leader>pb :CtrlPBuffer<CR>
 
 " Ignores dirs and files
 let g:ctrlp_custom_ignore = {