summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2017-11-03 16:02:04 +0100
committerUrbain Vaes <urbain@vaes.uk>2017-11-03 16:02:04 +0100
commit72233a62252e9a7c3ddb5a0fdd757e21cb883b3d (patch)
treec02d16a0e4fe3180a27f7dafdad68e4eab85bd9e
parentc2cafe592eacfe43bf518467fbdb149b829e6cad (diff)
[vim] Add shortcuts for drop-in terminal
-rw-r--r--vim/.vimrc8
1 files changed, 5 insertions, 3 deletions
diff --git a/vim/.vimrc b/vim/.vimrc
index cbea96a..f525a5e 100644
--- a/vim/.vimrc
+++ b/vim/.vimrc
@@ -123,7 +123,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
@@ -335,8 +335,10 @@ cnoremap <up> <c-p>
cnoremap <down> <c-n>
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-_> <c-^><cr>i
+ tnoremap <c-_> <c-\><c-n><c-^>
endif
set t_Co=256