I'm using vim 7.1.  I'm editing a Javascript program (*.js), which 
allows C++ style on-line comments: //

I want to have these comments auto-formatted -- put auto wrap at wm=, 
then start the next line with //.

I have read the help documentation and tried setting formatoptions, 
comment, and commentstring, but so far without success.

And yes, I've looked at the FAQ and the message archive.  Any help would 
be appreciated.  Oh, just in case my .exrc file is causing trouble, here 
it is:
set autoindent
set nohls
syntax off
set wm=5
set nobk
set ws
set ic
set ts=8
set sw=4
map ^V^N :n^V^M         That is, ctrl-N = :n
map ^V^W :w^V^M^V^N     That is, ctrl-W = :w + :n
:map ^K :w^V^M:e #^V^M  That is, ctrl-K = :w + :e #
map v k$hjl
map q F r
map g f r
map = 3k$h3jl


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to