git.samba.org
/
tprouty
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d7a1c3
)
r25378: Add a vim configuration example to highlight overly long lines.
author
Michael Adam
<obnox@samba.org>
Thu, 27 Sep 2007 19:20:37 +0000
(19:20 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 17:31:01 +0000
(12:31 -0500)
(This used to be commit
95b7404836a723334d703825ab6f605ab38efe82
)
README.Coding
patch
|
blob
|
history
diff --git
a/README.Coding
b/README.Coding
index da6bb382078bfa4c49f13579797b60382102fb79..fd52dbe890d6b870b7bcfa77b528224debc762f2 100644
(file)
--- 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
=========================