aboutsummaryrefslogtreecommitdiff
path: root/vimrc
blob: 86ff057611c171515cdf98803be4beb2b07d81fc (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
25
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)

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