forked from werebus/vimfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvimrc
66 lines (53 loc) · 1.29 KB
/
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
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
65
66
packloadall
source $VIMRUNTIME/defaults.vim
set encoding=utf-8
set number
set cursorline
set showmatch
" Synchronize yank and clipboard registers
set clipboard^=unnamedplus
" Whitespace stuff
set nowrap
set tabstop=2
set shiftwidth=2
set softtabstop=2
set expandtab
set list
if has('multi_byte')
set listchars=tab:\ \ ,trail:·,extends:→
else
set listchars=tab:\ \ ,trail:.,extends:>
endif
" Searching
set hlsearch
set ignorecase
set smartcase
" Temp files
set backup
set backupdir=~/.vim/backup
set viewdir=~/.vim/views
set directory=~/.vim/swap
set undofile
set undodir=~/.vim/undo
set viminfofile=~/.vim/info
" Tab completion
set wildmode=list:longest,list:full
set wildignore+=*.o,*.obj,.git,*.rbc,*.class,.svn,test/fixtures/*,vendor/gems/*
" Show linenumbers on printouts; use letter paper (not A4)
set printoptions=number:y,paper:letter
if 1
" Give prawn files ruby syntax highlighting
autocmd BufNewFile,BufRead *.prawn set filetype=ruby
" Remove all trailing white spaces from a file on write
autocmd BufWritePre * :%s/\s\+$//e
endif
" Default color scheme
silent! color monokai-bold
" Include user's local vimrc file
if filereadable(expand("~/.vimrc.local"))
source ~/.vimrc.local
endif
" Load devicons on refresh
if exists("g:loaded_webdevicons")
call webdevicons#refresh()
endif