/
.vimrc
28 lines (23 loc) · 859 Bytes
/
.vimrc
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
set number
set autoindent
set smartindent
set scrolloff=4
set wildmode=longest,list,full
set wildignore+=.git,.bundle,.yard,*.o,*.rbc
set vb t_vb=
color ir_black
syntax on
filetype plugin indent on
" make and python use real tabs
autocmd FileType make set noexpandtab
autocmd FileType python set noexpandtab
" Thorfile, Rakefile and Gemfile are Ruby
autocmd BufRead,BufNewFile {Gemfile,Rakefile,Thorfile,config.ru} set ft=ruby
" Wrap text to 80 columns for *.md and *.txt files
autocmd BufNewFile,BufRead *.txt set textwidth=80
autocmd BufNewFile,BufRead *.md set textwidth=80
" Enable spellchecking for *.md and *.txt files
autocmd BufNewFile,BufRead *.txt set spell
autocmd BufNewFile,BufRead *.md set spell
" md, markdown, and mk are markdown and define buffer-local preview
" au BufRead,BufNewFile *.{md,markdown,mdown,mkd,mkdn} call s:setupMarkup()