Re: highlight the cursorline
On Tuesday 11 July 2006 23:26, Raphael Brunner wrote: Dear Users, is there a possibility to highlight the whole line where the cursor is? the idea is, I could better see the whole line in a special file. Thanks for all your help. Raphael If you have vim7 you can try :set cul HTH, Michael
Re: s?
On Friday 30 June 2006 15:16, Wim R. Crols wrote: Peter Slizik wrote: Not really a request for help, but I was wondering if you guys ever use the 's' command. It's just a shortcut for 'cl', which I almost never need. Since I don't assume it was put in to be complete or something, I'm intrigued by it's enigmatic purpose. :) Well, I use it when I want to replace a word that is for example 4 letters long. abcd efgh ijkl Suppose I want to replace efgh with something else. I place the cursor at the beginning of the word and type '4s'. The word disappears and ViM switches to the insert mode. -- Peter Yes, I figured out that use, but isn't 'cw' always easier since you don't have to count? And when you need to only replace part, like replacing abcd in abcdef, then I'd rather use 'cfd'. Just my 2c of course. Wim cfd may be quite different from 4s in this example, esp. if you intend to repeat the replacement on other places with .. - Michael
Re: How to replace CR with LF
Yes there is, strange as it may seem: s/\r/\r/ does it HTH, Michael On Monday 26 June 2006 23:20, Steve Baldwin wrote: Thanks all. That worked very nicely. I'm curious though - is there any way to substitute CR with LF using regexp's? Thanks, Steve -Original Message- From: Bill McCarthy Sent: Tuesday, 27 June 2006 6:54 AM To: Steve Baldwin Cc: Vim List Subject: Re: How to replace CR with LF On Mon 26-Jun-06 3:06pm -0600, Steve Baldwin wrote: I have a file containing carriage returns and I want to replace them with line feeds. Note it is not CR-LF - LF, but just CR - LF. Can someone please enlighten me as to how to do this. If you don't have mac format in your 'ffs', first add it before loading your mac file: :se ffs+=mac After loading your mac file: :se ff=unix -- Best regards, Bill
Re: highlighting tabbed text
On Monday 01 May 2006 07:04, Gerald Lai wrote: On Mon, 1 May 2006, Michael Naumann wrote: Is there a way to highlight a sequence of non-tabs followed by a sequence of tabs (/^[^\t]\+\t\+/) differently from the next such sequence? For example in the line a\tb\t\tc\td I want a\t to be color1, b\t\t to be color2 and c\t to be color3 (or probably color1 again) Is this even possible? You could check out Mark.vim http://www.vim.org/scripts/script.php?script_id=1238 HTH. -- Gerald Nice script, indeed. Still I do not see how it can help me with my problem. Michael