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 | 50 +++++++++++++++++++++++++++++--------------------- 1 file changed, 29 insertions(+), 21 deletions(-) (limited to 'vimrc') diff --git a/vimrc b/vimrc index f17d507..a76471b 100644 --- a/vimrc +++ b/vimrc @@ -1,29 +1,37 @@ exec ':source '.fnamemodify($MYVIMRC,':h').'/'.'vimrc-common' -set packpath+=pack/vim +set packpath+=pack/submodules -set ttymouse=xterm2 -set term=xterm-256color " usually a good choice, install ncurses and use `toe` to see all available choices -set ttybuiltin | " use internal termcaps, because these are more stable -set ttyscroll=100 | " improves speed for terminal vim, incompatible with nvim -set ttyfast | " improves speed for terminal vim (incompatible with nvim) -set restorescreen | " restores the console after exiting vim (intentionally not in nvim) - -" because file names rarely have equal signs, but many different configuration -" file formats use that, we want to exclude the sign from the pattern set isfname-== +set modeline -" autocmd VimLeave * call system("echo -n $'" . escape(getreg(), "'") . "' | xsel -ib") -" autocmd VimLeave * call system("xsel -ib", getreg('+')) -autocmd VimLeave * call system('echo ' . shellescape(getreg('+')) . ' | xclip -selection clipboard') +set signcolumn=yes +set foldcolumn=1 -" scripts from the default vim installation, which do not get loaded by default, but are useful. -if filereadable($VIMRUNTIME.'/macros/editexisting.vim') - packadd! editexisting +if ($XDG_SESSION_TYPE ==# 'wayland' || ! empty($WAYLAND_DISPLAY)) + autocmd TextYankPost * call system("wl-copy", get(v:event, 'regcontents')) + nnoremap p :silent put =system('wl-paste') + nnoremap P :silent put! =system('wl-paste') endif -" load default plugin 'matchit' to allow % to jump between tags -if filereadable($VIMRUNTIME.'/macros/matchit.vim') - packadd! matchit -endif -"======================================================================================================================= + +set shadafile="/tmp/shada" + +" neovide specific +set guifont=monospace:h11:b +" :#e-subpixelantialias:#h-full +let g:neovide_cursor_animation_length=0.03 +let g:neovide_cursor_trail_size=0.8 +let g:neovide_scroll_animation_length = 0.05 +let g:neovide_transparency = 0.9 + +" scripts from the default vim installation, which do not get loaded by default, but are useful. +" if filereadable($VIMRUNTIME.'/macros/editexisting.vim') +" packadd! editexisting +" endif +" +" " load default plugin 'matchit' to allow % to jump between tags +" if filereadable($VIMRUNTIME.'/macros/matchit.vim') +" packadd! matchit +" endif +" -- cgit v1.2.3