Browse Source

Add some keybindings for terminal/vimrc

Thomas Dy 8 năm trước cách đây
mục cha
commit
b6b358679c
1 tập tin đã thay đổi với 10 bổ sung0 xóa
  1. 10 0
      .vimrc

+ 10 - 0
.vimrc

@@ -167,6 +167,13 @@ nnoremap <Leader>f :Unite grep:.<CR>
 nnoremap <Leader>gs :Gstatus<CR>
 nnoremap <Leader>gs :Gstatus<CR>
 nnoremap <Leader>gb :Merginal<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 ------
 " ------ nvim specific ------
 if has('nvim')
 if has('nvim')
   let g:airline_theme_patch_func = 'AirlineThemePatch'
   let g:airline_theme_patch_func = 'AirlineThemePatch'
@@ -187,6 +194,9 @@ if has('nvim')
   tnoremap <C-V> <C-\><C-N>"+pi
   tnoremap <C-V> <C-\><C-N>"+pi
 
 
   autocmd BufWinEnter,WinEnter term://* startinsert
   autocmd BufWinEnter,WinEnter term://* startinsert
+
+  nnoremap <Leader>tv :vsp term://zsh<CR>
+  nnoremap <Leader>to :term<CR>
 endif
 endif
 
 
 augroup formatting
 augroup formatting