aboutsummaryrefslogtreecommitdiff
path: root/vimrc-full
diff options
context:
space:
mode:
authorMax Christian Pohle2018-03-28 14:43:27 +0200
committerMax Christian Pohle2018-03-28 14:43:27 +0200
commit850979e363ec83e9ab9603079843454127be30e7 (patch)
treeb5b0dd8de933e31a72f3759f0687c5f5f2b01c21 /vimrc-full
parenta4383bb89be5ee4650780b87d66dd2724af4ad9f (diff)
downloadvim-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-full14
1 files changed, 8 insertions, 6 deletions
diff --git a/vimrc-full b/vimrc-full
index dfff12d..6ffd5e0 100644
--- a/vimrc-full
+++ b/vimrc-full
@@ -10,6 +10,10 @@ set virtualedit=all | " virtual edit should be default behaviour,
10set nonumber norelativenumber | " do not show numbers by default, because that causes a performance loss, instead activate them on a file type basis 10set nonumber norelativenumber | " do not show numbers by default, because that causes a performance loss, instead activate them on a file type basis
11set 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) 11set 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
14set path+=** | " allow recursive searches for files
15let &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
187set nostartofline | " when scrolling: do not move the cursor to column 1 191set nostartofline | " when scrolling: do not move the cursor to column 1
188set nowrap | " but do not (by default) wrap long lines around 192set 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 193set nrformats+=alpha | " allows CTRL-A & CTRL-X to increment and decrement letters, not just numbers
190set path+=** | " allow recursive searches for files
191set incsearch | " highlight pattern while entering it (performance wise this isn't that good) 194set incsearch | " highlight pattern while entering it (performance wise this isn't that good)
192set pumheight=8 | " Determines the maximum number of items to show in the pop-up menu for 195set pumheight=8 | " Determines the maximum number of items to show in the pop-up menu for
193set scrolljump=5 | " how many lines get scrolled into view when cursor reaches the screens edge 196set 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
199set lazyredraw | " disables redraw during macro execution (improves performance) 202set lazyredraw | " disables redraw during macro execution (improves performance)
200set cmdheight=2 | " sets the command line's height 203set cmdheight=2 | " sets the command line's height
201set signcolumn=yes | " auto=auto hide, yes=always, no=never show the column with error indicators 204set signcolumn=auto | " auto=auto hide, yes=always, no=never show the column with error indicators
202set nocursorcolumn | " turn visual cursor column off (improves performance) 205set nocursorcolumn | " turn visual cursor column off (improves performance)
203set updatetime=80 | " updates the screen more often 206set updatetime=80 | " updates the screen more often
204set redrawtime=1500 | " Timeout in milliseconds for redrawing the screen (switches syntax off when ssh too slow) / CTRL+L to retry 207set 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
..