Skip to content

Tips for ivim

kepbod edited this page Oct 8, 2014 · 13 revisions

Use iTerm2 in OS
The terminal in OS 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. However, to be noted, it will affect two selection registers "* and "+. 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
Ivim used DejaVu Sans Mono font by default. So you had better install this font in your system in advance. 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. If you want to install font patch in other operation systems, please consult here

Clone this wiki locally