From 850979e363ec83e9ab9603079843454127be30e7 Mon Sep 17 00:00:00 2001
From: Max Christian Pohle
Date: Wed, 28 Mar 2018 14:43:27 +0200
Subject: More screen space and unconditional white space markers

---
 vimrc-full | 14 ++++++++------
 1 file 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,
 set nonumber norelativenumber     | " do not show numbers by default, because that causes a performance loss, instead activate them on a file type basis
 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)
 
+
+set path+=**                      | " allow recursive searches for files
+let &path = &path.",/usr/lib/modules/".substitute(system('uname -r'), "\n", "", "")."/build/include"
+
 "=======================================================================================================================
 " SHELL
 "=======================================================================================================================
@@ -187,7 +191,6 @@ set noautochdir               | " When on, Vim will change the current working d
 set nostartofline             | " when scrolling: do not move the cursor to column 1
 set nowrap                    | " but do not (by default) wrap long lines around
 set nrformats+=alpha          | " allows CTRL-A & CTRL-X to increment and decrement letters, not just numbers
-set path+=**                  | " allow recursive searches for files
 set incsearch                 | " highlight pattern while entering it (performance wise this isn't that good)
 set pumheight=8               | " Determines the maximum number of items to show in the pop-up menu for
 set scrolljump=5              | " how many lines get scrolled into view when cursor reaches the screens edge
@@ -198,7 +201,7 @@ set writedelay=0
 " display and performance
 set lazyredraw                | " disables redraw during macro execution (improves performance)
 set cmdheight=2               | " sets the command line's height
-set signcolumn=yes            | " auto=auto hide, yes=always, no=never show the column with error indicators
+set signcolumn=auto           | " auto=auto hide, yes=always, no=never show the column with error indicators
 set nocursorcolumn            | " turn visual cursor column off (improves performance)
 set updatetime=80             | " updates the screen more often
 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")
   augroup set_window_title " {
     " autocmd BufWinEnter quickfix setl statusline=%t
     " autocmd BufEnter * let &titlestring = hostname() . "[vim(" . expand("%:t") . ")]"
-    autocmd CursorHold * let &titlestring = "%t %y ".$USER."@".hostname().":%{expand(\"%:~:.:h\")}"
+    autocmd cursorhold * let &titlestring = "%t %y ".$user."@".hostname().":%{expand(\"%:~:.:h\")}"
     set title
     " autocmd CursorHold * let &titlestring = "Vim (".airline#extensions#tagbar#currenttag().")"
 
@@ -1053,9 +1056,8 @@ function! ExtendColorTheme()
   " Show trailing whitepace and spaces before a tab as part of the syntax highlighting
   highlight! link Convention Error
   " autocmd BufEnter,InsertLeave * syntax match Convention /\s\+$\| \+\ze\t/ containedin=ALL
-  " autocmd BufEnter,InsertLeave * syntax match Convention /\s\+$\| \+\ze\t/ containedin=ALL
-  autocmd BufEnter,BufWritePost * syntax match Convention /\s\+$\| \+\ze\t/ containedin=ALL
-  " TODO: faster strategy
+  autocmd Syntax * syntax match Convention /\s\+$\| \+\ze\t/ containedin=ALL
+  " autocmd BufEnter,BufWritePost * syntax match Convention /\s\+$\| \+\ze\t/ containedin=ALL
   " autocmd InsertEnter * syntax clear Convention
   " autocmd BufEnter,InsertLeave * execute ':syntax match Convention /\%>'.&textwidth.'v./ containedin=ALL'
 
-- 
cgit v1.2.3