Sunday, July 24, 2011

Re: detecting first and last line of the current paragraph

> 1.- to protect it from crashing when I use vim 6.x
> I guess there has to be something similar to the python sys.version or
> sys.version_info variables.

:help v:version
:help has()
:help exists()

> 2.- to detect the filetype, so I don't hardcode the default to '#' but to the one
> for that filetype in particular instead.

You should be able to use &filetype as long as filetype detection is
turned on for Vim itself.

:help expr-option

Ben.

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: