aboutsummaryrefslogtreecommitdiff
path: root/vimrc
blob: 3c6b53ab5313e1cd9ff7ccc922245bacc9a61460 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
exec ':source '.fnamemodify($MYVIMRC,':h').'/'.'vimrc-common' 
set packpath+=pack/vim

set ttymouse=xterm2
set ttyscroll=100   | " improves speed for terminal vim, incompatible with nvim
set ttyfast         | " improves speed for terminal vim (incompatible with nvim)
set nottybuiltin    | " use external termcaps
set restorescreen   | " restores the console after exiting vim (intentionally not in nvim)

" 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
"=======================================================================================================================
..