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


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

Reply via email to