Merge branch 'master' of git://repo.or.cz/msysgit into devel
[msysgit.git] / share / vim / vimrc
blobe2d749792ed84a0c599f63382d1179d6d49f054a
1 " Setting some decent VIM settings for programming
3 syntax on                       " turn syntax highlighting on by default
4 set ai                          " set auto-indenting on for programming
5 set showmatch                   " automatically show matching brackets. works like it does in bbedit.
6 set vb                          " turn on the "visual bell" - which is much quieter than the "audio blink"
7 set ruler                       " show the cursor position all the time
8 set laststatus=2                " make the last line where the status is two lines deep so you can see status always
9 set backspace=indent,eol,start  " make that backspace key work the way it should
10 set nocompatible                " vi compatible is LAME
11 set background=dark             " Use colours that work well on a dark background (Console is usually black)
12 set showmode                    " show the current mode
14 " Show EOL type and last modified timestamp, right after the filename
15 set statusline=%<%F%h%m%r\ [%{&ff}]\ (%{strftime(\"%H:%M\ %d/%m/%Y\",getftime(expand(\"%:p\")))})%=%l,%c%V\ %P
17 "------------------------------------------------------------------------------
18 " Only do this part when compiled with support for autocommands.
19 if has("autocmd")
20     "Remember the positions in files"
21     autocmd BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") | exe "normal g`\"" | endif
22 endif " has("autocmd")