Hello -

Many thanks - but even after searching the manual etc. I do not
understand how this solution
is constructed or arrived at. Perhaps Vim is not for me.

Regards

_John Sampson_

John Beckett wrote:
> John Sampson wrote:
>   
>> I want to change lines of the form
>> able|baker|charlie|dog|easy
>>
>> to
>> baker|able|charlie|dog|easy
>>     
>
> A quick test with the following worked ok:
>
> :nnoremap <F8> :s/\([^\|]*\)\|\([^\|]*\)\(.*\)/\2\|\1\3/<CR>:noh<CR>
>
> John
>
>   



__________ Information from ESET NOD32 Antivirus, version of virus signature 
database 4263 (20090721) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com



--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to