Browse Source

Add some keybindings for terminal/vimrc

Thomas Dy 8 years ago
parent
commit
b6b358679c
1 changed files with 10 additions and 0 deletions
  1. 10 0
      .vimrc

+ 10 - 0
.vimrc

@@ -167,6 +167,13 @@ nnoremap <Leader>f :Unite grep:.<CR>
 nnoremap <Leader>gs :Gstatus<CR>
 nnoremap <Leader>gb :Merginal<CR>
 
+" undo tree
+nnoremap <Leader>ut :GundoToggle<CR>
+
+" vimrc
+nnoremap <Leader>ve :vsplit $MYVIMRC<CR>
+nnoremap <Leader>vs :source $MYVIMRC<CR>
+
 " ------ nvim specific ------
 if has('nvim')
   let g:airline_theme_patch_func = 'AirlineThemePatch'
@@ -187,6 +194,9 @@ if has('nvim')
   tnoremap <C-V> <C-\><C-N>"+pi
 
   autocmd BufWinEnter,WinEnter term://* startinsert
+
+  nnoremap <Leader>tv :vsp term://zsh<CR>
+  nnoremap <Leader>to :term<CR>
 endif
 
 augroup formatting