summaryrefslogtreecommitdiff
path: root/README.Coding
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2007-09-27 19:20:37 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:31:01 -0500
commit95b7404836a723334d703825ab6f605ab38efe82 (patch)
tree261e752a390e833986131d3d895fd5359e5918f1 /README.Coding
parente9922cd8aeb70aebb162ad598fda76ad69226b94 (diff)
downloadsamba-95b7404836a723334d703825ab6f605ab38efe82.tar.gz
r25378: Add a vim configuration example to highlight overly long lines.
Diffstat (limited to 'README.Coding')
-rw-r--r--README.Coding5
1 files changed, 5 insertions, 0 deletions
diff --git a/README.Coding b/README.Coding
index da6bb382078..fd52dbe890d 100644
--- a/README.Coding
+++ b/README.Coding
@@ -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
=========================