Wednesday, March 28, 2012

Vim Setup (some basic stuff)

Edit ~/.vimrc for configuration:
set autoindent " self-explanatory
set nocp " turns on vi-incompatible things (just do it)
filetype plugin on " figure out what kind of files you're opening
colorscheme koehler " looks (ganz) cool
set mouse=a " enables the mouse
syntax on " syntax highlighting (I think this is where filetype plugin is handy)

To always use tabs when opening multiple files:
echo alias vim='vim -p' >> ~/.bashrc
echo alias gvim='gvim -p' >> ~/.bashrc

gt/gT to go to next/previous tab.

No comments:

Post a Comment