has('win32') returns 1 on the Win64 version of vim?
Hello, has('win32') returns 1 on the Win64 version of vim, and either has('win64'). Is this kind of weird? Thanks. Regards, Hong Xu 2011/2/7 -- 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
Re: has('win32') returns 1 on the Win64 version of vim?
On Mon, Feb 7, 2011 at 1:06 PM, H Xu xusu...@gmail.com wrote: Hello, has('win32') returns 1 on the Win64 version of vim, and either has('win64'). Is this kind of weird? Thanks. I think this is a pretty standard Windows programming convention. For example, in the Windows API docs, it says: *_WIN32* Defined for applications for Win32 and Win64. -- 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
Re: has('win32') returns 1 on the Win64 version of vim?
On 2011/2/7 20:03, Efraim Yawitz wrote: On Mon, Feb 7, 2011 at 1:06 PM, H Xu xusu...@gmail.com mailto:xusu...@gmail.com wrote: Hello, has('win32') returns 1 on the Win64 version of vim, and either has('win64'). Is this kind of weird? Thanks. I think this is a pretty standard Windows programming convention. For example, in the Windows API docs, it says: *_WIN32* Defined for applications for Win32 and Win64. Hello Efraim Yawitz, Oh, I see. Thanks. Regards, Hong Xu 2011/2/7 -- 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
Re: Opening automatically copen
On Feb 6, 2:51 pm, niva nivaem...@gmail.com wrote: Hi, I am using make command and set make-prg with mingw32; I would like that copen automatically open the bottom window with all errors when I launch my link make command. When launching Vim: vim -c make -c copen From within Vim: :make | copen Or you cas use :cwindow instead of :copen if you only want to open the quickfix window when there are errors. -- 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
Re: Typing numbers
On 02/07/2011 04:57 AM, Dotan Cohen wrote: On Wed, Feb 2, 2011 at 05:21, Chris Jonescjns1...@gmail.com wrote: I took a file to the F, J, 4, 8, F4, and F8 keys on the keyboard to help find them faster. Interesting.. But shouldn't it be 4 7 rather than 4 8..? No, it might be personal preference but I like my right index finger on the 8. Furthermore, this keyboard happens to have the 6 on the left-side of the split, so if I were to rest the index finger on the 7 it would be at the edge. Then I painted the whole keyboard black! Like so..? http://www.daskeyboard.com/model-s-ultimate/ Yes, quite like that. That keyboard is where I also got the idea to cut the rubber domes in a staggered fashion so that the pinkies encounter less resistance then the index fingers. Although painting may be a bit extreme, I do recommend filing a notch into the aforementioned keys. Years later and it still saves me precious seconds tens of times per day. If you really want to go wild on the keyboard, you can cut the silicon domes inside to make the keys easier to press. No sure about that.. I usually find keyboards way too soft out of the box.. No! I've yet to find one soft enough! That is the third thing that I do to any new keyboard now (while the paint on the key caps is drying, after filing notches). Keyboard pictures upon request. I for one would be interested. I cc'ed you so that if the list strips attachments, at least you should get it. Some other interesting things on this keyboard are the silicon cushions for the palms, the tiny Enter key (purloined from the Scroll Lock key) so that it won't bind when pressed off-center, the notches filed into the top of the board to find the volume and Cut/Copy/Paste keys (xmodmap), and some channels carved into the plastic to assist in finding some other keys (the slanted one near Delete is obvious in the photo). Of course, the silicon domes inside have all been sliced to reduce the pressure needed to compress them, and the keyboard sits on a reverse tilt. My current mod is to put the Ctrl, Alt, and Shift keys on the floor. I'm using spring-back light switches (like those in stairwells) mounted in a wooden board, but the tricky part is to connect the wires to the inside of the keyboard. There is no place to solder them, so I put a staple through the plastic circuit matrix membrane, use silver paint to connect the staple to the matrix, and then solder the wires to the staple. I've got the Control key working but it's buggy, I want to perfect it before going for Shift and Alt. The rest of the house (and the computers, and the car, and the mobile phone, and even the kids!) suffers from the same mods. There is nothing conventional here! Did you ever try ibm clicky m-model? -rainyday -- 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
Re: jumping to a given file and line from a log file
On 02/07/2011 04:12 PM, Jose Caballero wrote: Hi, my apologies if this question is too silly, or already asked. In that case, you can just point me to the documentation or example, and I will keep investigating myself. I use vim version 6.3.82 on RedHat. Let's say I have a log file with this format datetime | filename:line | message For example ... 07 Feb 16:17:38| module1.py : 344| message1 07 Feb 16:17:39| utils.py : 229| message2 07 Feb 16:17:40| module2.py : 5002 | message ... If I have cursor on one of those lines, I would like to know if there is a way (some script or magic key combination) to open the file it is mentioned, with the cursor directly to that line number. i.e. if I have the cursor on the second line, I would like to open file utils.py and jump directly to line 229 Is it possible? Thanks a lot in advance. Jose -- 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 There's 'gf' command, see :help gf It won't go to line number, though. There's a plugin that does that, I think it may be this one: http://www.vim.org/scripts/script.php?script_id=293 HTH, -ak -- 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
Re: jumping to a given file and line from a log file
2011/2/7 AK andrei@gmail.com On 02/07/2011 04:12 PM, Jose Caballero wrote: Hi, my apologies if this question is too silly, or already asked. In that case, you can just point me to the documentation or example, and I will keep investigating myself. I use vim version 6.3.82 on RedHat. Let's say I have a log file with this format datetime | filename:line | message For example ... 07 Feb 16:17:38| module1.py : 344| message1 07 Feb 16:17:39| utils.py : 229| message2 07 Feb 16:17:40| module2.py : 5002 | message ... If I have cursor on one of those lines, I would like to know if there is a way (some script or magic key combination) to open the file it is mentioned, with the cursor directly to that line number. i.e. if I have the cursor on the second line, I would like to open file utils.py and jump directly to line 229 Is it possible? Thanks a lot in advance. Jose -- 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 There's 'gf' command, see :help gf It won't go to line number, though. There's a plugin that does that, I think it may be this one: http://www.vim.org/scripts/script.php?script_id=293 HTH, -ak Hi ak, thanks a lot. That gf command, which I didn't know, is very useful. Now I knew gf exists I could dig a little more myself, and I have found this http://vim.1045645.n5.nabble.com/Goto-file-under-cursor-with-line-number-td1150643.html which I think is exactly what I was looking for. Jose -- 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
Re: Reflowing paragraph text.
On 02/07/2011 04:42 PM, Thomas Adam wrote: Hi all, I am sure Vim has an option for this, so do please point me towards whichever documentation I need to read. :) Quite often, I have: :set tw=74 Which is common for most text files and especially so when composing email. Vim makes a good job at automatically wrapping my text at 74 characters as I type. However, let's say that I've typed a paragraph, and Vim's wrapped it all at 74 characters. Great. But I then have to insert text somewhere on a line in the middle of the paragraph. As soon as I do that, the indentation for the whole paragraph is broken. I usually do this by immediately pressing: gq} Which will either then reformat the paragraph correctly, or sometimes (and I don't know under what conditions this happens) will proceed to line-wrap more than the paragraph its been asked to. It should work as long as it's a paragraph, i.e. separated by blank lines. However if you have a line with spaces, it won't end current paragraph. Also you can use gqap to format current complete paragraph. To do auto-formatting, see :help fo-table , option 'a', so: :set fo+=a will take care of that. HTH, -rainyday -- 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
Re: Reflowing paragraph text.
Also you can use gqap to format current complete paragraph. Or gqip which I find easier to type as I don't have to use the same finger twice in a row. :-) 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
Re: right align in block
On 8/02/11 2:23 AM, rameo wrote: Let say I have these dates: Variable 1 - 21.185 Variable a - 22.345 Variable 2 - 1.401.218Variable b - 1.821 Variable 3 - apples Variable c - 17.643 Variable 4 - water Variable d - 56.030 Variable 5 - 656.647 Variable e - 65.123 Variable 6 - 92.200 Variable f - 2.000 I would like to select the 2nd column (21.185 to 92.200) and right align all the info in the block I use this to left align the data in a block: :C-U','s/\%V\(\s*\)\(.\{-}\)\%(\%V\@!\\|$\)/\2\1/ Looks like there's an extra \ that shouldn't be there before the |. How do I right align the data in a block? Try :C-U','s/\%V\(.\{-}\)\(\s\{-}\)\%(\%V\@!\|$\)/\2\1/ The non-greedy matches are important so Vim doesn't get 'carried away' and match too much, going outside the visual region and/or including spaces in the part designed to catch primarily 'non-spaces' Ben. I tried to switch the space block with the text block in the code but something doesn't work. -- 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
Re: Reflowing paragraph text.
On 02/07/2011 05:00 PM, Ben Schmidt wrote: Also you can use gqap to format current complete paragraph. Or gqip which I find easier to type as I don't have to use the same finger twice in a row. :-) Ben. Good point! I actually mapped to alt-q right away so I didn't have a chance to figure out what's the best built-in command. :) -rainyday -- 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
Re: right align in block
On Mon, Feb 07, 2011 at 10:23:19AM EST, rameo wrote: Let say I have these dates: Variable 1 - 21.185 Variable a - 22.345 Variable 2 - 1.401.218Variable b - 1.821 Variable 3 - apples Variable c - 17.643 Variable 4 - water Variable d - 56.030 Variable 5 - 656.647 Variable e - 65.123 Variable 6 - 92.200 Variable f - 2.000 I would like to select the 2nd column (21.185 to 92.200) and right align all the info in the block I use this to left align the data in a block: :C-U','s/\%V\(\s*\)\(.\{-}\)\%(\%V\@!\\|$\)/\2\1/ How do I right align the data in a block? I tried to switch the space block with the text block in the code but something doesn't work. ’Some people, when confronted with a problem, think ’’I know, I'll use regular expressions.’’ Now they have two problems.’ -- JMZ Unless you absolutely insist on getting cross-eyed and ‘Mastering Regular Expressions’... like the book sez, you could also try the awk approach: | awk '{printf %-10s %s %s %10s %-10s\n,$1,$2,$3,$4,$5}' .. etc. Untested, but some variation or other, possibly used as a Vim ‘!!’ filter should get you there quicker.. while remaining _legible_. ;-) Not what you asked, but since nobody stepped up to the plate.. cj -- 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
Re: Reflowing paragraph text.
On 2011-02-08 Ben Schmidt mail_ben_schm...@yahoo.com.au wrote: Also you can use gqap to format current complete paragraph. Or gqip which I find easier to type as I don't have to use the same finger twice in a row. :-) One question. If I enter one additional line, and I press gqap or gqip I have two spaces too much in the wrapped text. How to avoid this? Example: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Here a sentence is added into the paragraph. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. After pressing gqap there are two space characters too much, one before and one after the new line input: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Here a sentence is added into the paragraph. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. BTW: setting fo+=a is awesome! Regards Marco -- 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
Re: Reflowing paragraph text.
On 02/07/2011 05:37 PM, Marco wrote: On 2011-02-08 Ben Schmidtmail_ben_schm...@yahoo.com.au wrote: Also you can use gqap to format current complete paragraph. Or gqip which I find easier to type as I don't have to use the same finger twice in a row. :-) One question. If I enter one additional line, and I press gqap or gqip I have two spaces too much in the wrapped text. How to avoid this? Example: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Here a sentence is added into the paragraph. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. After pressing gqap there are two space characters too much, one before and one after the new line input: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Here a sentence is added into the paragraph. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. BTW: setting fo+=a is awesome! Regards Marco see :help 'joinspaces -rainyday -- 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
Re: right align in block
On 2011-02-07 Chris Jones cjns1...@gmail.com wrote: ’Some people, when confronted with a problem, think ’’I know, I'll use regular expressions.’’ Now they have two problems.’ -- JMZ :D Unless you absolutely insist on getting cross-eyed and ‘Mastering Regular Expressions’... like the book sez ^^^ What's that for a book? I googled but cannot find it. Regards Marco -- 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
RE: right align in block
Mastering Regular Expressions (Second Edition), by Jeffrey F. F. Friedl ISBN: 0-596-00289-0 You should check to see if there is a more recent edition. Great book! To: vim_use@googlegroups.com From: net...@lavabit.com Subject: Re: right align in block Date: Mon, 7 Feb 2011 23:41:51 +0100 On 2011-02-07 Chris Jones cjns1...@gmail.com wrote: ’Some people, when confronted with a problem, think ’’I know, I'll use regular expressions.’’ Now they have two problems.’ -- JMZ :D Unless you absolutely insist on getting cross-eyed and ‘Mastering Regular Expressions’... like the book sez ^^^ What's that for a book? I googled but cannot find it. Regards Marco -- 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 -- 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
Re: Reflowing paragraph text.
On Mon, Feb 07, 2011 at 05:00:41PM EST, Ben Schmidt wrote: Also you can use gqap to format current complete paragraph. Or gqip which I find easier to type as I don't have to use the same finger twice in a row. :-) I favor ‘gwap’ because the cursor stays put. And the ‘w’ is easier on my fingers than the ‘q’ anyway. :-) As to the OP, if he is a keypress miser like me.. he might consider living with the mess for a while.. and visually select said mess when it becomes unbearable and ‘gw’. But this requires discipline with one's own stuff, and especially where e-mails are concerned, he could be in for some suprises unless he takes care to clean up quoted material first.. S.. he should use ‘gwap’ like me.. natural as a drum roll.. :-) Could even map it to, say.. a quick ‘ff’ (as in formatformat) if it's really too much trouble: | noremap ff gwap cj -- 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
Re: right align in block
On Feb 8, 4:23 am, rameo rai...@gmail.com wrote: . and right align... Dr Chip's Align plug-in (http://www.vim.org/scripts/script.php? script_id=294) is totally worth learning for jobs like this, even if, like I do, you use it just once a year. Regards, John -- 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
Remove trailing spaces
Hi , I wrote a function , it will read lines from a file, each line is a directory, after got the line, I will add filetype filter at the end of it. If user put some spaces at end of the line, it will cause error. Is there any way to remove the trailing spaces? I know I can write a function to do this, but is there a function I can call ? Following is my funtion: function s:Searchwordglzx(filetype) let searchstring = expand(cword) let searchdir = '' for line in readfile(sdir.txt,'',6) let searchdir .= fnameescape(line).'*.[csh] ' let searchdir .= fnameescape(line).a:filetype.' ' endfor if searchstring != execute vimgrep searchstring searchdir endif endfunction Sincerely, Michael -- 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
Re: Remove trailing spaces
2011/2/8 Michael(Xi Zhang) michaelxm...@gmail.com: Hi , I wrote a function , it will read lines from a file, each line is a directory, after got the line, I will add filetype filter at the end of it. If user put some spaces at end of the line, it will cause error. Is there any way to remove the trailing spaces? Something like this? :%s/\s\+$// Cheers -- Joan Miquel Torres__ Linux Registered User #164872 http://www.mallorcaweb.net/joanmiquel BULMA: http://bulma.net http://breu.bulma.net/?l2301 -- 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
Re: right align in block
On Mon, Feb 07, 2011 at 05:50:16PM EST, Roy Fulbright wrote: Mastering Regular Expressions (Second Edition), by Jeffrey F. F. Friedl ISBN: 0-596-00289-0 You should check to see if there is a more recent edition. Great book! As much as I dislike regex's.. I fully agree.. Which does not absolve your top-posting.. btw.. goes AGAINST THE LIST'S POLICY, you know.. :-) And incidentally, caused me write this reply twice, because I couldn't see your contribution the first time around. Thought I was replying to the wrong message.. and mutt being mutt.. well.. I had to hit :q! to go take a closer look. [..] ’Some people, when confronted with a problem, think ’’I know, I'll use regular expressions.’’ Now they have two problems.’ -- JMZ :D Unless you absolutely insist on getting cross-eyed and ‘Mastering Regular Expressions’... like the book sez ^^^ What's that for a book? I googled but cannot find it. Are you being facetious, huh..? OK, sorry.. _I_ was being facetious.. cj -- 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
Re: Remove trailing spaces
On Mon, Feb 7, 2011 at 4:20 PM, Joan Miquel Torres Rigo joanmiq...@mallorcaweb.net wrote: 2011/2/8 Michael(Xi Zhang) michaelxm...@gmail.com: Hi , I wrote a function , it will read lines from a file, each line is a directory, after got the line, I will add filetype filter at the end of it. If user put some spaces at end of the line, it will cause error. Is there any way to remove the trailing spaces? Something like this? :%s/\s\+$// Cheers http://www.vim.org/maillist.php Thanks! If I open the file with VIM, then I can type this command. It can work. Now every time I press a mapped key in VIM, my function will read lines from a file(each line is a directory), if there are spaces at end of line, it will cause problem in the next step. What I want is remove these spaces in this function, even user put spaces at end of line. -- 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
Re: Typing numbers
On Mon, Feb 07, 2011 at 05:08:36AM EST, Dotan Cohen wrote: Here's a closeup photo of the cutting of the silicon domes. Hello Dotan, Thanks much for this pic and the other. Till I saw it I honestly had no clue what you meant.. I thought there was something like a rubber nipple in there and you were shaving off part of the top of said nipple.. :-) In any case, I appreciate your Cc:'ing me to make sure I at least would get to see the pics.. very interesting. As to you folks not being the conventional type.. down to the kids and the entire household, etc.. quite refreshing.. it is depressing at times to spend many hours on IT mailing lists, read millions of posts and not one thinks outside the box.. Thanks again for your time. cj -- 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
Batched digest
Hey list, Is there a way to get the Vim use mail in a batched digest? The single emails are clogging my inbox. Thanks, Colin -- 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
Re: Batched digest
On 08/02/11 01:14, Colin Beighley wrote: Hey list, Is there a way to get the Vim use mail in a batched digest? The single emails are clogging my inbox. Thanks, Colin -- 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 Make sure you are logged in to Google (for instance to your @gmail.com account) then browse to http://groups.google.com/groups/mysubs?pli=1 In the rightmost column, on the line for the vim_use group, open the drop-down widget and select either Digest Email or Abridged Email. Then click Save group settings at the bottom. Best regards, Tony. -- hundred-and-one symptoms of being an internet addict: 18. Your wife drapes a blond wig over your monitor to remind you of what she looks like. -- 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
RE: right align in block
Date: Mon, 7 Feb 2011 18:29:42 -0500 From: cjns1...@gmail.com Subject: Re: right align in block To: vim_use@googlegroups.com On Mon, Feb 07, 2011 at 05:50:16PM EST, Roy Fulbright wrote: Mastering Regular Expressions (Second Edition), by Jeffrey F. F. Friedl ISBN: 0-596-00289-0 You should check to see if there is a more recent edition. Great book! As much as I dislike regex's.. I fully agree.. Which does not absolve your top-posting.. btw.. goes AGAINST THE LIST'S POLICY, you know.. :-) And incidentally, caused me write this reply twice, because I couldn't see your contribution the first time around. Thought I was replying to the wrong message.. and mutt being mutt.. well.. I had to hit :q! to go take a closer look. [..] ’Some people, when confronted with a problem, think ’’I know, I'll use regular expressions.’’ Now they have two problems.’ -- JMZ :D Unless you absolutely insist on getting cross-eyed and ‘Mastering Regular Expressions’... like the book sez ^^^ What's that for a book? I googled but cannot find it. Are you being facetious, huh..? OK, sorry.. _I_ was being facetious.. cj -- 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 Sorry about the top post. It's my email's default and it's so easy to forget. I will be more diligent in the future. :-( -- 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
Re: right align in block
On Mon, Feb 07, 2011 at 09:27:06PM EST, Roy Fulbright wrote: [..] Sorry about the top post. It's my email's default and it's so easy to forget. I will be more diligent in the future. :-( Doesn't bother me all that much.. sometimes I forget to top-post when in a different context.. where emails with quoted material can become rather lengthy.. and then I folks complaint they got an ‘empty’ reply from me As they say, when in Rome.. cj -- 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
Re: Remove trailing spaces
Something like this? :%s/\s\+$// What I want is remove these spaces in this function, even user put spaces at end of line. Where are these lines? A single line in a string variable? Multiple lines in a string variable? List variable? ... ? At a quick guess, maybe something like this is closer to what you want. :echo substitute(your text here ,'\s\+$','','') 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
Re: Remove trailing spaces
On Mon, Feb 7, 2011 at 8:32 PM, Ben Schmidt mail_ben_schm...@yahoo.com.auwrote: Something like this? :%s/\s\+$// What I want is remove these spaces in this function, even user put spaces at end of line. Where are these lines? A single line in a string variable? Multiple lines in a string variable? List variable? ... ? At a quick guess, maybe something like this is closer to what you want. :echo substitute(your text here ,'\s\+$','','') Ben. Thanks! This is exactly what I want. -- 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
Re: Batched digest
On 02/08/11 11:14, Colin Beighley wrote: Hey list, Is there a way to get the Vim use mail in a batched digest? The single emails are clogging my inbox. Thanks, Colin -- 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 Hi, you can go into Google groups settings and choose to have it delivered in a batch OR you could set up a mail filter or procmail recipe to send all vim_use mail to a folder named, say, Vim Regards, Steve Laurie -- 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