exec ':source '.fnamemodify($MYVIMRC,':h').'/'.'vimrc-common' set packpath+=pack/vim 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-== " 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') " 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 "=======================================================================================================================