From 07797b39851da045aa1bfd0289de0858a1377c48 Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Sun, 18 Dec 2022 20:29:55 +0100 Subject: Switched to nvim and neovide --- vimrc-common | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) (limited to 'vimrc-common') diff --git a/vimrc-common b/vimrc-common index 239cc91..6f0d7af 100644 --- a/vimrc-common +++ b/vimrc-common @@ -9,7 +9,7 @@ set modeline | " set variables specific to a file, like ind set textwidth=0 | " better done with modeline or local exrc and not here set ts=4 sts=4 sw=4 expandtab | " better done with a modeline or local exrc set virtualedit=all | " virtual edit should be default behaviour, because I don't see any reason against -set nonumber norelativenumber | " do not show numbers by default, because that causes a performance loss, instead activate them on a file type basis +set number norelativenumber | " do not show numbers by default, because that causes a performance loss, instead activate them on a file type basis set ignorecase smartcase | " search with ignore case by default, but use case sensitive search when one capital char is contained and highlight while typing (even though its slower) set hlsearch incsearch | " highlight pattern while entering it (performance wise this isn't that good) " set cindent cinoptions+=(0 | " indent at parentheses @@ -78,9 +78,9 @@ if has("multi_byte") set listchars+=tab:▏\ | " set listchars+=trail:· | " symbols used when using :set list (which displays non-printable chars) - " set listchars+=eol:↲ | " symbols used when using :set list (which displays non-printable chars) - " set listchars+=space:· | " symbols used when using :set list (which displays non-printable chars) - "set showbreak+=› | " symbol used in the beginning of a wrapped line + " set listchars+=eol:↲ | " symbols used when using :set list (which displays non-printable chars) + " set listchars+=space:⸳ | " · | " symbols used when using :set list (which displays non-printable chars) + set showbreak+=› | " symbol used in the beginning of a wrapped line " automatically enter list mode when going in insert mode (makes above syntax command temporarily ineffective) set nolist @@ -100,7 +100,7 @@ end " SETTINGS: " ====================================================================================================================== set breakindent | " Every wrapped line will continue visually indented -set clipboard=unnamedplus | " makes copy and paste work (autoselectplus might work as well) +" set clipboard=unnamedplus | " makes copy and paste work (autoselectplus might work as well) set concealcursor=nc | " limits the display of concealed text to normal and command mode set conceallevel=2 | " replace escaped chars by their UTF-8 representation (useful for LaTeX) set confirm | " asks 'do you want to save?' @@ -125,7 +125,7 @@ set shiftround | " indent/un-indent snaps to multiple of shiftwid set writedelay=0 " display and performance -set lazyredraw | " disables redraw during macro execution (improves performance) +set lazyredraw | " disables redraw during macro execution (improves performance, but causes problems with solid backgrounds) set cmdheight=2 | " sets the command line's height set signcolumn=auto | " auto=auto hide, yes=always, no=never show the column with error indicators set nocursorcolumn | " turn visual cursor column off (improves performance) @@ -156,7 +156,7 @@ set tags+=../tags " code folding... set nofoldenable | " disable folding, because we have zi to toggle foldenable :) set foldclose=all | " automatically fold, when the cursor leaves the folded area -set foldcolumn=2 | " I think I don't need this second indicator +set foldcolumn=0 | " I think I don't need this second indicator " set numberwidth=5 " set foldmethod=syntax | " foldlevel: syntax, indent, manual / foldmethod=syntax makes Vim incredible slow set foldnestmax=1 | " top level folding only @@ -199,7 +199,6 @@ set nocursorline | " turn visual cursor line off (improves performa "======================================================================================================================= if has("autocmd") " use the shada/viminfo file to return the cursor to where it was... - autocmd BufReadPost * call setpos(".", getpos("'\"")) autocmd BufWinEnter * if &previewwindow | setlocal nonumber nolist signcolumn=no filetype=c nobuflisted | endif " Workaround: Allows Vim to yank text within wayland @@ -343,10 +342,10 @@ augroup KEYBOARD_MAPPING " if the wildmenu is configured to to display suggestions vertically, then " reconfigure the cursor keys to work in that direction - if &wildoptions =~# 'pum' - cnoremap pumvisible() ? "" : "\" - cnoremap pumvisible() ? "" : "\" - endif + " if &wildoptions =~# 'pum' + " cnoremap pumvisible() ? "" : "\" + " cnoremap pumvisible() ? "" : "\" + " endif " INSERT_MODE_MAPPINGS: -- cgit v1.2.3