Archive for the 'ViM' Category

Published by Niels on 29 Dec 2012

Flexible multi-platform Vim setup – part 1

As a software engineer I often prefer to use Vim with an appropriate set of plug-ins for my daily work. Vim is a great editor to get work done, especially when making use of the available plug-ins and the power of personal settings in my ‘.vimrc’ file. But to maintain those plug-ins and ‘.vimrc’ file on a local system can become very cumbersome. It becomes even more cumbersome when you work on multiple machines. Then not only plug-in maintenance is cumbersome, but the fact that you have to install them again every time becomes annoying as well.

In this article I want to show how I am able to make use of a single installation of my plug-ins and ‘.vimrc’ using the power of Dropbox and Vundle.

Although Pathogen seems to be the more popular solution I decided to use Vundle as this enables me to maintain my plug-ins from Vim. The article will assume that you are using Linux. Later instalments will show how to use the set up on multiple platforms. Continue Reading »

Published by Niels on 28 Oct 2010

Problems combining OmniCppComplete with Pathogen

Since a few days I am using the Pathogen plug-in together with the scripts from GitHub as described here. I think it is a wonderful way to maintain my personal ViM installation. However, after installing and trying OmniCppComplete I got the following error messages when attempting to complete something:

-- Omni completion (^O^N^P) Pattern not found

After a while I found out that the used complete-function ‘omnifunc’ was set to:


This is the generic completion function for C-based programs and does not work well with C++-programs. To fix this add the following line to .vimrc:

au BufNewFile,BufRead,BufEnter *.cpp,*.hpp set omnifunc=omni#cpp#complete#Main

This should leave you with a working OmniCppComplete plug-in managed from the vim-scripts repositories at GitHub.

Published by Niels on 14 Nov 2007

Color schemes, Color schemes, Color schemes…

As a passionate and seasoned user of the best editor in the world I always look around for ways to improve the editing experience. One way to improve that is by selecting a good color scheme. The ViM website offer a ton of color schemes but no way to sample them other then look at the user ratings, install them and then judge for yourself. And even then the color schemes on the ViM site are not all schemes that are available.

Fortunately someone wrote a page where, as far as I know, all color schemes are shown and downloadable. Even my two favorite ones: here and here. The only minor annoyance is the fact that the color schemes are not all alphabetically ordered.

I know, I know, old news, but I still like to use this web site as my own long term memory…