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

2007-06-04 Thread vim
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 *xmodmap ~/.speedswapper

'set hidden' overwrites cmdline after BufEnter event?

2007-03-16 Thread vim
Hello, I wrote a plugin that displays some information in the commandline using the echon command when entering a buffer. This works fine, unless a buffer is entered for the second time and the 'set hidden' option is enabled - in this case vim overwrites the command line with info like: /tmp

Re: Insert mode and arrow keys philosophy

2007-02-21 Thread vim
as with using the keyboard-provided keys, in the long term, once you've mastered motion in Vim, you'll realise that it's tuely priceless and it does speed up your typing. Good luck with it! All the best; Laurent

Re: Insert mode and arrow keys philosophy

2007-02-20 Thread vim
it and use the arrows whenever you want it. Laurent Yakov Lerner wrote: On 2/20/07, Pavel Shevaev [EMAIL PROTECTED] wrote: Can you clarify which costs you are willing to pay/sacrifice to avoid use of arrows ? Actually I'm just trying to follow the best vim practices and it's really hard for me

Re: alphabetical order of a long bibl file

2007-01-05 Thread Vim Visual
HI, thanks for the answer. If I try that the whole reference blocks are deleted... If I do it after having selected them on visual mode, I get Not an editor command If you want to try yourself, the whole file is here http://www.aei.mpg.de/~pau/biblio_TOT.bbl vim version 7.0.42 here

Re: alphabetical order of a long bibl file

2007-01-05 Thread Vim Visual
gosh, I was wrong! you don't even need vim7 for that... just visual, !sort -k 2 and that's it the problem is that after that the block are no longer separated by whitespaces and a BIG blank screen is showed but the rerefences are ahead, in the bottom of the file... That's why I thought vim

alphabetical order of a long bibl file

2007-01-04 Thread Vim Visual
Hi, I have a long bibliography file for a latex document and I must put the references in order. Unfortunately the different authors have used different styles, so that I have two blocks. In the first block all references look like

sorting columns alphabetically

2006-11-22 Thread Vim Visual
Hi, I have a text file like Mr Bla Blo Ms Ble Blu Dr Bli Blu etc and I would like to sort the file alphabetically after the surname (3rd column). How can I do that? I know how to sort it after the first one (visual + !sort) thanks! Pau

Re: sorting columns alphabetically

2006-11-22 Thread Vim Visual
sorry, I got it: sort -k 3 The problem now are midnames, like Mr Bla Blo Ms Ble Blu Dr Bli T. Blu but I have deleted them :) 2006/11/22, Vim Visual [EMAIL PROTECTED]: Hi, I have a text file like Mr Bla Blo Ms Ble Blu Dr Bli Blu etc and I would like to sort the file alphabetically after

set -o vi

2006-10-30 Thread Vim Visual
Hi, I guess you already know that typping set -o vi sets the cursor to vi mode... but vi indeed... Is there a way to set the cursor to vim, and load all map, ab etc defined in my vimrc? It'd great because I have to type a lot of times long commands like rsync -avurltz --rsh=ssh --progress

Re: Fighting with comments - Close the gap between vimtutor and :help

2006-10-21 Thread vim
Gary Johnson wrote: I don't think that's true. Vim :help comprises two manuals: Vim User Manual - :help user-manual Vim Reference Manual - :help reference This is even discussed in :help 01.1. The User Manual is written in a different style than the Reference Manual and is more readable. I

Re: copy from pdfs

2006-10-16 Thread Vim Visual
ah! I love you! you solved the problem! My encoding was set to UTF-8, though 2006/10/16, A.J.Mechelynck [EMAIL PROTECTED]: Vim Visual wrote: Hi, is there a way to remove all those strange symbols (and substitute them with proper caracters) you get when you select a text section from

Mac OS 10.3 - v7.0 - netrwPlugin.vim

2006-07-21 Thread Vim List
of netrwPlugin.vim to stop it and pasted the old explorer.vim into my plugin directory. I don't have the time nor the expertise to go through the netrwPlugin.vim to see if I will be breaking anything I might really need. I couldn't find anything in :help about it, nor on the vim site

Re: deleting repeated blocks of text

2006-05-04 Thread Vim Visual
it by telling vi something like go to line XXX, delete everything, insert text: :386,$d o CTRL + v + ESC :r /tmp/arXiV_2.txt :w! ~pau/WWW/arXiV.html But the inconvinient is that I have to modify the vim script whenever I add something to the web page, the number line 386 is wrong... and it is very

Re: modify a text file

2006-04-29 Thread Vim Visual
Hi Tim, somehow my email was partially deleted... ?? cat file | vim - What stands the - for? Then, clean up the stuff we don't want 1,/received/d $?^\s*For subscribe options?,$d to strip off the header and footer. this worked out nicely My first-pass solution will end

modify a text file

2006-04-28 Thread Vim Visual
Hi, I am struggling with sed and gawk but I guess that it'd be possible to employ vim in the command line (it's to make a script that will be automatically launched every 24 hours) but I don't have any idea of how to do it... How could I select the blocks (see file ahead) of a text file (say

Re: Vimdiff

2006-04-28 Thread vim
and Benji, Laurent Roy Fulbright wrote: Make sure you have a diff program located somewhere in your path on MSWin. That's what caused the error for me when I first installed Vim and tried to run vimdiff. Regards, Roy Fulbright Benji Fisher wrote: On Thu, Apr 27, 2006 at 12:30:27AM +0200, vim