Re: Remapping - how to get the count

2006-07-09 Thread Yakov Lerner
On 7/8/06, Andy Wokula <[EMAIL PROTECTED]> wrote: I want to remap Ctrl-A (normal mode) to do something similar with other data, e.g. :nmap ciw=IncRoman(@-) Now if a count is provided this will mess up the text, e.g. 10 does 10ciw... What is a good way to catch the count and make it available

Re: register problem

2006-07-09 Thread Yakov Lerner
On 7/8/06, Matthias-Christian Ott <[EMAIL PROTECTED]> wrote: Hi, if I e.g. replace a selection via s and want to split the removed text into lines (split (@", '\n'), I get all lines multiplied with the line count (e.g. I select 3 lines, I get these 3 lines 3 times). How can I avoid this behaviour

Re: Troubles with cursor()

2006-07-09 Thread Bram Moolenaar
Peter Hodge wrote: > According to the help file, the function 'cursor()' should accept 2 or 3 > arguments, or a list with 2 or 3 items. However, when I execute this command: > > :call cursor([5, 5]) > > It does *not* move the cursor, even though the equivalent: > > :call cursor(5, 5) > >

Re: Summarising all TODO / FIXMEs

2006-07-09 Thread Preben Randhol
On Sun, 9 Jul 2006 00:11:26 +0200 Michael Naumann <[EMAIL PROTECTED]> wrote: > Hi > > sounds like a good job for :grep for me. > After > :grep FIXME * > use > :copen > to browse the results. Brilliant! Thanks!

Re: substitute word

2006-07-09 Thread Matthias-Christian Ott
Tim Chase wrote: Alternatively, rather than saving your whitespace and then restoring it, you can use :s/\/new_word/g But you need to know the word you want to substitute, if I set it to and appears more than once in the line, multiple words will get replaced. -- Matthias-Christian Ot

Re: register problem

2006-07-09 Thread Matthias-Christian Ott
Yakov Lerner wrote: There is just not enough information in your question. Please provide small but complete example with all details, including: - which maps and functions are used & defined - what user typed - what was in the file Ok, here's the plugin: if exists ('format_declaration_plugin'

Re: register problem

2006-07-09 Thread Yakov Lerner
On 7/9/06, Matthias-Christian Ott <[EMAIL PROTECTED]> wrote: Yakov Lerner wrote: > There is just not enough information in your question. > > Please provide small but complete > example with all details, including: > - which maps and functions are used & defined > - what user typed > - what was i

Re: register problem

2006-07-09 Thread Matthias-Christian Ott
Yakov Lerner wrote: This is wrong. You want "\n", not '\n'. Ok, but the problem still exists. -- Matthias-Christian Ott

Re: register problem

2006-07-09 Thread Yakov Lerner
On 7/9/06, Matthias-Christian Ott <[EMAIL PROTECTED]> wrote: Yakov Lerner wrote: > This is wrong. > You want "\n", not '\n'. Ok, but the problem still exists. vnoremap :call FormatDeclarationSelection () function FormatDeclarationSelection () execute ":silent! normal gvs" le

Re: substitute word

2006-07-09 Thread Tim Chase
:s/\/new_word/g But you need to know the word you want to substitute, if I set it to and appears more than once in the line, multiple words will get replaced. Well, there are several scenarios, each of which vim can handle with aplomb. If you know the word, but aren't over it, you'll

Accute accent problem

2006-07-09 Thread Eric Guindon
Hi all, I am trying to use vim to edit French text. However, vim won't display the accute accent-e (é). It does, however, display every other accented letter without problem. It even displays the upper-case accute-e (É). I've tried several different keyboad configurations (French Canadian 'legacy

Re: Accute accent problem

2006-07-09 Thread Yakov Lerner
On 7/10/06, Eric Guindon <[EMAIL PROTECTED]> wrote: I am trying to use vim to edit French text. However, vim won't display the accute accent-e (é). It does, however, display every other accented letter without problem. It even displays the upper-case accute-e (É). I've tried several different key

Re: Accute accent problem

2006-07-09 Thread Yakov Lerner
On 7/10/06, Yakov Lerner <[EMAIL PROTECTED]> wrote: You might see something like ^[ee (that's 3 characters: escape i e). Your sequence will be different, but let's assume it is ^[ee Correction. I wanted to write here: You might see something like ^[[e (that's 3 characters: escape [ e). Your se

Vim problems on Centos-4

2006-07-09 Thread dave--uk
I used to use RH9 and was VERY happy with three features of vim (6.1.320) 1) almost everything was syntax highlighted, including, for example, httpd.conf. 2) when i edited a file, vim remembered the last position I was at 3) the help worked Having moved to Centos-4 (RHEL) (vim 6.3.046) none of th

Re: Accute accent problem

2006-07-09 Thread Eric Guindon
Yakov, Thanks for your reply. I probably should have checked the archives before posting, and I will do that tonight. I did try your suggestion, thought, and things are pretty odd, so I thought I would post again. Turns out that when I type ctl-v + my 'é'-key I get 'é' itself; but I don't if I j

Re: Vim problems on Centos-4

2006-07-09 Thread Yakov Lerner
On 7/10/06, dave--uk <[EMAIL PROTECTED]> wrote: I used to use RH9 and was VERY happy with three features of vim (6.1.320) 1) almost everything was syntax highlighted, including, for example, httpd.conf. 2) when i edited a file, vim remembered the last position I was at 3) the help worked Having

Antialiased font and encoding on Mac OS X

2006-07-09 Thread Wojciech Grzemski
Hello all, I'm trying to get nice antialiased font on carbonized version of Vim and I've run ito some problems. if my .gvimrc contains: if exsits(&macatsui) set nomacatsui endif I get very nice antialiased font (Monaco) but cannot see properly (nor write)

question on "guitablabel"

2006-07-09 Thread SHANKAR R-R66203
Hi When I execute the command, :set guitablabel=xyz All the tabpages get the same name. How do I set a separate string as a name for each tab label. I want to set it manually. Regards, Shankar