diff options
Diffstat (limited to 'vimrc')
-rw-r--r-- | vimrc | 37 |
1 files changed, 23 insertions, 14 deletions
@@ -171,26 +171,35 @@ nnoremap <Leader>tu :GundoToggle<cr> 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> -" Misc -nnoremap <Leader>w :w<cr> -nnoremap <Leader>q :bd!<cr> -nnoremap <Leader>i zzmxgg=G'x -nnoremap <Leader>sw :%s/\s\+$//<cr> -nnoremap <tab> <C-^> +" Formatting +nnoremap <Leader>fw :%s/\s\+$//<cr> +nnoremap <Leader>fi zzmxgg=G'x + +" Navigation +nnoremap <c-y> 3<c-y> +nnoremap <c-e> 3<c-e> nnoremap <Return> o<Esc> nnoremap <s-Return> O<Esc> + +" Misc +nnoremap <tab> <C-^> +nnoremap Q :bd!<cr> +nnoremap _ :w<cr> +nnoremap <Leader>q :q!<cr> +nnoremap <LocalLeader>h :e %:p:s,.hpp$,.X123X,:s,.cpp$,.hpp,:s,.X123X$,.cpp,<CR> nnoremap J mzJ`z nnoremap Y y$ -nnoremap _ _ -nnoremap <LocalLeader>h :e %:p:s,.hpp$,.X123X,:s,.cpp$,.hpp,:s,.X123X$,.cpp,<CR> - -nnoremap <c-y> 3<c-y> -nnoremap <c-e> 3<c-e> nnoremap + za " Dvorak specific |