set vim leader to ',' and map ',w' to save

This commit is contained in:
DannyDannyDanny 2025-01-28 08:50:57 +00:00
parent 7b9f231771
commit 9aa4d56df8

View file

@ -11,6 +11,7 @@
set go=a
set mouse=a
set nohlsearch
let mapleader=","
lua << EOF
local config_file = os.getenv("HOME")..'/.local/share/nvim_color_scheme'
@ -53,6 +54,9 @@
" Replace-all is aliased to S.
nnoremap S :%s//g<Left><Left>
" save file with ,w
map <leader>w :w<cr><Space>
" spellcheck
set spell spelllang=en_us
setlocal spell! spelllang=en_us