summaryrefslogtreecommitdiff
path: root/vim/.vimrc
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2018-03-30 09:28:40 +0100
committerUrbain Vaes <urbain@vaes.uk>2018-04-08 14:48:51 +0100
commit3ee22303b7561b0d784a5a004e656892579869f3 (patch)
tree0c44ec177849b18246c86dfcb9309cd42098532d /vim/.vimrc
parent0a96a5bd4db8b17cbeb623c1ce5c2b3a2049003b (diff)
Add vim map to run current file
Diffstat (limited to 'vim/.vimrc')
-rw-r--r--vim/.vimrc2
1 files changed, 2 insertions, 0 deletions
diff --git a/vim/.vimrc b/vim/.vimrc
index 9a10a90..f025c7c 100644
--- a/vim/.vimrc
+++ b/vim/.vimrc
@@ -327,6 +327,7 @@ nnoremap ,t0 :tabmove 0<cr>
nnoremap ,t$ :tabmove<cr>
nnoremap <Leader>c :!rm ~/.vim/swap/\%*<cr>
+nnoremap <Leader>r :!%:p<cr>
nnoremap cqo :copen<cr>
nnoremap cqc :cclose<cr>
@@ -487,6 +488,7 @@ if has("nvim")
tnoremap <c-x> <c-\><c-n><c-^>:bd! #<cr>
nnoremap <c-_> :b # \| norm A<cr>
tnoremap <c-_> <c-\><c-n><c-^>
+ nnoremap <Leader>t :b term \| norm A<cr>
tnoremap <A-h> <C-\><C-N><C-w>h
tnoremap <A-j> <C-\><C-N><C-w>j