diff options
author | Max Christian Pohle | 2020-07-16 20:41:11 +0200 |
---|---|---|
committer | Max Christian Pohle | 2020-07-16 20:41:11 +0200 |
commit | 3abfad483660e8dcdd77965a237c271a90cec8e7 (patch) | |
tree | f5ac85cf568b8865fc25a6e3ae07861ea6b4ca20 | |
parent | 19156c818fdd12865c6d17872eea917ab3aaee82 (diff) | |
download | vim-karlmarks-3abfad483660e8dcdd77965a237c271a90cec8e7.tar.bz2 vim-karlmarks-3abfad483660e8dcdd77965a237c271a90cec8e7.zip |
Tiny mostly optical improvements
-rw-r--r-- | after/ftplugin/python.vim | 2 | ||||
-rw-r--r-- | plugin/max-fix-colorschemes.vim | 4 | ||||
-rw-r--r-- | plugin/statusline.vim | 2 | ||||
-rw-r--r-- | vimrc | 4 |
4 files changed, 11 insertions, 1 deletions
diff --git a/after/ftplugin/python.vim b/after/ftplugin/python.vim index 642e1c0..a5c454a 100644 --- a/after/ftplugin/python.vim +++ b/after/ftplugin/python.vim | |||
@@ -8,3 +8,5 @@ for p in sys.path: | |||
8 | # Command 'set' needs backslash before each space. | 8 | # Command 'set' needs backslash before each space. |
9 | vim.command(r"set path+=%s" % (p.replace(" ", r"\ "))) | 9 | vim.command(r"set path+=%s" % (p.replace(" ", r"\ "))) |
10 | EOF | 10 | EOF |
11 | |||
12 | hi link pythonDecoratorName pythonDecorator | ||
diff --git a/plugin/max-fix-colorschemes.vim b/plugin/max-fix-colorschemes.vim index c0f091d..edbb0ee 100644 --- a/plugin/max-fix-colorschemes.vim +++ b/plugin/max-fix-colorschemes.vim | |||
@@ -26,6 +26,10 @@ function! ExtendColorTheme() | |||
26 | highlight! link FoldColumn VertSplit | 26 | highlight! link FoldColumn VertSplit |
27 | " highlight! link Folded LineNr | 27 | " highlight! link Folded LineNr |
28 | highlight! link EndOfBuffer NonText | 28 | highlight! link EndOfBuffer NonText |
29 | hi Comment gui=italic | ||
30 | hi Keyword gui=bold | ||
31 | |||
32 | autocmd BufReadPost * syntax match Convention /\s*$/ | ||
29 | endfunction | 33 | endfunction |
30 | autocmd ColorScheme * call ExtendColorTheme() | 34 | autocmd ColorScheme * call ExtendColorTheme() |
31 | 35 | ||
diff --git a/plugin/statusline.vim b/plugin/statusline.vim index 57fbfa4..bad9eb9 100644 --- a/plugin/statusline.vim +++ b/plugin/statusline.vim | |||
@@ -24,7 +24,7 @@ augroup MAX_FANCYLINE | |||
24 | " this function reverts foreground color and background color of a given | 24 | " this function reverts foreground color and background color of a given |
25 | " highlight group and returns the name of a newly created _invert group | 25 | " highlight group and returns the name of a newly created _invert group |
26 | function! CreateInvertGroup(highlight_group) | 26 | function! CreateInvertGroup(highlight_group) |
27 | if(synIDattr(synIDtrans(hlID(a:highlight_group)), 'reverse', 'cterm')==1) | 27 | if(synIDattr(synIDtrans(hlID(a:highlight_group)), 'reverse', 'gui')==1) |
28 | let w:color=synIDattr(hlID(a:highlight_group), 'fg#') | 28 | let w:color=synIDattr(hlID(a:highlight_group), 'fg#') |
29 | else | 29 | else |
30 | let w:color=synIDattr(hlID(a:highlight_group), 'bg#') | 30 | let w:color=synIDattr(hlID(a:highlight_group), 'bg#') |
@@ -8,6 +8,10 @@ set ttyscroll=100 | " improves speed for terminal vim, incompatible with nvim | |||
8 | set ttyfast | " improves speed for terminal vim (incompatible with nvim) | 8 | set ttyfast | " improves speed for terminal vim (incompatible with nvim) |
9 | set restorescreen | " restores the console after exiting vim (intentionally not in nvim) | 9 | set restorescreen | " restores the console after exiting vim (intentionally not in nvim) |
10 | 10 | ||
11 | " because file names rarely have equal signs, but many different configuration | ||
12 | " file formats use that, we want to exclude the sign from the pattern | ||
13 | set isfname-== | ||
14 | |||
11 | " autocmd VimLeave * call system("echo -n $'" . escape(getreg(), "'") . "' | xsel -ib") | 15 | " autocmd VimLeave * call system("echo -n $'" . escape(getreg(), "'") . "' | xsel -ib") |
12 | " autocmd VimLeave * call system("xsel -ib", getreg('+')) | 16 | " autocmd VimLeave * call system("xsel -ib", getreg('+')) |
13 | autocmd VimLeave * call system('echo ' . shellescape(getreg('+')) . ' | xclip -selection clipboard') | 17 | autocmd VimLeave * call system('echo ' . shellescape(getreg('+')) . ' | xclip -selection clipboard') |