nvim: settings organization

This commit is contained in:
PowerUser64 2021-10-19 22:21:53 -07:00
parent 36a7cd9364
commit 866986c46c

View file

@ -76,14 +76,16 @@ vim.cmd [[
" Press Alt h to toggle highlighting on/off, and show current value. " Press Alt h to toggle highlighting on/off, and show current value.
noremap <M-h> <cmd>set hlsearch! hlsearch?<CR> noremap <M-h> <cmd>set hlsearch! hlsearch?<CR>
" Toggle spell check with alt S
noremap <M-S> <cmd>set spell! spell?<CR> noremap <M-S> <cmd>set spell! spell?<CR>
" find + replace with alt S
nnoremap <M-s> <cmd>%s//g<Left><Left>
" Escape to enter normal mode in the terminal " Escape to enter normal mode in the terminal
tnoremap <Esc> <C-\><C-n> tnoremap <Esc> <C-\><C-n>
" Replace with alt S
nnoremap <M-s> :%s//g<Left><Left>
nnoremap <silent> <Leader>= :exe "resize " . (winheight(0) * 3/2)<CR> nnoremap <silent> <Leader>= :exe "resize " . (winheight(0) * 3/2)<CR>
nnoremap <silent> <Leader>+ :exe "resize " . (winheight(0) * 3/2)<CR> nnoremap <silent> <Leader>+ :exe "resize " . (winheight(0) * 3/2)<CR>
nnoremap <silent> <Leader>- :exe "resize " . (winheight(0) * 2/3)<CR> nnoremap <silent> <Leader>- :exe "resize " . (winheight(0) * 2/3)<CR>