#vim - Thu 5 Apr 2007 between 16:57 and 17:25

NY Lost Funds



ttzSorry, I'm really a newbie on vim :-( : E492: Not an editor command: gq
aaahhhhh
Not ":gq", but simply "gq"
angrymgplus a movement
actionangrymg likes to select a visual block and then use gq on it
angrymglikes to select a visual block and then use gq on it
gavagaithis would rewrap the whole thing: gggqG
chovythank you.
JuerdHi, I'm trying to define a cmd that executes two other commands
But everything after the | seems to be ignored.
Is this not the right way to do this?
cmd Rwq :R | :wq
angrymgyou may have to quote the |
I'd go and read the help if I were you
JuerdI'm lost in the help :)
angrymg(and I'd try to look for examples first, since I'm lazy)
jamessanshouldn't have to. command recognizes the |
Juerd: you have a user-defined command named R?
Juerdjamessan: Yes
jamessanJuerd: and it's "command Rwq ..." not cmd
JuerdAnd since :R is typically the last thing I do before :wq, I'd like to combine them
:com[mand] *:com* *:command*
Right, com. I have com in my config file :)
Is it okay if com R %s/rt\(-[a-z0-9]\+\)\(@convolution.nl\)/rt\1-resolve\2/
com Rwq :R | :wq
Ehh... "Is it okay if" isn't part of the paste.
Or, well, it shouldn't be :)
jamessanJuerd: if you do it all the time (or for a specific filetype), I'd add a BufWrite autocmd that does it for you
JuerdI don't do it all the time
I use this when replying to email. :R updates the To: mail address, so that the ticket will be resolved
somianAhh, a Juerd is present!
JuerdThat shouldn't happen always :)
Hi somian
jamessanJuerd: hence my "(or for a specific filetype)"
somianHi to you Juerd :)
Juerdjamessan: It can't be determined by the filetype :)
jamessanft=mail
JuerdYes, but it should happen only when I decide that the ticket should be resolved
jamessanah
JuerdFor example, I may have to ask for additional information. The ticket should then remain open.
But the request for info is also ft=mail :)

Page: 5 12 

IrcArchive

NY Lost Funds