Monday, November 3, 2008

.vimrc for python and php editing

Here is my .vimrc that I use for editing python scripts. I mostly use nano, but slowly I'm switching to vim. Anyway, here tis.


syntax enable
filetype indent on
set background=dark
set number
set tabstop=4
set textwidth=0
set nowrap
set et
set sw=4
set smarttab
set scrolljump=5
set showmode
set showmatch
map :w\|!python % #press F2 to run script
map :w:!svn commit #press CTRL-C to commit changes


It's still a work in progress. Seeing as I'm just getting in the swing of things vim. If you want a vim cheat sheet you can find it HERE

If you want to have a vimrc file for PHP Editing Click HERE

Enjoy!

No comments: