commit 1939e862c6cf7b3e10fcf82563c5e434974ba9c8
parent 695f7dd85c756d7e0a0244811079b6706ab9336f
Author: Oscar Benedito <oscar@oscarbenedito.com>
Date: Mon, 6 Nov 2023 18:41:29 +0100
Minor nvim config updates
Diffstat:
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim
@@ -69,9 +69,9 @@ augroup END
" filetype specific config
augroup vimrc
autocmd FileType markdown,vimwiki,mail,tex,text set formatoptions+=t " break lines when longer than textwidth
- autocmd FileType markdown,vimwiki set tabstop=2 " number of spaces when tab is pressed
- autocmd FileType markdown,vimwiki set shiftwidth=2 " number of spaces for indentation
- autocmd FileType mail set textwidth=72
+ autocmd FileType markdown,vimwiki,html set tabstop=2 shiftwidth=2
+ autocmd FileType html set textwidth=100 colorcolumn=101
+ autocmd FileType mail set textwidth=72 colorcolumn=73
autocmd FileType c set noexpandtab
autocmd FileType help nnoremap q <Cmd>q<CR>
augroup END
@@ -99,6 +99,11 @@ noremap <silent> <C-Down> <Cmd>resize -3<CR>
noremap <silent> <C-Left> <Cmd>vertical resize +3<CR>
noremap <silent> <C-Right> <Cmd>vertical resize -3<CR>
+" quickfix list
+noremap <Leader>j <Cmd>cnext<CR>zz
+noremap <Leader>k <Cmd>cprev<CR>zz
+noremap <Leader>q <Cmd>copen<CR>
+
" undo
nnoremap U <C-r>