blob: 22860cf014ca2d56a808b5342eeb4e1cb5d8c571 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
" .vimrc
"
" behavior
"
set nocompatible " use vim, not vi settings
set wildmenu " command line tab completion menu
set ruler " show the cursor position all the time
set showcmd " display incomplete commands
set incsearch " do incremental searching
set ignorecase " ignore case in search
set smartcase " respect case in search if uppercase is used
set nowrap " do not wrap lines
set backspace=indent,eol,start " backspace over all stuff
"
" formatting
"
set autoindent
set tabstop=4
set softtabstop=4
set shiftwidth=4
set expandtab
set smarttab
set listchars=tab:»·,trail:·
set list
"
" filetype-specific
"
if has("autocmd")
filetype plugin indent on
au!
au FileType text setlocal textwidth=78
au FileType html setlocal ts=2 sw=2 sts=2 expandtab
au FileType ruby setlocal ts=2 sw=2 sts=2 expandtab
" php files
au BufRead,BufNewFile *.module setlocal filetype=php
au BufRead,BufNewFile *.inc setlocal filetype=php
au BufRead,BufNewFile *.install setlocal filetype=php
" html templates
au BufRead,BufNewFile *.mako setlocal filetype=html
" When editing a file, always jump to the last known cursor position.
" Don't do it when the position is invalid or when inside an event handler
au BufReadPost *
\ if line("'\"") > 0 && line("'\"") <= line("$") |
\ exe "normal g`\"" |
\ endif
endif
"
" visual
"
color fruit
syntax on
set hlsearch
|