summaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim')
-rw-r--r--vim/.vimrc14
1 files changed, 11 insertions, 3 deletions
diff --git a/vim/.vimrc b/vim/.vimrc
index cbea96a..c0a2172 100644
--- a/vim/.vimrc
+++ b/vim/.vimrc
@@ -46,6 +46,7 @@ Plug 'sjl/Gundo.vim', { 'on' : 'GundoToggle' }
Plug 'terryma/vim-expand-region'
Plug 'terryma/vim-multiple-cursors'
Plug 'tommcdo/vim-exchange'
+Plug 'ton/vim-bufsurf'
Plug 'tpope/vim-abolish'
Plug 'tpope/vim-commentary'
Plug 'tpope/vim-dispatch'
@@ -123,7 +124,7 @@ nnoremap <Leader>gd :Gdiff<cr>
" Iron
let g:iron_map_defaults=0
nmap yr <Plug>(iron-send-motion)
-nmap yryr VR
+nmap yrr VR
xmap R <Plug>(iron-send-motion)
" Easy align
@@ -334,9 +335,16 @@ cnoremap <c-n> <down>
cnoremap <up> <c-p>
cnoremap <down> <c-n>
+nmap <silent> <b :BufSurfBack<cr>
+nmap <silent> <B :BufSurfBack<cr>:bd! #<cr>
+nmap <silent> >b :BufSurfForward<cr>
+nmap <silent> <B :BufSurfForward<cr>:bd! #<cr>
+
if has("nvim")
- nnoremap <c-_> :ZoomWinTabIn<cr>:buffer term<cr>i
- tnoremap <c-_> <c-\><c-n><c-^>:ZoomWinTabOut<cr>
+ nnoremap goh :lcd %:h \| terminal<cr>
+ tnoremap <c-d> <c-\><c-n><c-^>:bd! #<cr>
+ nnoremap <c-_> :b # \| norm A<cr>
+ tnoremap <c-_> <c-\><c-n><c-^>
endif
set t_Co=256