summaryrefslogtreecommitdiff
path: root/.vimrc
diff options
context:
space:
mode:
authorSyndamia <kamen@syndamia.com>2022-11-08 08:08:17 +0200
committerSyndamia <kamen@syndamia.com>2022-11-08 08:08:17 +0200
commitc4f83e96b2665f3a8426143f269f92e13dab78e4 (patch)
tree1b4b776de054f2b64dfffb079080ed791450d2af /.vimrc
parent952ec7d592cf7014ddb49ffd18c844887693f877 (diff)
downloaddotfiles-c4f83e96b2665f3a8426143f269f92e13dab78e4.tar
dotfiles-c4f83e96b2665f3a8426143f269f92e13dab78e4.tar.gz
dotfiles-c4f83e96b2665f3a8426143f269f92e13dab78e4.zip
[vimrc] Added CodeTerminal term mappings
Diffstat (limited to '.vimrc')
-rw-r--r--.vimrc3
1 files changed, 3 insertions, 0 deletions
diff --git a/.vimrc b/.vimrc
index a15411c..11819d4 100644
--- a/.vimrc
+++ b/.vimrc
@@ -246,6 +246,9 @@
noremap <F3> :call CodeTerminal(g:codebuildsingle)<CR>
noremap <F4> :call CodeTerminal(g:codebuildproject)<CR>
+ " We assume that the last accessed window is the one with the source code, otherwise it gets complicated
+ tnoremap <F3> <C-W><C-P>:call CodeTerminal(g:codebuildsingle)<CR><C-W><C-P>
+ tnoremap <F4> <C-W><C-P>:call CodeTerminal(g:codebuildproject)<CR><C-W><C-P>
let t:codetermbufnr = -1