diff options
author | Max Christian Pohle | 2017-10-30 17:28:23 +0100 |
---|---|---|
committer | Max Christian Pohle | 2017-10-30 17:28:23 +0100 |
commit | 236c2f9cb84103a245966f02082b499d9f7867fc (patch) | |
tree | bed40537f220521a612d1289d54c70e634adb169 /vimrc-full | |
parent | b228ff1c9620ef81b7f089201f2dda31f316df9e (diff) | |
download | vim-karlmarks-236c2f9cb84103a245966f02082b499d9f7867fc.tar.bz2 vim-karlmarks-236c2f9cb84103a245966f02082b499d9f7867fc.zip |
Minor changes, mostly related to a clearer display
Diffstat (limited to 'vimrc-full')
-rw-r--r-- | vimrc-full | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -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 | |||
188 | set nowrap | " but do not (by default) wrap long lines around | 189 | set nowrap | " but do not (by default) wrap long lines around |
189 | set nrformats+=alpha | " allows CTRL-A & CTRL-X to increment and decrement letters, not just numbers | 190 | set nrformats+=alpha | " allows CTRL-A & CTRL-X to increment and decrement letters, not just numbers |
190 | set path+=** | " allow recursive searches for files | 191 | set path+=** | " allow recursive searches for files |
192 | set incsearch | " highlight pattern while entering it (performancewise this isn't that good) | ||
191 | set pumheight=8 | " Determines the maximum number of items to show in the popup menu for | 193 | set pumheight=8 | " Determines the maximum number of items to show in the popup menu for |
192 | set scrolljump=5 | " how many lines get scrolled into view when cursor reaches the screens edge | 194 | set scrolljump=5 | " how many lines get scrolled into view when cursor reaches the screens edge |
193 | set scrolloff=0 | " keeps cursor centered | 195 | set scrolloff=0 | " keeps cursor centered |
@@ -202,7 +204,7 @@ set nocursorcolumn | " turn visual cursor column off (improves perfor | |||
202 | set updatetime=80 | " updates the screen more often | 204 | set updatetime=80 | " updates the screen more often |
203 | set redrawtime=1000 | " Timeout in milliseconds for redrawing the screen (switches syntax off when ssh too slow) / CTRL+L to retry | 205 | set redrawtime=1000 | " Timeout in milliseconds for redrawing the screen (switches syntax off when ssh too slow) / CTRL+L to retry |
204 | set notimeout | " improves performance but is known to cause problems on slow terminals | 206 | set notimeout | " improves performance but is known to cause problems on slow terminals |
205 | set ttimeout ttimeoutlen=50 | " set esc key timeout in ms- | 207 | set ttimeout ttimeoutlen=250 | " set esc key timeout in ms- |
206 | set showcmd | " essential: show keys of combined commands in the lower right corner (BUT SLOW, makes cursor flickering) | 208 | set showcmd | " essential: show keys of combined commands in the lower right corner (BUT SLOW, makes cursor flickering) |
207 | set showtabline=2 | " 0: never, 1: only if there are at least two tabs, 2:always | 209 | set showtabline=2 | " 0: never, 1: only if there are at least two tabs, 2:always |
208 | set shortmess+=I | " don't give the intro message when starting Vim |:intro|. | 210 | set 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 | |||
681 | let NERDTreeMinimalUI = 1 | 683 | let NERDTreeMinimalUI = 1 |
682 | let NERDTreeShowBookmarks = 1 | " show bookmarks by default (when opening for the first time) | 684 | let NERDTreeShowBookmarks = 1 | " show bookmarks by default (when opening for the first time) |
683 | let NERDTreeWinSize = 40 | 685 | let NERDTreeWinSize = 40 |
686 | let NERDTreeQuitOnOpen = 1 | ||
684 | 687 | ||
685 | " depending on if NERDTree has the focus: | 688 | " depending on if NERDTree has the focus: |
686 | nnoremap <expr> | 689 | nnoremap <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... |