Skip to content

Tips for ivim

Xiao-Ou Zhang edited this page May 9, 2014 · 13 revisions

Use iTerm2 in OSX
The terminal in OSX doesn't support 256-color, so it's better to use iTerm2 instead.
Set utf-8 in PuTTY
The default setting in PuTTY doesn't support Unicode well, so there may be some display errors when using this Vim configuration in PuTTY. Correct it by setting PuTTY "window"->"translation"->"received data assumed to be in which character set:" to be utf-8.
Fast Start Up in a Telnet Session
When you telnet to a remote machine and fire Vim on that machine, sometimes it takes a lot of time for Vim to start. Instead if you use vim -X, it will start vim almost instantaneously. This is because "-X" options tells vim not to connect to the local X server, which can save a lot of startup time. Also vim -X --noplugin will not load any plugins in $VIMRUNTIME/plugin directory. This will again speed up the starting and is very useful especially when running vim from a Disk mounted over NFS.
Use Vim in Ubuntu
The default Vim in Ubuntu doesn't support enough languages such as perl and ruby. So it's very awful to use it. Instead of compiling a good Vim from the source code, you could install vim-nox using synaptic package manager
Open gVim in Ubuntu 12.04+
There is bug in Ubuntu 12.04 in opening gVim from terminal. To fix this issue, please use:

alias gvim="gvim -f"

or simple add set guioptions+=fin the ~/.gvimrc.local.
More details please refer to issue #1.
Add PHP function list

if [ ! -d $HOME/.vim/dict ]; then mkdir $HOME/.vim/dict; fi
curl http://www.php.net/manual/en/indexes.functions.php | sed '/class="index"/!d' | grep -oP '>[^<]+</a> - .*</li>' | cut -b2- | sed 's~</a> - ~ ; ~; s~</li>$~~' > $HOME/.vim/dict/php_funclist.txt

More information, please refer to issue #4 Font Patch for Statusline If you want to include fancy font in your Statusline, you should install relevant font patch. here is a script for automatic installation. To be noted, this script was only tested in Ubuntu.

Clone this wiki locally