-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvimrc
31 lines (25 loc) · 809 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
29
30
set paste
set ruler
" displaying line numbers is great but leads to problems (e.g. line numbers)
" when doing copy/paste via mouse / terminal
"set nu
" http://vim.wikia.com/wiki/Indenting_source_code
set shiftwidth=4 softtabstop=4
" To insert space characters whenever the tab key is pressed:
set expandtab
" Hint: Convert existing files according to your new settings:
" :retab
set sm
syntax on
colorscheme solarized
au BufRead,BufNewFile /etc/puppet/* set tabstop=2
if filereadable(glob("~/.vimrc.local"))
source ~/.vimrc.local
endif
" set mouse=a
" Try to show at least three lines and two columns of context when scrolling
set scrolloff=3
set sidescrolloff=2
" http://stackoverflow.com/questions/4390011/
set laststatus=2
set statusline=\ %F%m%r%h\ [%{&ff}]\ %y%=[col:%v,\ line:%l/%L\ (%p%%)]