X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=vimrc;h=623b60fd837d51ecf7f285f80c6e8ab9af193099;hb=9f40ae3e21a135bcd8abe16b5d5073d22f523057;hp=cfd10d4099f86fa8488d3548225429cf5ae9d227;hpb=26ef96d408b32e71a95eaedc3fd04a9a11479dd3;p=config%2Fdotfiles.git diff --git a/vimrc b/vimrc index cfd10d4..623b60f 100644 --- a/vimrc +++ b/vimrc @@ -1,6 +1,6 @@ " Vim main configuration file. -" Copyright (C) 2011-2012 Simon Ruderich +" Copyright (C) 2008-2012 Simon Ruderich " " This file is free software: you can redistribute it and/or modify " it under the terms of the GNU General Public License as published by @@ -198,10 +198,16 @@ endif " remove the highlighting until the next search. set hlsearch -" Display tabs, trailing space, non breakable spaces and long lines (when -" wrapping is disabled). +" Display some special characters. set list -set listchars=trail:-,extends:> +set listchars= +" Display tabs as ">--------". +set listchars+=tab:>- +" Display trailing whitespace as "-". +set listchars+=trail:- +" Display markers for long lines when wrapping is disabled. +set listchars+=extends:>,precedes:< +" Display non-breakable space as "!". if v:version >= 700 set listchars+=nbsp:! endif @@ -534,9 +540,10 @@ if has('syntax') \ '2003', '2004', '2005', '2006', '2007', '2008', \ '2009', '200a', '200b', '200c', '200d', '202f', \ '205f', '2060', '3000', 'feff'] - " Compatibility fix for Vim 6.4. + " Compatibility fix for Vim 6.4. Escape \ inside the " string or + " it won't work! execute ' for l:x in l:spaces' - \ '| call matchadd("Error", "\%u" . l:x)' + \ '| call matchadd("Error", "\\%u" . l:x)' \ '| endfor' endif endfunction