Hi all :)

    I would like to share the same .vimrc for "vim" and "view", so I can
use "view" as a pager without having to use "-u" in the command line. So
far, I've thought that the only way of knowing if I'm under "vim" or
"view" mode is to check the value of "readonly". Not perfect, but it
will do.

    The problem is that I would like to use vim with other
"personalities" (different sets of options) depending on its invocation
name. Can this be done? I haven't found in the documentation any
function to retrieve the full command line, just the file argument list.

    Any suggestion about how to discriminate in the .vimrc file
depending on the invocation name for vim?

    Thanks a lot in advance :)

    Raúl Núñez de Arenas Coronado

-- 
Linux Registered User 88736 | http://www.dervishd.net
It's my PC and I'll cry if I want to... RAmen!

Reply via email to