Re: Sort within VI with parameters
[email protected] Fri, 24 Jun 2011 10:07:12 -0500
| Newsgroups | gmane.org.user-groups.luni.tech |
|---|---|
| Message-ID | <[email protected]> |
That's strange, it works on my vim (7.3). You might also try starting up vim without any .vimrc file, just in case you have a 'sort' macro defined or some baloney. So perhaps try: vim -u /dev/null and then attempt your sort. Colin On Fri, 24 Jun 2011 07:46:52 -0500 Jay Strauss <[email protected]> wrote: >Yeah that's what I think too > >I've tried every incantation ( and yours) with no success > >Thanks >Jay > >Sent from my iPhone > >On Jun 23, 2011, at 3:13 PM, [email protected] wrote: > >> >>> I can't figure out the proper incantation >>> >>> <esc>:%!sort -t| -k2,2 >> >> It looks like your field separator is getting interpreted as a >> shell pipe character. Try escaping it like so: >> >> <esc>:%!sort -t\| -k2,2 >> >> Or perhaps quoting it: >> >> <esc>:%!sort -t'|' -k2,2 >> >> Colin >> >> -- >> Linux Users Of Northern Illinois (Chicago) - Technical >Discussion >> http://luni.org/mailman/listinfo/luni >-- >Linux Users Of Northern Illinois (Chicago) - Technical Discussion >http://luni.org/mailman/listinfo/luni -- Linux Users Of Northern Illinois (Chicago) - Technical Discussion http://luni.org/mailman/listinfo/luni