Vim » History » Version 2

Anonymous, 09/28/2007 10:25 AM

1 1 Anonymous
2 2 Anonymous
h1. Colours in VIM
3 2 Anonymous
4 2 Anonymous
5 2 Anonymous
In order to display coloured text in VIM, change _/etc/profile.d/vim.sh_ to:
6 2 Anonymous
<pre>
7 1 Anonymous
if [ -n "$BASH_VERSION" -o -n "$KSH_VERSION" -o -n "$ZSH_VERSION" ]; then
8 1 Anonymous
  # for bash and zsh, only if no alias is already set
9 1 Anonymous
  alias vi >/dev/null 2>&1 || alias vi=vim
10 1 Anonymous
fi
11 2 Anonymous
</pre>