This is my Vim configuration a.k.a .vimrc. You can download the file from here. Feel free to use and customize.
Below are some description of its contents:
Use vim settings instead of vi
No backup or swap
Enable per-directory .vimrc files
Don’t unload buffer when switching away
Allow per-file settings via modeline
Disable unsafe commands in local .vimrc files
Saving and encoding
Allow backspacing over everything in insert mode
Display status line which contains current mode, file name, file status, ruler, etc.
Always set autoindenting on
Display incomplete commands
Keep upto 50 lines of command line history
Show a vertical line at the 79th character
Highlight column after ‘textwidth’
Switch syntax highlighting on
Switch highlighting on the last used search pattern
Don’t hide the mouse cursor while typing
Right-click pops up contect menu
Show cursor position in status bar
Show line numbers on left
Disable code folding
Scroll the window so we can always see 10 lines around the cursor
Kernel coding style
Enable file type detection
Shortcut to search visually selected text
Check if running on gvim
Set terminal color to 256
Check if using Windows
Set Ubuntu Mono font with size 11
Use solarized colorscheme
Set the background to dark color
Highlight the current line
Use letter as the print output format
I use Ubuntu font which can be download from font.ubuntu.com. To enable solarized colorscheme, download file solarized.vim from https://github.com/altercation/vim-colors-solarized/. If you want to look my personal vim configuration, you can find it here.
I use this configuration in my Linux workstation and server.
I use exclusively for editing
linux kernel and other open source projects. For daily programming use, you can
change the value of tabstop, softtabstop and shiftwidth.