diff options
author | Max Christian Pohle | 2018-03-28 14:43:27 +0200 |
---|---|---|
committer | Max Christian Pohle | 2018-03-28 14:43:27 +0200 |
commit | 850979e363ec83e9ab9603079843454127be30e7 (patch) | |
tree | b5b0dd8de933e31a72f3759f0687c5f5f2b01c21 /vimrc-full | |
parent | a4383bb89be5ee4650780b87d66dd2724af4ad9f (diff) | |
download | vim-karlmarks-850979e363ec83e9ab9603079843454127be30e7.tar.bz2 vim-karlmarks-850979e363ec83e9ab9603079843454127be30e7.zip |
More screen space and unconditional white space markers
Diffstat (limited to 'vimrc-full')
-rw-r--r-- | vimrc-full | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -10,6 +10,10 @@ set virtualedit=all | " virtual edit should be default behaviour, | |||
10 | set nonumber norelativenumber | " do not show numbers by default, because that causes a performance loss, instead activate them on a file type basis | 10 | set nonumber norelativenumber | " do not show numbers by default, because that causes a performance loss, instead activate them on a file type basis |
11 | set ignorecase smartcase hlsearch | " search with ignore case by default, but use case sensitive search when one capital char is contained and highlight while typing (even though its slower) | 11 | set ignorecase smartcase hlsearch | " search with ignore case by default, but use case sensitive search when one capital char is contained and highlight while typing (even though its slower) |
12 | 12 | ||
13 | |||
14 | set path+=** | " allow recursive searches for files | ||
15 | let &path = &path.",/usr/lib/modules/".substitute(system('uname -r'), "\n", "", "")."/build/include" | ||
16 | |||
13 | "======================================================================================================================= | 17 | "======================================================================================================================= |
14 | " SHELL | 18 | " SHELL |
15 | "======================================================================================================================= | 19 | "======================================================================================================================= |
@@ -187,7 +191,6 @@ set noautochdir | " When on, Vim will change the current working d | |||
187 | set nostartofline | " when scrolling: do not move the cursor to column 1 | 191 | set nostartofline | " when scrolling: do not move the cursor to column 1 |
188 | set nowrap | " but do not (by default) wrap long lines around | 192 | 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 | 193 | 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 incsearch | " highlight pattern while entering it (performance wise this isn't that good) | 194 | set incsearch | " highlight pattern while entering it (performance wise this isn't that good) |
192 | set pumheight=8 | " Determines the maximum number of items to show in the pop-up menu for | 195 | set pumheight=8 | " Determines the maximum number of items to show in the pop-up menu for |
193 | set scrolljump=5 | " how many lines get scrolled into view when cursor reaches the screens edge | 196 | set scrolljump=5 | " how many lines get scrolled into view when cursor reaches the screens edge |
@@ -198,7 +201,7 @@ set writedelay=0 | |||
198 | " display and performance | 201 | " display and performance |
199 | set lazyredraw | " disables redraw during macro execution (improves performance) | 202 | set lazyredraw | " disables redraw during macro execution (improves performance) |
200 | set cmdheight=2 | " sets the command line's height | 203 | set cmdheight=2 | " sets the command line's height |
201 | set signcolumn=yes | " auto=auto hide, yes=always, no=never show the column with error indicators | 204 | set signcolumn=auto | " auto=auto hide, yes=always, no=never show the column with error indicators |
202 | set nocursorcolumn | " turn visual cursor column off (improves performance) | 205 | set nocursorcolumn | " turn visual cursor column off (improves performance) |
203 | set updatetime=80 | " updates the screen more often | 206 | set updatetime=80 | " updates the screen more often |
204 | set redrawtime=1500 | " Timeout in milliseconds for redrawing the screen (switches syntax off when ssh too slow) / CTRL+L to retry | 207 | set redrawtime=1500 | " Timeout in milliseconds for redrawing the screen (switches syntax off when ssh too slow) / CTRL+L to retry |
@@ -315,7 +318,7 @@ if has("autocmd") | |||
315 | augroup set_window_title " { | 318 | augroup set_window_title " { |
316 | " autocmd BufWinEnter quickfix setl statusline=%t | 319 | " autocmd BufWinEnter quickfix setl statusline=%t |
317 | " autocmd BufEnter * let &titlestring = hostname() . "[vim(" . expand("%:t") . ")]" | 320 | " autocmd BufEnter * let &titlestring = hostname() . "[vim(" . expand("%:t") . ")]" |
318 | autocmd CursorHold * let &titlestring = "%t %y ".$USER."@".hostname().":%{expand(\"%:~:.:h\")}" | 321 | autocmd cursorhold * let &titlestring = "%t %y ".$user."@".hostname().":%{expand(\"%:~:.:h\")}" |
319 | set title | 322 | set title |
320 | " autocmd CursorHold * let &titlestring = "Vim (".airline#extensions#tagbar#currenttag().")" | 323 | " autocmd CursorHold * let &titlestring = "Vim (".airline#extensions#tagbar#currenttag().")" |
321 | 324 | ||
@@ -1053,9 +1056,8 @@ function! ExtendColorTheme() | |||
1053 | " Show trailing whitepace and spaces before a tab as part of the syntax highlighting | 1056 | " Show trailing whitepace and spaces before a tab as part of the syntax highlighting |
1054 | highlight! link Convention Error | 1057 | highlight! link Convention Error |
1055 | " autocmd BufEnter,InsertLeave * syntax match Convention /\s\+$\| \+\ze\t/ containedin=ALL | 1058 | " autocmd BufEnter,InsertLeave * syntax match Convention /\s\+$\| \+\ze\t/ containedin=ALL |
1056 | " autocmd BufEnter,InsertLeave * syntax match Convention /\s\+$\| \+\ze\t/ containedin=ALL | 1059 | autocmd Syntax * syntax match Convention /\s\+$\| \+\ze\t/ containedin=ALL |
1057 | autocmd BufEnter,BufWritePost * syntax match Convention /\s\+$\| \+\ze\t/ containedin=ALL | 1060 | " autocmd BufEnter,BufWritePost * syntax match Convention /\s\+$\| \+\ze\t/ containedin=ALL |
1058 | " TODO: faster strategy | ||
1059 | " autocmd InsertEnter * syntax clear Convention | 1061 | " autocmd InsertEnter * syntax clear Convention |
1060 | " autocmd BufEnter,InsertLeave * execute ':syntax match Convention /\%>'.&textwidth.'v./ containedin=ALL' | 1062 | " autocmd BufEnter,InsertLeave * execute ':syntax match Convention /\%>'.&textwidth.'v./ containedin=ALL' |
1061 | 1063 | ||