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
was removing everything... it wasn't, it was just working properly... you delete spaces and they are kept, as blank lines... the size of the file is the same but you just have to look in the bottom! A mere :%s/$/\r suffices then, as Tim said vim is just great! Pau 2007/1/5, Vim Visual [EMAIL

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: 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

Re: deleting repeated blocks of text

2006-05-04 Thread Vim Visual
Hey! Thanks! This worked out perfectly Now I have another question to you... The final file, which I got thanks to the help of all of you, is to be embedded into another web page... Which command should I add in the script to tell vi to embed it in the correct place? At the moment I do

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