-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 13/03/2012 13:28, Thor Andreassen wrote:
> On Tue, Mar 13, 2012 at 11:51:13AM +0000, Phil Dobbin wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> On 13/03/2012 10:52, Thor Andreassen wrote:
>>> On Fri, Mar 09, 2012 at 07:05:58PM +0000, Phil Dobbin wrote:
>>>> Hi, all.
>>>>
>>>> I quite often send various man pages & the like to Vim like so:
>>>>
>>>> `$ man foo | ul -i | vim -`
>>>
>>> Not exactly what you asked for, but here is how I do it. In my .vimrc
>>> I've got:
>>>
>>> source $VIMRUNTIME/ftplugin/man.vim
>>>
>>> which makes the Man command available. In my shell startup file I define
>>> a function that will open the man page in vim, something like this:
>>>
>>> manvim() { vim -c "Man $1" -c 'silent! only'; }
>>
>> Hi, Thor.
>>
>> This is getting curiouser & curiouser; that won't work for me either.
>>
>> I've appended the first line into my ~/.vimrc & the second to my
>> ~/.bashrc (this on Linux).
>
> You mean running eg.
>
> manvim ls
>
> doesn't work?
>
> What error do you get?
Apologies, I was being dense.
I copied parrot fashion the lines you posted to both rc files without
reading what was actually written.
Issuing `manvim` works correctly
Thanks for the help,
Cheers,
Phil...
- --
But masters, remember that I am an ass.
Though it be not written down,
yet forget not that I am an ass.
Wm. Shakespeare - Much Ado About Nothing
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: §auto-key-locate cert pka ldap hkp://keys.gnupg.net
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQEcBAEBAgAGBQJPX1tSAAoJEKpMeDHWT5ADXusIAKnNiByHW5kyJ4vt2TufsdmS
fbATu4RFPmO8I1l+uHGhlZcrdbbMP/DzqqomkP7Iok7CJGRUGdG2DDMpivbq4Q1L
AXc1XiKBEAUYWJg53qmCEnjATUCIyIJvz7MxFx5Vh7oWwtamJ8J+lB6+LQ2DApER
dRlIm2y15aesUBA+jpumsY3i86fZEgV2Bwdf9timyyCvfOTI92XpdJrgmKl3/8Vq
d7uxOsP64X+VYhJtczFFeryX8oENcl9BJ4vilqqwHwI8a8y38iv3T1Bnf/Re0j0H
4K/dUlcW563hUmwxLctHCK0Dtl3wFbHqVgjH/gtEkEMk8TghVdihXCYb2Ir1s8E=
=+cMw
-----END PGP SIGNATURE-----
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php