aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Christian Pohle2017-10-30 17:28:23 +0100
committerMax Christian Pohle2017-10-30 17:28:23 +0100
commit236c2f9cb84103a245966f02082b499d9f7867fc (patch)
treebed40537f220521a612d1289d54c70e634adb169
parentb228ff1c9620ef81b7f089201f2dda31f316df9e (diff)
downloadvim-236c2f9cb84103a245966f02082b499d9f7867fc.tar.bz2
vim-236c2f9cb84103a245966f02082b499d9f7867fc.zip
Minor changes, mostly related to a clearer display
-rw-r--r--vimrc-full13
1 files changed, 9 insertions, 4 deletions
diff --git a/vimrc-full b/vimrc-full
index 982d8f9..9283f36 100644
--- a/vimrc-full
+++ b/vimrc-full
@@ -48,7 +48,7 @@ if has("multi_byte")
48 set termencoding=&encoding | " once we use special chars we assume everybody uses a terminal supporting those 48 set termencoding=&encoding | " once we use special chars we assume everybody uses a terminal supporting those
49 49
50 set fillchars+=fold:\— | " 50 set fillchars+=fold:\— | "
51 set fillchars+=vert:\│ | " cool vertical split char 51 set fillchars+=vert:\║ | " cool vertical split char
52 set fillchars+=diff:\ | " a whitespace gets used here 52 set fillchars+=diff:\ | " a whitespace gets used here
53 53
54 set listchars= | " initialize empty listchars 54 set listchars= | " initialize empty listchars
@@ -157,6 +157,7 @@ if has("gui_running")
157 157
158 " its possible to define alternative fonts (order matters) 158 " its possible to define alternative fonts (order matters)
159 set guifont= 159 set guifont=
160 set guifont=Hasklug\ Nerd\ Font\ Mono\ Semi-Bold\ 10
160 set guifont+=FuraMono\ Nerd\ Font\ Mono\ Medium\ 11 161 set guifont+=FuraMono\ Nerd\ Font\ Mono\ Medium\ 11
161 set guifont+=Source\ Code\ Pro\ for\ Powerline\ SemiBold\ 10 162 set guifont+=Source\ Code\ Pro\ for\ Powerline\ SemiBold\ 10
162 set guifont+=LiterationMono\ Nerd\ Font\ Mono\ 10 163 set guifont+=LiterationMono\ Nerd\ Font\ Mono\ 10
@@ -188,6 +189,7 @@ set nostartofline | " when scrolling: do not move the cursor to colu
188set nowrap | " but do not (by default) wrap long lines around 189set nowrap | " but do not (by default) wrap long lines around
189set nrformats+=alpha | " allows CTRL-A & CTRL-X to increment and decrement letters, not just numbers 190set nrformats+=alpha | " allows CTRL-A & CTRL-X to increment and decrement letters, not just numbers
190set path+=** | " allow recursive searches for files 191set path+=** | " allow recursive searches for files
192set incsearch | " highlight pattern while entering it (performancewise this isn't that good)
191set pumheight=8 | " Determines the maximum number of items to show in the popup menu for 193set pumheight=8 | " Determines the maximum number of items to show in the popup menu for
192set scrolljump=5 | " how many lines get scrolled into view when cursor reaches the screens edge 194set scrolljump=5 | " how many lines get scrolled into view when cursor reaches the screens edge
193set scrolloff=0 | " keeps cursor centered 195set scrolloff=0 | " keeps cursor centered
@@ -202,7 +204,7 @@ set nocursorcolumn | " turn visual cursor column off (improves perfor
202set updatetime=80 | " updates the screen more often 204set updatetime=80 | " updates the screen more often
203set redrawtime=1000 | " Timeout in milliseconds for redrawing the screen (switches syntax off when ssh too slow) / CTRL+L to retry 205set redrawtime=1000 | " Timeout in milliseconds for redrawing the screen (switches syntax off when ssh too slow) / CTRL+L to retry
204set notimeout | " improves performance but is known to cause problems on slow terminals 206set notimeout | " improves performance but is known to cause problems on slow terminals
205set ttimeout ttimeoutlen=50 | " set esc key timeout in ms- 207set ttimeout ttimeoutlen=250 | " set esc key timeout in ms-
206set showcmd | " essential: show keys of combined commands in the lower right corner (BUT SLOW, makes cursor flickering) 208set showcmd | " essential: show keys of combined commands in the lower right corner (BUT SLOW, makes cursor flickering)
207set showtabline=2 | " 0: never, 1: only if there are at least two tabs, 2:always 209set showtabline=2 | " 0: never, 1: only if there are at least two tabs, 2:always
208set shortmess+=I | " don't give the intro message when starting Vim |:intro|. 210set shortmess+=I | " don't give the intro message when starting Vim |:intro|.
@@ -335,7 +337,7 @@ if has("autocmd")
335 let l:currentword = escape(expand('<cword>'), '.') 337 let l:currentword = escape(expand('<cword>'), '.')
336 if(strlen(l:currentword) > 0) 338 if(strlen(l:currentword) > 0)
337 let w:m1=100 339 let w:m1=100
338 silent! call matchadd('BoldItalic', '\<'.l:currentword.'\>', -1, w:m1) 340 silent! call matchadd('BoldUnderline', '\<'.l:currentword.'\>', -1, w:m1)
339 endif 341 endif
340 endfunction 342 endfunction
341 autocmd! CursorHold,CursorHoldI * call HighlightWordUnderCursor() 343 autocmd! CursorHold,CursorHoldI * call HighlightWordUnderCursor()
@@ -681,6 +683,7 @@ let NERDTreeHiddenFirst = 1
681let NERDTreeMinimalUI = 1 683let NERDTreeMinimalUI = 1
682let NERDTreeShowBookmarks = 1 | " show bookmarks by default (when opening for the first time) 684let NERDTreeShowBookmarks = 1 | " show bookmarks by default (when opening for the first time)
683let NERDTreeWinSize = 40 685let NERDTreeWinSize = 40
686let NERDTreeQuitOnOpen = 1
684 687
685" depending on if NERDTree has the focus: 688" depending on if NERDTree has the focus:
686nnoremap <expr> 689nnoremap <expr>
@@ -973,12 +976,14 @@ function! ExtendColorTheme()
973 highlight! link TabLine LineNr 976 highlight! link TabLine LineNr
974 highlight! TabLineSel ctermbg=blue ctermfg=black 977 highlight! TabLineSel ctermbg=blue ctermfg=black
975 highlight! link TabLineFill LineNr 978 highlight! link TabLineFill LineNr
976 highlight! Search ctermbg=LightYellow ctermfg=black 979 highlight! Search ctermbg=LightYellow ctermfg=black guibg=#fefd86 guifg=#222222
980 highlight! link WildMenu Search
977 981
978 " generic, which should exist but don't 982 " generic, which should exist but don't
979 highlight! Bold cterm=bold gui=bold 983 highlight! Bold cterm=bold gui=bold
980 highlight! Italic cterm=italic gui=italic 984 highlight! Italic cterm=italic gui=italic
981 highlight! Underline cterm=underline gui=underline 985 highlight! Underline cterm=underline gui=underline
986 highlight! BoldUnderline cterm=bold,underline gui=bold,underline
982 highlight! BoldItalic cterm=Bold,Italic gui=Bold,Italic 987 highlight! BoldItalic cterm=Bold,Italic gui=Bold,Italic
983 988
984 " make tab stop (see listchars) less disturbing... 989 " make tab stop (see listchars) less disturbing...
..