[ #89 ] .vimrc file Permalink

Vim Added a year and a bit ago

Here is my .vimrc file, for coding goodness!

set hidden
set nocompatible
set bs=2
set ts=4
set sw=4
syntax on
set softtabstop=4
set expandtab
set nohlsearch
set ruler
set ai
set backupdir=~/.backup
set directory=~/.backup

This config gives syntax highlighting and 4-space "tabs." It also puts all the swap files in the ~/.backup dir so they don't pollute your workspace. If you are having problems with the arrow-keys making weird codes (like "B" and "D") then using this config will fix that.

First remember to:

$ mkdir ~/.backup

Colophon

Django Python 960.gs Git Vim NetBSD Nginx

The Author

This is the blog of Brad Willis, a software engineer living in Brisbane.

Meta

Help
Latest entries

*BSD Agile Apache Apple apt Athletics Best-Practice Censorship Chrome Comedy Cool Crosswords Deployment Django English Exim Firefox FTP Git Hardcore Health irssi Javascript Jira Languages Linux Makefile Mathematics Mobile Broadband Mutt MySQL NetBSD nginx Nokia OpenVZ OSX Perl Postfix PostGreSQL Privacy Python Rant Requirements rsync Ruby Shell Slackware SQL SQLite SSH Standards Subversion Television Testing ThisBlog Vim VMWare (Fusion) VPN X zsh

Recent Entries

PostGreSQL setup cheatsheet
Python property decorators
FTP
gvim - Always open new files as new tabs
crontab - escape % (percentage)
OSX Google Chrome - start in incognito mode
SQLite date arithmetic
Postfix - delete message in mailq
Checking for exceptions in doctests
Homer's Curling Speech
retry in Python
Vim Makefile tabs
Centos (or RH) IPTables
Converting ssh2 public keys to openssh
Vim comment hints
Context managers in Perl
Dish rotation
Git - fixing commit user
apt stuff
Using shell variables in AWK
Linux - Too many open files
Tell gvim to save and quit... remotely
Vim - automatically remove whitespace at EOL
Python - relative paths from within modules
TV Aspect Ratios
Git - Which commits are in your branch only?
Subversion setup cheat sheet
Force detach a screen session
Modify sudo's use of environment variables
Install all Perl modules
Mutt - delete old messages
OpenVZ VPS and swap space
fail2ban on NetBSD for ssh
NetBSD - Using sup
Python - testing for a sys.exit
Python Best Practice Link Dump
Python script names
Perl - Using an expensive module
Speed of git clone
Perl Modules with Custom Prefix

Links

ChoppingBoard, DaveMisc, Project365, RageQuit