nvim: settings organization
This commit is contained in:
parent
36a7cd9364
commit
866986c46c
1 changed files with 5 additions and 3 deletions
|
@ -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>
|
||||||
|
|
Loading…
Add table
Reference in a new issue