-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvimrc
More file actions
63 lines (49 loc) · 1.21 KB
/
vimrc
File metadata and controls
63 lines (49 loc) · 1.21 KB
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
set nocompatible
" Color scheme
syntax enable
colorscheme molokai
" let g:molokai_original = 1
" let g:rehash256 = 1
set ruler
set showcmd
set scrolloff=5
set showmatch
filetype plugin indent on
" Use the OS clipboard by default (on versions compiled with `+clipboard`)
set clipboard=unnamed
" Set to auto read when a file is changed from the outside
set autoread
" Configure backspace so it acts as it should act
set backspace=eol,start,indent
set whichwrap+=<,>,h,l
" Softtabs, 4 spaces
set tabstop=4
set shiftwidth=4
set expandtab
set smarttab
" Make search act properly
set ignorecase
set smartcase
set hlsearch
set incsearch
" Numbers
set number
set numberwidth=5
" Open new split panes to right and bottom, which feels more natural
set splitbelow
set splitright
" Centralize backups, swapfiles and undo history
set backupdir=~/.vim/backups
set directory=~/.vim/swaps
if exists("&undodir")
set undodir=~/.vim/undo
endif
" Turn backup off, since most stuff is in SVN, git et.c anyway...
" set nobackup
" set nowb
" set noswapfile
" Always show the status line
set laststatus=2
autocmd Filetype html setlocal ts=2 sts=2 sw=2
autocmd Filetype eruby setlocal ts=2 sts=2 sw=2
autocmd Filetype ruby setlocal ts=2 sts=2 sw=2