aboutsummaryrefslogtreecommitdiff
path: root/vimrc
blob: f17d5078d70b366434a8f2bc9f18f454a456ea9b (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
26
27
28
29
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
"=======================================================================================================================
..