vim fans might want to apply this:
<IRCBridge> [IRC:ashwin] (btw, just as an observation: the vim formatting modeline in many files has 'filetype:c++' when it really should be 'filetype:cpp') <bryce> ah, well feel free to patch that <IRCBridge> [IRC:ashwin] a simple 'perl -pi -e 's/filetype:c++/filetype:cpp' *.cpp *.h should do it
On Fri, Jan 21, 2005 at 10:06:08PM -0800, Bryce Harrington wrote:
vim fans might want to apply this:
<IRCBridge> [IRC:ashwin] (btw, just as an observation: the vim formatting modeline in many files has 'filetype:c++' when it really should be 'filetype:cpp') <bryce> ah, well feel free to patch that <IRCBridge> [IRC:ashwin] a simple 'perl -pi -e 's/filetype:c++/filetype:cpp' *.cpp *.h should do it
I've been complaining about this for a looong time. :) I support it. :)
Odd. This doesn't seem to affect Nedit at all! ^^
Bob
Kees Cook wrote:
On Fri, Jan 21, 2005 at 10:06:08PM -0800, Bryce Harrington wrote:
vim fans might want to apply this:
<IRCBridge> [IRC:ashwin] (btw, just as an observation: the vim formatting modeline in many files has 'filetype:c++' when it really should be 'filetype:cpp') <bryce> ah, well feel free to patch that <IRCBridge> [IRC:ashwin] a simple 'perl -pi -e 's/filetype:c++/filetype:cpp' *.cpp *.h should do it
The suggested modeline stuff is as follows:
/* Local Variables: mode:c++ c-file-style:"stroustrup" c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +)) indent-tabs-mode:nil fill-column:99 End: */ // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :
(where `vim:' should be on the last line of the file, for people using set modelines=1 in their ~/.vimrc).
This is the version I've been using for at least the last 5 months; though I haven't changed existing files except when I notice a problem.
pjrm.
participants (4)
-
Bob Jamison
-
Bryce Harrington
-
Kees Cook
-
Peter Moulder