ahmet nurlu wrote:
Hi,

I am an user of gvim on a Debian/testing. I mistakenly
deleted some vim, gvim related directories like " /etc/vim, /etc/gvim". After that,
I was unable to run gvim. Whenever I run it , I always
get the vim without gui. I tried reinstall vim-gnome by giving a command "apt-get install --reinstall vim-gnome" on a console. But no success. It still runs the vim without gui.
[...]

Try

        which -a vim
        which -a gvim

in the shell, to see all programs of those names in the $PATH. The first one listed for each name will get invoked when you don't mention a path on the shell command line.

Then,

        ls -l `which -a vim` `which -a gvim`

will tell you (but not necessarily in the same order as before) when each of the above was compiled, its size, and, if it's a link, what it points to.



You might try to compile Vim for yourself. It's not difficult, see http://users.skynet.be/antoine.mechelynck/vim/compunix.vim , and it will allow you to always have the latest version, tailored to your needs and wants, and with your name on it.

Unless you specify another installdir, it will install the Vim runtime files in /usr/local/share/vim/vim70 and the binary in /usr/local/bin -- but don't take my word for it, check it as above.

To use a single GUI-enabled executable as both gvim and console Vim, install it as "vim" (like above) and add a link to it. Similarly for other Vim "executable names": for instance:

        pushd /usr/local/bin

        # does it exist here ?
        ls -l vim

        # is it GUI-enabled ?
        ./vim --version |more

        # check near the beginning of the output
        # if it tells you "with" or "without" GUI.
        # if it says "without GUI" you cannot use it for gvim
        # if OK:


        ln -s vim gvim
        ln -s vim vi
        ln -s vim ex
        ln -s vim view
        ln -s vim gview
        ln -s vim vimdiff
        ln -s vim gvimdiff
        # etc. (see the list starting at ":help ex").

        ls -l

        popd


Best regards,
Tony.

Reply via email to