r25378: Add a vim configuration example to highlight overly long lines.
authorMichael Adam <obnox@samba.org>
Thu, 27 Sep 2007 19:20:37 +0000 (19:20 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:31:01 +0000 (12:31 -0500)
(This used to be commit 95b7404836a723334d703825ab6f605ab38efe82)

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
 =========================