aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Singleton <matt@datadoghq.com>2011-12-19 04:49:59 -0500
committerMatt Singleton <matt@datadoghq.com>2011-12-19 04:49:59 -0500
commit8edeb4c35086eba7c89a4663c8e527e10649e14c (patch)
tree578a9cbec44da562feeb2f58f8f0221bd0d0f211
parent2b9f474cd594be990b1571ba805c27ff23ce76a9 (diff)
adding some additional shortcuts
-rw-r--r--vimrc21
1 files changed, 16 insertions, 5 deletions
diff --git a/vimrc b/vimrc
index 3396289..888161c 100644
--- a/vimrc
+++ b/vimrc
@@ -86,17 +86,28 @@ endif
" bindings
"
-noremap <C-x> :source ~/.vimrc<Enter>
+let mapleader = ","
+
+" convenience
+noremap <leader>x :source ~/.vimrc<Enter>
+noremap <leader><leader> <c-^>
+nnoremap <c-j> <c-w>j
+nnoremap <c-k> <c-w>k
+nnoremap <c-h> <c-w>h
+nnoremap <c-l> <c-w>l
" NERDTree
noremap <C-e> :NERDTreeToggle<Enter>
-noremap ,e :NERDTreeToggle<Enter>
+noremap <leader>e :NERDTreeToggle<Enter>
let NERDTreeMapActivateNode='<Space>'
" bufexplore
-noremap ,fe :BufExplorer<Enter>
-noremap ,fs :BufExplorerHorizontalSplit<Enter>
-noremap ,fv :BufExplorerVerticalSplit<Enter>
+noremap <leader>fe :BufExplorer<Enter>
+noremap <leader>fs :BufExplorerHorizontalSplit<Enter>
+noremap <leader>fv :BufExplorerVerticalSplit<Enter>
+
+" ctrlp
+let g:ctrlp_map ='<leader>a'
"
" visual