Closed ashwin closed 11 years ago
Ah there is, but it's recent.
j Where it makes sense, remove a comment leader when joining lines. For
example, joining:
int i; // the index
// in the list
Becomes:
int i; // the index in the list
Perhaps it would be better to add this flag separately with :silent! setlocal
?
@dag I didn't realize there was a newer version of Vim. I'm using Vim 7.3 on Ubuntu 12.04 LTS.
Yes, it might be better to add this flag separately. I suspect that a large base of your addon users will still be on Vim 7.3 :)
Also, thanks for writing this addon :+1:
7.3 is the latest major version but Vim has a weird versioning scheme where the version is the major version plus the individual numbered patches included. For me that is 1-415, 417-944
. You probably have a build that lacks the particular patch number for the j
flag.
@dag I learn something new everyday. Thanks :)
There is no formatoption named "j" in Vim.