Vim Tips Wiki
(note about file patterns)
 
(Change <tt> to <code>, perhaps also minor tweak.)
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
  +
{{ScriptComments|preamble: automatically fold long licensing and copyright preambles}}
Maybe I'm doing something wrong, but I had to put something more like
 
   
  +
==Comments==
call Preamble#Enable("*.c,*.cpp,*.h")
 
 
Maybe I'm doing something wrong, but I had to put something more like
  +
<pre>
 
call Preamble#Enable("*.c,*.cpp,*.h")
  +
</pre>
 
in my .vimrc to make this script work.
   
  +
Also version 0.1 has a bug in line 174 - the double quotes in "\S" should be single quotes '\S'. This bug causes files without comment headers to incorrectly get folded up to the first comment.
in my .vimrc to make this script work. After that it seems great though, thanks!
 

Revision as of 09:48, 14 July 2012

Use this page to discuss script 2919 preamble: automatically fold long licensing and copyright preambles

  • Add constructive comments, bug reports, or discuss improvements (see the guideline).
  • Do not document the script here (the author should do that on vim.org).
  • This page may be out of date: check the script's vim.org page above, and its release notes.

Comments

Maybe I'm doing something wrong, but I had to put something more like

call Preamble#Enable("*.c,*.cpp,*.h")

in my .vimrc to make this script work.

Also version 0.1 has a bug in line 174 - the double quotes in "\S" should be single quotes '\S'. This bug causes files without comment headers to incorrectly get folded up to the first comment.