From e8adcc30469533430602fddbc59c8c0a59146568 Mon Sep 17 00:00:00 2001 From: Zofia Szweda Date: Wed, 9 Sep 2026 12:16:54 +0200 Subject: vim: add QOL options such as scrolloff and fix bugs --- vim/.vimrc | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'vim/.vimrc') diff --git a/vim/.vimrc b/vim/.vimrc index dbb8c37..d5182d9 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -26,6 +26,14 @@ filetype on filetype indent on filetype plugin on "set +set updatetime=300 +set completeopt=menuone,popup,noinsert,noselect +set scrolloff=5 " same as helix's scrolloff +set clipboard=unnamedplus +set splitright +set splitbelow +set confirm +set title set fileformat=unix set encoding=UTF-8 set number @@ -57,8 +65,7 @@ colorscheme flatwhite nnoremap nnoremap :WhichKey '' inoremap l -nnoremap c "+y -vnoremap c "+y +inoremap pumvisible() ? "\" : "\" "let let g:ale_linters = { \'vim': ['vint'], @@ -98,7 +105,7 @@ augroup lsp autocmd User LspSetup call LspOptionsSet(#{ \ autoComplete: v:true, \ autoHighlightDiags: v:true, - \ noNewlineCompletion: v:true, + \ noNewlineInCompletion: v:true, \ formatFallback: v:false, \ }) -- cgit v1.2.3