On Nov 11, 11:08 am, jason.桂林 <[email protected]> wrote:
> 1. not works if insert ( [ { in the center of a line, only works at the end
> of the line,
Not sure, I don't have time to mess with it at the moment.
> 2. Can I use inoremap in function too? I want add this in function
> inoremap <expr> ) strpart(getline('.'), col('.')-1, 1) == ")" ?
> "\<Right>" : ")"
>
Certainly. Functions can use any commands which go in your .vimrc or
which you can enter from the command-line within Vim, a.k.a. "ex
commands".
> 3, how can I get some API of strpart, get line, col, all of this internal
> functions?
:help functionname()
> 4, Where I can get the syntax of vim script, like string operation, ! #
> symbols means
>
Try :help !, :help #, etc. But more likely this won't give you quite
what you want, so you have two other ways to find what you need in
the :help (it is in there):
1. Type :help {whatever you're interested in} but don't press enter,
instead press CTRL-D to see a list of all topics containing the text
you are interested in.
2. :helpgrep {pattern you want to find anywhere in the help}
--
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