From 3abfad483660e8dcdd77965a237c271a90cec8e7 Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Thu, 16 Jul 2020 20:41:11 +0200 Subject: Tiny mostly optical improvements --- after/ftplugin/python.vim | 2 ++ plugin/max-fix-colorschemes.vim | 4 ++++ plugin/statusline.vim | 2 +- vimrc | 4 ++++ 4 files changed, 11 insertions(+), 1 deletion(-) 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: # Command 'set' needs backslash before each space. vim.command(r"set path+=%s" % (p.replace(" ", r"\ "))) EOF + +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() highlight! link FoldColumn VertSplit " highlight! link Folded LineNr highlight! link EndOfBuffer NonText + hi Comment gui=italic + hi Keyword gui=bold + + autocmd BufReadPost * syntax match Convention /\s*$/ endfunction autocmd ColorScheme * call ExtendColorTheme() 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 " this function reverts foreground color and background color of a given " highlight group and returns the name of a newly created _invert group function! CreateInvertGroup(highlight_group) - if(synIDattr(synIDtrans(hlID(a:highlight_group)), 'reverse', 'cterm')==1) + if(synIDattr(synIDtrans(hlID(a:highlight_group)), 'reverse', 'gui')==1) let w:color=synIDattr(hlID(a:highlight_group), 'fg#') else let w:color=synIDattr(hlID(a:highlight_group), 'bg#') diff --git a/vimrc b/vimrc index 86ff057..f17d507 100644 --- a/vimrc +++ b/vimrc @@ -8,6 +8,10 @@ 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') -- cgit v1.2.3