From f92cbda35ff55a05004805345070db9fa9ec5145 Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 8 Jan 2025 23:39:37 -0500 Subject: [PATCH] fixed bug in some inoremaps --- .vimrc | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/.vimrc b/.vimrc index 4cbd726..13a72da 100644 --- a/.vimrc +++ b/.vimrc @@ -1,7 +1,7 @@ " ==================================================================== " Auth: dodd " File: .vimrc -" Revn: 01-02-2025 3.0 +" Revn: 01-08-2025 4.0 " Func: Define how Vim works, set parameters, define keymaps " " TODO: add in Greek keymaps @@ -35,6 +35,12 @@ " 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 +" 01-07-2025: set search highlighting to true +" added i and n no-re maps to turn off highlighting +" fixed inoremap bug that didn't keep +" the cursor in place +"*01-08-2025: actually fixed this ^^^ bug, instead of just thinking +" that I fixed it " " ==================================================================== @@ -66,6 +72,9 @@ set autoindent " Sets character length of line to 70 characters, linewraps set tw=70 +" set search highlighting to on +set hlsearch + " some way, somehow, this displays the file name at the bottom set laststatus=2 @@ -93,13 +102,17 @@ 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 +inoremap :tabpi +inoremap :tabni " auto convert window to tab " I think focuses on the window and T converts it to tab nnoremap T +" turn off search highlights +nnoremap :nohl +inoremap :nohli + " Auto infer declare/instantiate operator for GoLang "inoremap ;= :=