blob: 77907cbab228fc2786b949bfd9e28c5597312f7d (
plain) (
blame)
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
|
set nocompatible
setlocal spell spelllang=en_us
syn off
filetype plugin indent on
set autoindent
set autowrite
set expandtab " expand tabs by default (overloadable per file type later)
set ignorecase
set incsearch
set list
set listchars=tab:>\ ,trail:~,extends:>,precedes:<
set hls
set nospell
set ruler
set viminfo=""
set shiftwidth=2
set smarttab
set tabstop=2
set softtabstop=4 " when hitting <BS>, pretend like a tab is removed, even if spaces
set shiftround " use multiple of shiftwidth when indenting with '<' and '>'
set wildmenu
set wildmode=longest:full,full
set nobackup " Don't create annoying backup files
set noswapfile " Don't use swapfile
set nowritebackup
set noerrorbells " No beeps
set autoread " Automatically reread changed files without asking me anything
set autowrite " Automatically save before :next, :make etc.
set encoding=utf-8 " Set default encoding to UTF-8
set winminheight=0 " minimize split window
set tags=tags;/ " try to find the tags file in the path
" makefile
autocmd FileType make setlocal noexpandtab tabstop=4 shiftwidth=4
" ruby
autocmd FileType ruby setllocal expandtab stabstop=2 hiftwidth=2 softtabstop=2
" golang
autocmd BufNewFile,BufRead *.go setlocal noexpandtab tabstop=4 shiftwidth=4
autocmd BufWritePost *.go :silent !gofmt -w %
" python indent
autocmd FileType python setlocal tabstop=2 softtabstop=2 shiftwidth=2 textwidth=100 smarttab expandtab autoindent
set laststatus=2
set statusline=%<%f\ %h%w%m%r%y%=L:%l/%L\ (%p%%)\ C:%c%V\ B:%o
|