Re: swapping tab and escape

2006-04-27 Thread Robert Cussons
Hi All, Matt kindly suggested this mapping for the above inoremap m-i tab nnoremap tab esc vnoremap tab escgV inoremap tab esc`^ but how would I add a mapping to make tab work as escape in the command line, also is there any loss of functionality making this mapping, I don't use tab in the

Re: Shell support in Vim?

2006-05-11 Thread Robert Cussons
Suresh Govindachar wrote: Frank Terbeck wrote: Suresh Govindachar Personally, the step mentioned below, viz., moving the mouse to the xterm is a _big_ pain. As a user, what I like about the idea of a shell inside vim is the means to avoid the mouse. C-Z in console vim does

Re: Vertical selection

2006-05-19 Thread Robert Cussons
-- Robert Cussons Office SB3 3.163, Theory Group Gesellschaft für Schwerionenforschung mbH (GSI) Planckstraße 1 64291 Darmstadt Germany. Tel: +49 (0)6159 71 2754 E-mail: [EMAIL PROTECTED]

Re: Vertical selection

2006-05-19 Thread Robert Cussons
immediately after the selected block and as Benji said, pressing '$' followed by 'A' whilst in blockwise visual mode will insert at the end of each line. Sorry if no-one else cares:-) Benji Fisher wrote: On Fri, May 19, 2006 at 10:34:27AM +0200, Robert Cussons wrote: Hi guys, I knew about

a question about subsitution....

2006-07-10 Thread Robert Cussons
Hi everyone, I have a point of interest question about a substitution I was trying to make. At some points in my code I had a variable that was a pointer that was denoted (in C) by: *iterNum I wanted to replace instances of exactly this string globally between my present position and line

Re: a question about subsitution....

2006-07-12 Thread Robert Cussons
Thanks Max and Chip, I didn't realis that \ and \ were used to denote the beginning and end of the word and therefore they could be used separately, I always just thought of them as a way of getting an exact match, which I suppose is almost the same thing, however, I still don't understand why

Re: a question about subsitution....

2006-07-13 Thread Robert Cussons
Thanks Yakov, that was the explanation I wanted. Rob. Yakov Lerner wrote: On 7/12/06, Robert Cussons [EMAIL PROTECTED] wrote: Thanks Max and Chip, I didn't realis that \ and \ were used to denote the beginning and end of the word and therefore they could be used separately, I always just

Differences with vim 7

2006-07-31 Thread Robert Cussons
I just installed vim 7 on my linux system at work (more specifically debian sarge running KDE 3.3) and I get a few funny things happening. It is installed in my home/bin directory as I don't have root permissions. All comments seem to come out underlined and the fonts for everything including

Re: Differences with vim 7

2006-07-31 Thread Robert Cussons
: On 7/31/06, Robert Cussons [EMAIL PROTECTED] wrote: I just installed vim 7 on my linux system at work (more specifically debian sarge running KDE 3.3) and I get a few funny things happening. It is installed in my home/bin directory as I don't have root permissions. All comments seem to come out

Re: Differences with vim 7

2006-07-31 Thread Robert Cussons
Robert Cussons wrote: Peter Hodge wrote: Some GUIs will allow you to use the command set guifont=* Which brings up a font selection window. If that works, you can select a font and then use set guifont to find out exactly what to add to your .vimrc regards, Peter --- Yakov Lerner

Re: Differences with vim 7

2006-07-31 Thread Robert Cussons
Yakov Lerner wrote: 1. In vim6.3 , try :set guifont? and select the font name with mouse 2. In vim7, try :set guifont=xxx where xxx if font name as you selected it from vim6.3 If you get the right font, then put this :set guifont=xxx line into .vimrc Yakov Hi Yakov, :set guifont?

Re: Differences with vim 7

2006-07-31 Thread Robert Cussons
Yakov Lerner wrote: On 7/31/06, Robert Cussons [EMAIL PROTECTED] wrote: Yakov Lerner wrote: 1. In vim6.3 , try :set guifont? and select the font name with mouse 2. In vim7, try :set guifont=xxx where xxx if font name as you selected it from vim6.3 If you get the right font

Re: Differences with vim 7

2006-07-31 Thread Robert Cussons
Robert Cussons wrote: Peter Hodge wrote: Some GUIs will allow you to use the command set guifont=* Which brings up a font selection window. If that works, you can select a font and then use set guifont to find out exactly what to add to your .vimrc regards, Peter --- Yakov

Re: Differences with vim 7

2006-07-31 Thread Robert Cussons
snip Are those two vims built with same GUI libraries ? I suspect that they are build with different GUIs. Can you send first 4 lines out :version output from each of two vims ? Yakov P.S. I remember that I had similar issue between one Qt-based program and similar Xt-based program. I set

Re: Differences with vim 7

2006-08-01 Thread Robert Cussons
Yakov Lerner wrote: On 7/31/06, Robert Cussons [EMAIL PROTECTED] wrote: snip Are those two vims built with same GUI libraries ? I suspect that they are build with different GUIs. Can you send first 4 lines out :version output from each of two vims ? Yakov P.S. I remember that I had

Re: [SPAM?]Re: gvimdiff and gvim 7 in windows

2006-08-01 Thread Robert Cussons
[EMAIL PROTECTED] wrote: Robert Cussons [EMAIL PROTECTED] wrote on 2006.07.21 19:19:56: because this is the size I want my gvim window to be when it opens, however as gvimdiff opens at least two buffers I would like it to open full screen, is there a way of getting this to happen? gvim 7

Re: Put the cursor in the middle of screen when replacing

2006-08-02 Thread Robert Cussons
Carlos Liu wrote: On 8/2/06, Tim Chase [EMAIL PROTECTED] wrote: How to put cursor in the middle of screen when replacing words? I have to see the next few lines to know replace or not, but the word always sit in the bottom of the screen. Sounds like you're looking for the 'scrolloff'

Re: substituting only in visual block

2006-08-02 Thread Robert Cussons
Bernd Strohhäcker wrote: Dr. Johannes Zellner schrieb: Hi, having marked a visual block with ctrl-v, I'd like to so a search / replace only in that visual block. E.g. when selecting the right block in: xx xx xx xx xx xx xx xx I'd to do something like s/xx/yy/g which applies only to the

Chip's block substitution script

2006-08-03 Thread Robert Cussons
Sorry Chip, you are absolutely right, I obviously didn't test it thoroughly enough the last time, just tried it out again and of course it does as you said and reassembles the strings again when you are finished. Very nice little script. Thanks, Rob.

inserting a character space whilst remaining in normal mode

2006-08-07 Thread Robert Cussons
Hi all, something I find myself doing quite often is the above, i.e. I have: extract(p,f,m,n) and I want extract(p, f, m, n) and rather than going to the comma and pressing 'a', 'space', 'Esc' I would prefer to use a single key and stay in normal mode, can someone give me a pointer to the

Re: inserting a character space whilst remaining in normal mode

2006-08-07 Thread Robert Cussons
Yakov Lerner wrote: On 8/7/06, Robert Cussons [EMAIL PROTECTED] wrote: Hi all, something I find myself doing quite often is the above, i.e. I have: extract(p,f,m,n) and I want extract(p, f, m, n) and rather than going to the comma and pressing 'a', 'space', 'Esc' I would prefer to use

Re: different format of features in :version

2006-08-15 Thread Robert Cussons
] wrote: I want to suggest different format of features listing in output of :version. There's always the possibility of adding a :version! alternative. nikolai -- Robert Cussons Office SB3 3.163, Theory Group Gesellschaft für Schwerionenforschung mbH (GSI

Re: [OT] Who forwarded my message to eBay?

2006-08-15 Thread Robert Cussons
Charles E Campbell Jr wrote: Edward L. Fox wrote: Somebody in this mailing list had forwarded one of my post to eBay customer support center. I think this mail puzzled eBay so much, although they still promised that they will still try their best to help me with my problem. Here is the

Re: BOF

2006-10-06 Thread Robert Cussons
Bill McCarthy wrote: Hello Vim List, I listened to Bram's BOF this past weekend. I still don't know what BOF means. From Wikipedia: BoF is an acronym for: Basic Oxygen Furnace Birds of a Feather beginning of file Body-on-frame Breath of Fire BOF can also mean: Baptism of Fire Board of

Re: [SPAM?]Re: VIM as C++ IDE

2006-10-16 Thread Robert Cussons
This is brilliant, I've never used make from inside Vim before, please surpress your sniggersAs I am working on Linux with a microsoft ergonomic keyboard, I have an unused windows button or two, how would I map the right hand one to the same mapping as below, i.e. instead of F12? As KDE's

Re: VIM as C++ IDE

2006-10-16 Thread Robert Cussons
[EMAIL PROTECTED] wrote: As far as I know Vim cannot recognize the Win key (Please correct me if I'm wrong). In fact, it isn't that difficult to type all those, so I'd refer to keep the :cope window on all the time, and I have the habit to input :w everytime I changed a new line. So all I need

Re: search visual block

2006-10-18 Thread Robert Cussons
Jean-Rene David wrote: * Lev Lvovsky [2006.10.17 17:15]: Is it possible to search for a string by selecting that string in visual mode? Meaning, if I highlight something, and then want to search for that thing which is highlighted in the rest of the doc? You already got lots of good

Re: search visual block

2006-10-18 Thread Robert Cussons
Benji Fisher wrote: On Wed, Oct 18, 2006 at 12:28:28PM +0200, Robert Cussons wrote: Jean-Rene David wrote: [snip] -- cut here --- Search for visually selected text {{{ From an idea by Michael Naumann, Jürgen Krämer. function! VisualSearch(direction

Re: search visual block

2006-10-18 Thread Robert Cussons
Jean-Rene David wrote: * Robert Cussons [2006.10.18 06:30]: I did notice that between the if and else there are which just act as comments as they are on newlines, Sorry, I should have known that wouldn't come out right. There's a literal newline between the quotes. You can enter

Re: search visual block

2006-10-18 Thread Robert Cussons
Jean-Rene David wrote: * Robert Cussons [2006.10.18 09:29]: Everything seems to work fine now, except the searched for items aren't highlighted like they normally are when I search Whether or not search items are highlighted depends on the value of the 'hlsearch' option. The search item

How to edit a macro

2006-11-01 Thread Robert Cussons
Hi everyone, In a C programme for example is there a way to get Vim to ignore matches that are commented out when searching for a string? Thanks, Rob.

Re: Ignore matches that are commented out - was How to edit a macro

2006-11-02 Thread Robert Cussons
Yakov Lerner wrote: On 11/1/06, Robert Cussons [EMAIL PROTECTED] wrote: Hi everyone, In a C programme for example is there a way to get Vim to ignore matches that are commented out when searching for a string? I found another solution, posted on this list in 2004 (not by me). This list

partial commands shown below buffer

2007-01-10 Thread Robert Cussons
Happy New Year to everyone. On my windows gvim7 installation, I have a command displayed as I am typing it just below the buffer I am working on, so for example if I type: +2yy then each character up until I hit the last y will be displayed as I type them. This is not so in my KDE Linux

getting rid of beep in vim

2007-01-23 Thread Robert Cussons
Hi all, I'm sorry, I know this should be a problem that I can resolve for myself, but I have searched the vim help under bells and visualbell and tried what it says and it doesn't seem to work, so your help would be greatly appreciated. Basically, I always get the beeping sound when I press

Re: getting rid of beep in vim

2007-01-24 Thread Robert Cussons
Thanks Tony, very prompt and helpful as always. --snip-- Inverting the display means changing black to white, white to black, yellow to blue, blue to yellow, red to cyan, cyan to red, green to magenta, magenta to green, etc., all over the screen. The visual bell does it for a fraction of a

Re: getting rid of beep in vim

2007-01-24 Thread Robert Cussons
Bill McCarthy wrote: On Wed 24-Jan-07 1:41am -0600, Robert Cussons wrote: I'm sorry, I know this should be a problem that I can resolve for myself, but I have searched the vim help under bells and visualbell and tried what it says and it doesn't seem to work, so your help would be greatly

Re: [SPAM?]Re: Vim 7 performance notes

2007-02-05 Thread Robert Cussons
George V. Reilly wrote: Yakov Lerner wrote: On 2/4/07, Yakov Lerner [EMAIL PROTECTED] wrote: On 2/4/07, Alexei Alexandrov [EMAIL PROTECTED] wrote: Gnu malloc (glibc) is exceptionally fast, iirc. It is possible to benchmark the malloc speed during the ./configure time. And

[Fwd: [Fwd: Latex Suite - question about font shortcut FMD]]

2007-04-18 Thread Robert Cussons
Subject: [Fwd: Latex Suite - question about font shortcut FMD] Date: Thu, 15 Feb 2007 14:44:35 +0100 From: Robert Cussons [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Tried your old e-mail address first ;-) Original Message Subject: Latex Suite - question

Re: undo line numbers wrong

2007-04-25 Thread Robert Cussons
Bram Moolenaar wrote: Rob Cussons wrote: just wondering if anyone else had experienced an error message like this. It seems that every so often, I've not managed to find any systematics to this, when I try to perform an undo, I get undo line numbers wrong or something similar, sorry I don't

Re: undo line numbers wrong

2007-04-27 Thread Robert Cussons
Thanks Bram and Tony, haven't been ignoring your replies, but it's my work machine and they have just updated to Debian Etch, but I haven't restarted my machine yet as I have a lot of things running at the moment and so was waiting for the weekend. Anyway just this morning I thought I would

Re: undo line numbers wrong

2007-05-02 Thread Robert Cussons
Yakov Lerner wrote: On 5/2/07, Robert Cussons [EMAIL PROTECTED] wrote: Yakov Lerner wrote: On 4/27/07, Robert Cussons [EMAIL PROTECTED] wrote: Thanks Tony, doubt he'll be that interested as he's an emacs user! But anyway some time next week I will try and convince him. You can install

Re: undo line numbers wrong

2007-05-03 Thread Robert Cussons
Yakov Lerner wrote: On 5/2/07, Robert Cussons [EMAIL PROTECTED] wrote: Yakov Lerner wrote: On 5/2/07, Robert Cussons [EMAIL PROTECTED] wrote: Yakov Lerner wrote: On 4/27/07, Robert Cussons [EMAIL PROTECTED] wrote: Thanks Tony, doubt he'll be that interested as he's an emacs user

Re: Favorite little-known feature

2007-05-07 Thread Robert Cussons
Hans-Juergen Becker wrote: Am Samstag, den 05.05.2007, 12:33 +0200 schrieb Christoph Haas: Selecting a block (Ctrl-V), then pressing I (shift-i) and entering text which then gets inserted into all rows of the block at the same column. This is one of the features I love when editing DNS

yanking text

2007-05-15 Thread Robert Cussons
Hi, I think a question like this was posted a long time ago, but I can't remember where or the answer, so please excuse me for asking it again. If I yank the next word with yw the cursor stays where it is. However if I want to yank text backwards from my current position for example to get the

Re: yanking text

2007-05-16 Thread Robert Cussons
A.J.Mechelynck wrote: Robert Cussons wrote: Hi, I think a question like this was posted a long time ago, but I can't remember where or the answer, so please excuse me for asking it again. If I yank the next word with yw the cursor stays where it is. However if I want to yank text backwards

Re: calling normal commands from ex/a function

2007-05-16 Thread Robert Cussons
fREW wrote: Hey everyone, How do I have a function call Normal commands? Example: I'd like to make a function that will open a certain file, and then set the foldlevel to 1, and then go to the right window. So I have: function TodoListMode() execute :e ~/.todo.otl execute :Calendar

Re: Tip#166 Caps_lock and Escape switch and imwheel

2007-05-30 Thread Robert Cussons
Robert Cussons wrote: --snip-- So, on with the problem. I was using the excellent Tip#166 to switch the Caps Lock and Escape keys and it worked wonderfully. Then on Friday, I tried to install imwheel as non-root, don't know if this is possible, but I read the documentation and it didn't

Re: how can I add this feature to vim!!

2007-06-04 Thread Robert Cussons
Michael F. Lamb wrote: jaywee wrote: *! Swap caps lock and escape, good for Vim remove Lock = Caps_Lock keysym Escape = Caps_Lock keysym Caps_Lock = Escape add Lock = Caps_Lock *to a file named .speedswapper to the home directory, and run *xmodmap ~/.speedswapper* in a terminal, I follow the

Re: how can I add this feature to vim!!

2007-06-04 Thread Robert Cussons
[EMAIL PROTECTED] wrote: Robert Cussons wrote: Michael F. Lamb wrote: jaywee wrote: *! Swap caps lock and escape, good for Vim remove Lock = Caps_Lock keysym Escape = Caps_Lock keysym Caps_Lock = Escape add Lock = Caps_Lock *to a file named .speedswapper to the home directory, and run

Re: VimWiki - released finally

2007-06-06 Thread Robert Cussons
On 6/5/07, Sebastian Menge [EMAIL PROTECTED] wrote: [cross-posted to vim, vim-dev, vim-announce, wikia-l] Hi all Finally I have imported all the vim tips from http://vim.org/tips to http://vim.wikia.com and set up a minimal infrastructure to keep things going. Not everything is perfect,

Re: different format of features in :version

2006-08-15 Thread Robert Cussons
] wrote: I want to suggest different format of features listing in output of :version. There's always the possibility of adding a :version! alternative. nikolai -- Robert Cussons Office SB3 3.163, Theory Group Gesellschaft für Schwerionenforschung mbH (GSI

Re: VimWiki - released finally

2007-06-06 Thread Robert Cussons
On 6/5/07, Sebastian Menge [EMAIL PROTECTED] wrote: [cross-posted to vim, vim-dev, vim-announce, wikia-l] Hi all Finally I have imported all the vim tips from http://vim.org/tips to http://vim.wikia.com and set up a minimal infrastructure to keep things going. Not everything is perfect,