aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Christian Pohle2020-07-16 20:41:11 +0200
committerMax Christian Pohle2020-07-16 20:41:11 +0200
commit3abfad483660e8dcdd77965a237c271a90cec8e7 (patch)
treef5ac85cf568b8865fc25a6e3ae07861ea6b4ca20
parent19156c818fdd12865c6d17872eea917ab3aaee82 (diff)
downloadvim-karlmarks-3abfad483660e8dcdd77965a237c271a90cec8e7.tar.bz2
vim-karlmarks-3abfad483660e8dcdd77965a237c271a90cec8e7.zip
Tiny mostly optical improvements
-rw-r--r--after/ftplugin/python.vim2
-rw-r--r--plugin/max-fix-colorschemes.vim4
-rw-r--r--plugin/statusline.vim2
-rw-r--r--vimrc4
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"\ ")))
10EOF 10EOF
11
12hi 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*$/
29endfunction 33endfunction
30autocmd ColorScheme * call ExtendColorTheme() 34autocmd 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#')
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
8set ttyfast | " improves speed for terminal vim (incompatible with nvim) 8set ttyfast | " improves speed for terminal vim (incompatible with nvim)
9set restorescreen | " restores the console after exiting vim (intentionally not in nvim) 9set 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
13set 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('+'))
13autocmd VimLeave * call system('echo ' . shellescape(getreg('+')) . ' | xclip -selection clipboard') 17autocmd VimLeave * call system('echo ' . shellescape(getreg('+')) . ' | xclip -selection clipboard')
..