Boris Dinkevich wrote:
Hello everyone
Thank you very much for your help.
Unfortunately after playing more with the settings I was unable to
restore the same font as were before.
Is there possible to run the old executable & configuration as before
the 7 installation or do I have to upgrade/downgrade to return to the
old setup ?
Thanks again for the help
Boris
It is possible to have several versions of Vim coexisting peacefully on
a single system, but some precautions must be taken.
- You will usually want to use one of them as "default". That one must
come first in your $PATH. When you enter in the shell
which -a vim
you will see all "vim" executables in the $PATH. The first of those is
what will be called when you invoke "vim" without a path.
- $VIMRUNTIME must not be set outside of Vim. Each Vim executable will
set it to its own runtime directory.
- It is easiest to leave $VIM unset also. But if all vim<version>
directories (for each of your executables) have a common parent, you may
set $VIM to that common parent.
- On Linux, where the Vim executables are moved to somewhere in the
$PATH, you must give them different names.
Example 1, on Unix/Linux:
- $VIM is set to /usr/local/share/vim
- Vim 7.0 runtime files are in /usr/local/share/vim/vim70 and its
subdirectories
- Vim 6.4 runtime files are in /usr/local/share/vim/vim64 and its
subdirectories
- Vim 7.0 executable is /usr/local/bin/vim
- Vim 6.4 executable is /usr/local/bin/vim64
- Invoke Vim 7.0 as vim (console) or gvim (GUI); vim 6.4 as vim64
(console) or vim64 -g (GUI)
Example 2, on Windows
- $VIM is set to C:\Program Files\vim
- Vim 7.0 runtime files are in C:\Program Files\vim\vim70 and its
subdirectories
- Vim 6.4 runtime files are in C:\Program Files\vim\vim64 and its
subdirectories
- Vim 7.0 executables are C:\Program Files\vim\vim70\vim.exe and
C:\Program Files\vim\vim70\gvim.exe
- Vim 6.4 executables are C:\Program Files\vim\vim64\vim.exe and
C:\Program Files\vim\vim64\gvim.exe
- C:\Program Files\vim\vim70 is in the $PATH
- Invoke vim 7.0 as vim (console) or gvim (GUI); vim6.4 as
%VIM%\vim64\vim (console) or %VIM%\vim64\gvim (GUI
Example 3, on Linux
- $VIM is unset
- Vim 7.0 runtime files are in /usr/local/share/vim/vim70 and its
subdirectories
- kvim 6.2 runtime files are in /opt/kde3/share/vim/vim62 and its
subdirectories
- Vim 7.0 executable is /usr/local/bin/vim
- kvim 6.2 executable is /opt/kde3/bin/kvim
- Invoke vim 7.0 as vim or gvim, kvim 6.2 as kvim
- To use a common set of "system-wide" runtime files, set up
/opt/kde3/share/vim/vimfiles as a soft link pointing to
/usr/local/share/vim/vimfiles, as follows:
cd /opt/kde3/share/vim
ln -vs /usr/local/share/vim/vimfiles
For all the above examples, any settings in your vimrc which is accepted
by one version and not the other, must be bracketed appropriately in
":if" blocks, testing has(...), exists(...) and/or the Vim-variable
"version". In particular, the 'guifont' option has 4 totally
incompatible settings, and each version of gvim accepts only one of
them. Here is an example of how to set it "portably" in your vimrc:
if has('gui_running') " if we ain't got it, we shouldn't set it
if has('gui_gtk2') " GTK+2 only, not GTK+1
set gfn=B&H\ LucidaTypewriter\ 12
elseif has('gui_kde') " kvim (obsolete, but some are still
" lying around)
set gfn=B&H\ LucidaTypewriter/12/-1/5/50/0/0/0/1/0
elseif has('x11') " all other X11 versions, including GTK+1
set gfn=*-lucidatypewriter-medium-r-normal-*-*-120-*-*-m-*-*
else " anything else, including Windows and
" non-X11 Mac
set gfn=Lucida_Console:h12
endif
endif
Best regards,
Tony.