From b61a6bc1bcedd90b96be4b4d007f3bc540995eb3 Mon Sep 17 00:00:00 2001 From: jontino tinerino Date: Sat, 4 Jan 2025 22:15:09 -0500 Subject: [PATCH] moved to home folder and added some maps --- .vimrc | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.vimrc b/.vimrc index e4d9a34..4cbd726 100644 --- a/.vimrc +++ b/.vimrc @@ -1,7 +1,7 @@ " ==================================================================== " Auth: dodd " File: .vimrc -" Revn: 12-20-2024 2.2 +" Revn: 01-02-2025 3.0 " Func: Define how Vim works, set parameters, define keymaps " " TODO: add in Greek keymaps @@ -33,6 +33,8 @@ " 12-20-2024: changed :tabn/p clearing technique to C+l redraw " read a bunch about marks " added .h, .cpp, and .hpp ft template file recognition +"*01-02-2025: copy-pasted :tabn/p nnoremaps into inoremaps +" added nnoremap to convert window to tab " " ==================================================================== @@ -40,7 +42,7 @@ syntax on " Reset highlight color for comments to lightblue -"hi comment ctermfg=lightblue +hi comment ctermfg=lightblue " Set line numbering and color of such set number @@ -89,6 +91,14 @@ inoremap () () " ( Lowercase L ) redraws screen to remove :tabn/p nnoremap [ :tabp nnoremap ] :tabn +" the exact same things but in insert mode +" need the to get out of insert mode and the i to go back +inoremap :tabpi +inoremap :tabni + +" auto convert window to tab +" I think focuses on the window and T converts it to tab +nnoremap T " Auto infer declare/instantiate operator for GoLang "inoremap ;= :=