My .vimrc available!

Vim is my favorite editor. I grew so accustomed to it i nearly use it everywhere ;-)

The default installation, however, misses some settings which i set up in my .vimrc configuration file.

This is primarily meant as a starting point for developing your own configs.

Features

  • Smart indent
  • Syntax highlighting
  • Dark colorscheme
  • Default settings for tabs and whitespaces (expand to whitespaces, 1 tab = 4 whitespaces)
  • Hide toolbar (not needed for power users, i think)
  • Custom function for inclusion of text snippets from the ~/.vim directory (especially useful for gpl headers, etc.)
  • Custom key mappings
    • F2: Save & Build (call :make)
    • F3: Next Error
    • Shift-F3: Previous Error
    • F12: Open Directory browser in the current file path
    • Toggle Insert/Normal mode with CTRL-Enter (it’s faster for me)

Of course all these settings only reflect my personal taste and you are in fact encouraged to modify them.

Some other plugins i recommend (those can be found at vim.org)

  • A.vim (Toggle .c / .h files easily)
  • EnhancedCommentify (Comment / Uncomment lines in many programming languages)
  • NERDtree (IDE-style sidebar treeview)
RSS 2.0 | Trackback | Comment

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>