" Treat long lines as break lines (useful when moving around in them)
map j gj
map k gk
" Remap VIM ESC to normal mode from insert mode using jj
" only issue when you need to literally type two jj's in insert mode therefore you must type slowly
imap jj <Esc>
" Just like traditional Select All, Ctrl+a
map <C-a> ggVG
" Remap VIM H to first non-blank character
map H ^
" Remap VIM L to last blank character
map L $
" Clears highlighting
map <C-n> :noh<return>
" Replace word by occurence, press '.' to move to the next occurence which auto replaces with new word. I use it to rename variables. So far I haven't found a mapping that does it by scope reliably like vscode.
nnoremap gr *``cgn
" This loop remaps all 'alt key + character' to '\e + character'
" On my vim(windows, but some other windows users didn't have a problem)
" it won't recognize the Meta key when Alt is pressed