summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2015-05-04 20:39:36 +0100
committerUrbain Vaes <urbain@vaes.uk>2015-05-04 20:39:36 +0100
commit76a02687f62c57e2d8ecb10e8c118232fc3070c4 (patch)
tree569adf86a5982fafa7e6d8262b600f7d18fb2031
parenta61859d05e64e0c26b938c398dfbe40bf4f1833c (diff)
modified leader maps
-rw-r--r--vimrc20
1 files changed, 14 insertions, 6 deletions
diff --git a/vimrc b/vimrc
index 3072d86..16687f6 100644
--- a/vimrc
+++ b/vimrc
@@ -174,16 +174,24 @@ nnoremap <Leader>tb :let &background = ( &background == "dark"? "light" : "dark"
nnoremap <Leader>sv :source ~/.vimrc<cr>
nnoremap <Leader>sc :source %<cr>
+" Plugin Management
+nnoremap <Leader>pi :PluginUpdate<cr>
+nnoremap <Leader>pu :PluginUpdate<cr>
+nnoremap <Leader>pc :PluginClean<cr>
+
" File edits
-nnoremap <Leader>es :UltiSnipsEdit<Return>
-nnoremap <Leader>ev :e ~/.vimrc <Return>
-nnoremap <Leader>ez :e ~/.zshrc <Return>
+nnoremap <Leader>es :UltiSnipsEdit<cr>
+nnoremap <Leader>ev :e ~/.vimrc<cr>
+nnoremap <Leader>ez :e ~/.zshrc<cr>
+nnoremap <Leader>et :e ~/.tmux.conf<cr>
+
+" Formatting
+nnoremap <Leader>fw :%s/\s\+$//<cr>
+nnoremap <Leader>fi zzmxgg=G'x
" Misc
-nnoremap <Leader>w :w<cr>
+nnoremap <Leader><cr> :w<cr>
nnoremap <Leader>q :bd!<cr>
-nnoremap <Leader>i zzmxgg=G'x
-nnoremap <Leader>sw :%s/\s\+$//<cr>
nnoremap <tab> <C-^>
nnoremap <LocalLeader>h :e %:p:s,.hpp$,.X123X,:s,.cpp$,.hpp,:s,.X123X$,.cpp,<CR>