Add a vim configuration example to highlight overly long lines.
authorobnox <obnox@0c0555d6-39d7-0310-84fc-f1cc0bd64818>
Thu, 27 Sep 2007 19:20:37 +0000 (19:20 +0000)
committerobnox <obnox@0c0555d6-39d7-0310-84fc-f1cc0bd64818>
Thu, 27 Sep 2007 19:20:37 +0000 (19:20 +0000)
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@25378 0c0555d6-39d7-0310-84fc-f1cc0bd64818

README.Coding

index da6bb382078bfa4c49f13579797b60382102fb79..fd52dbe890d6b870b7bcfa77b528224debc762f2 100644 (file)
@@ -79,6 +79,11 @@ displaying trailing whitespace:
   " Show tabs, trailing whitespace, and continued lines visually
   set list listchars=tab:»·,trail:·,extends:…
 
+  " highlight overly long lines same as TODOs.
+  set textwidth=80
+  autocmd BufNewFile,BufRead *.c,*.h exec 'match Todo /\%>' . &textwidth . 'v.\+/'
+
+
 =========================
 FAQ & Statement Reference
 =========================