I was trying to mimic the following Pentadactyl's configuration:
map c :prefix-
command -nargs=* prefix-y tabopen http://m.youtube.com/results?q=<args>
Which allows the following procedure:
press c (results in command bar appearing with the content :prefix- and text cursor positioned after the last character, i.e. -)
press y (results in y being added after the dash, i.e. the full command bar content is :prefix-y)
press <Space> (results in `being added aftery, i.e. the full command bar content is:prefix-y `)
type my favourite video (the full command bar content is :prefix-y my favourite video)
press <CR> (results in all the arguments my favorite video being encoded according to URI, i.e. to my%20favourite%20video and then <args> from http://m.youtube.com/results?q=<args> being replaced with the encoded string my%20favourite%20video and first then the whole resulting command tabopen http://m.youtube.com/results?q=my%20favourite%20video is executed)
In cVim the command :command does not support any arguments, so I'm proposing adding e.g. the above-mentioned argument -nargs.
I was trying to mimic the following Pentadactyl's configuration:
Which allows the following procedure:
c
(results in command bar appearing with the content:prefix-
and text cursor positioned after the last character, i.e.-
)y
(results iny
being added after the dash, i.e. the full command bar content is:prefix-y
)<Space>
(results in`being added after
y, i.e. the full command bar content is
:prefix-y `)my favourite video
(the full command bar content is:prefix-y my favourite video
)<CR>
(results in all the argumentsmy favorite video
being encoded according to URI, i.e. tomy%20favourite%20video
and then<args>
fromhttp://m.youtube.com/results?q=<args>
being replaced with the encoded stringmy%20favourite%20video
and first then the whole resulting commandtabopen http://m.youtube.com/results?q=my%20favourite%20video
is executed)In cVim the command
:command
does not support any arguments, so I'm proposing adding e.g. the above-mentioned argument-nargs
.