Please explain HOW this works. g/\S/,/^\s*$/j I see it joins all lines by paragraph. g/\S/ find all lines that contain non-whitespace , ??? what does this do? ...
131987
Taylor Hedberg
tmhedberg@...
Jun 29, 2012 5:57 pm
... `,/^\s*$/j` is a command that will be executed on each line that matches the /\S/ pattern (that's how the :g command works: :g/pattern/command). So it will...
131988
Gary Johnson
garyjohn@...
Jun 29, 2012 6:04 pm
... The comma (,) is a range separator. See ... /\S/,/^92;s*$/ specifies the range of lines from the first one containing a non-whitespace character through the...
131989
Bee
beeyawned@...
Jun 29, 2012 6:09 pm
... Thank you. My confusion, I was thinking the 'j' was the 'normal39; version for line down and was expecting the 'normal J' for join. Now I understand it is ...
131990
Tim Chase
vim@...
Jun 29, 2012 8:34 pm
... Are you sure you don't need a "normal" in there? g/^.\{80,}$/norm gqq -tim -- You received this message from the "vim_use" maillist. Do not top-post! Type...
131991
howard Schwartz
howardb21@...
Jun 29, 2012 9:27 pm
Yes, I often seem to make simple mistakes when typing to the vim group. The command should be: g/^.\{80,}$/normal gqgq I discovered the problem. The text I run...
131992
Tim Chase
vim@...
Jun 29, 2012 11:52 pm
... I should have double-checked (I changed domain registrars and my domain was messed up for the last 24hr or so. Ditched GoDaddy to 1&1, but unhappy with...
131993
John Little
John.B.Little@...
Jun 30, 2012 1:14 am
... Thanks for that. Checking, I've got checkwinsize set, which is not the bash default; it's been set in /etc/bash.bashrc, which looks like one of those...
131994
Dave
david.t.kerns@...
Jun 30, 2012 5:01 am
Wow, I've wanted this for a long time... I copied your script, and called it ccat, but get this (hope the attachment works) -- You received this message from...
131995
Eric Weir
eeweir@...
Jun 30, 2012 10:39 am
... I haven't a clue. None of the suggestions above ring a bell. I don't think vim has ever crashed for me, I always write my files before quitting vim, etc.,...
131996
Eric Weir
eeweir@...
Jun 30, 2012 10:46 am
... One thing I haven't mentioned: I start MacVim with QuickSilver. I type <ctrl> <space> to bring up qs, then mv to get the MacVim icon displayed, then hit...
131997
Peng Yu
pengyu.ut@...
Jun 30, 2012 12:08 pm
... How it works? In my previous email, I showed that I couldn't get it work. Would you please show me which command you copied and what is the command line?...
131998
Tony Mechelynck
antoine.mechelynck@...
Jun 30, 2012 12:27 pm
... Yes, and one of the reasons Bram doesn't feel the need to compile Vim executables very often is that Steve Hall very regularly updates his "Vim without...
131999
Tony Mechelynck
antoine.mechelynck@...
Jun 30, 2012 1:09 pm
... When I was still on Windows, I used to have some Cygwin packages installed, but the Python I used (and compiled Vim with, using the make_cyg.mak and the...
132000
Tony Mechelynck
antoine.mechelynck@...
Jun 30, 2012 1:31 pm
... Yes, the command to be executed on each match of the :g command is always an ex-command (the kind you would use after typing a colon, or on any line of a...
132001
Tony Mechelynck
antoine.mechelynck@...
Jun 30, 2012 1:40 pm
... Aha. And what do you do when no fish bites on the kind of fishline you taught him to use? Best regards, Tony. -- Good day to let down old friends who need...
132002
Tony Mechelynck
antoine.mechelynck@...
Jun 30, 2012 1:44 pm
... P.S. I was also trying to "teach him to fish", namely, by paying attention to what he's been told. Let's hope he will, in the future. Best regards, Tony. ...
132003
Tim Gray
tgray@...
Jun 30, 2012 1:53 pm
... You really shouldn't have to manually delete swap files if you are saving and closing your files properly. Something is amiss. You should ask the list...
132004
Eric Weir
eeweir@...
Jun 30, 2012 5:18 pm
... I can produce the symptoms---multiple instances of vim, persisting swap files. I can do it reliably. Write all my files. Then quit vim without closing the...
132005
Peng Yu
pengyu.ut@...
Jun 30, 2012 9:13 pm
Hi, I just want to run some vim script and print output to stdout and exit. The following will print something at the bottom of the screen without exiting vim....
132006
ping
songpingemail@...
Jun 30, 2012 9:32 pm
Thanks I just got it recompiled under cygwin with python support At least Voom that is based on python runs smoothly now I can post detailed steps if anyone is...
132007
Tony Mechelynck
antoine.mechelynck@...
Jun 30, 2012 10:04 pm
... [...] Maybe you should create a tip at http://vim.wikia.com/ ? Best regards, Tony. -- There is a Massachusetts law requiring all dogs to have their hind...
132008
Gerardo Marset
gammer1994@...
Jul 1, 2012 12:31 am
I have sofftabstop (and shiftwidth) set to 4, and expandtab enabled. Thus, when deleting groups of spaces, vim treats them as tabs and deletes them 4 at a...
132009
Ben Fritz
fritzophrenic@...
Jul 1, 2012 3:21 am
... You can make Vim quit after running the script like this: vim -c "source main.vim" -c "q" Or even better: vim -S main.vim -c "q" But I don't know of any...
132010
Tony Mechelynck
antoine.mechelynck@...
Jul 1, 2012 4:07 am
... When started with the -es switches in that order (see :help -s-ex), some messages will be printed on stdout, but only from a _very limited_ set of...
132011
ping
songpingemail@...
Jul 1, 2012 4:55 am
Hi guys/experts: sorry for wide-expend, but I can't figure out a solution for this... below is the response to my original issue I got from author of Utl...
132012
Jan Larres
lists@...
Jul 1, 2012 4:58 am
... From looking at the commit logs it seems that rather an '&' is what was originally used for substituting in the current value, and then got replaced by...
132013
Alick Zhao
alick9188@...
Jul 1, 2012 5:10 am
... Did you check the content of ./v? Is it the same with the online version? Did you chmod the script to add the execution bit? I just tried the latest...
132014
ping
songpingemail@...
Jul 1, 2012 5:11 am
... sure I'll seriously do it later.. but currently, I'm still testing it -- trying to move all my linux-based works (whole .vim including all plugins!) on...
132015
John Beckett
johnb.beckett@...
Jul 1, 2012 11:34 am
... I'm not sure exactly what the issue is, but are you aware that in insert mode you can press Ctrl-D to unindent the current line (remove one level of...