From ecaac0edd8642ffbfeb202f4400548d48ea265be Mon Sep 17 00:00:00 2001 From: Jordan Orelli Date: Wed, 14 Sep 2022 10:55:12 -0500 Subject: [PATCH] some terminal and wsl mappings --- .vimrc | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/.vimrc b/.vimrc index 4062ebd..b4a0b11 100644 --- a/.vimrc +++ b/.vimrc @@ -148,6 +148,9 @@ set mousehide " open up directories with a single click instead of needing to double-click let g:NERDTreeMouseMode = 2 + +" this fixes the WSL mouse not working beyond column 95 but I have no idea why +set ttymouse=sgr " ---------------------------------------------------------------------------}}} " Colorscheme ---------------------------------------------------------------{{{ @@ -267,7 +270,10 @@ noremap :tabnext noremap :tabprevious " ctrl-n to open a new tab with the current file -noremap :tabnew % +noremap :tabnew % + +noremap :tab term +noremap :tab term " move by visual lines when moving instead of physical lines noremap k gk @@ -315,6 +321,24 @@ cabbrev vhelp vertical help cabbrev ~ $HOME " ---------------------------------------------------------------------------}}} +" Terminal Mode -------------------------------------------------------------{{{ + +" ctrl-k to go to the next tab +tnoremap :tabnext + +" ctrl-j to go to the previous tab +tnoremap :tabprevious + +" ctrl-n-n to create a new tab with an empty buffer +tnoremap :tabnew +tnoremap :tabnew + +" ctrl-shift-n creates a new tab with a terminal +tnoremap :tab term +tnoremap :tab term +" ---------------------------------------------------------------------------}}} + + " Operator-Pending Mode -----------------------------------------------------{{{ " new text object: "next paren". means the next open paren on the current " line.