summaryrefslogtreecommitdiffstats
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
commita4137c3555562b7a2ad558ed3849b1dfa10cb845 (patch)
tree3ac472de6a945b58275e498f5a0f47948f5ae206 /README.Coding
parent4d7a1c3bcfca8261d30ad902444eda31a6b0e2b6 (diff)
downloadsamba-a4137c3555562b7a2ad558ed3849b1dfa10cb845.tar.gz
samba-a4137c3555562b7a2ad558ed3849b1dfa10cb845.tar.xz
samba-a4137c3555562b7a2ad558ed3849b1dfa10cb845.zip
r25378: Add a vim configuration example to highlight overly long lines.
(This used to be commit 95b7404836a723334d703825ab6f605ab38efe82)
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 da6bb38207..fd52dbe890 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
=========================