-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.vimrc
61 lines (46 loc) · 1.23 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
execute pathogen#infect()
syntax on
set paste
filetype plugin indent on
" YAML spaces
"autocmd Filetype yaml setlocal ts=2 sts=2 sw=2 expandtab
if !has("gui_running")
let g:solarized_termtrans=1
let g:solarized_termcolors=256
set background=dark
endif
colorscheme solarized
"au BufNewFile,BufRead *.py
" \ set tabstop=4
" \ set softtabstop=4
" \ set shiftwidth=4
" \ set textwidth=79
" \ set expandtab
" \ set autoindent
" \ set fileformat=unix
"au BufRead,BufNewFile *.py,*.pyw,*.c,*.h match BadWhitespace /\s\+$/
" Indentation stuff
"set autoindent
" 2 space hard tabs by default
set tabstop=2
set shiftwidth=2
set softtabstop=2
set noexpandtab
" Other nice stuff
" Save buffer after a certain time after leaving insert mode
set updatetime=200
autocmd BufLeave,CursorHold,InsertLeave * silent! wa
" Autoreload all files
set autoread
" Automatically write all files when exiting vim and other things
" that may cause loss of edits
"set autowriteall
" allow backspacing over everything in insert mode
set backspace=indent,eol,start
" Share with system cliboard
"set clipboard=unnamed
"set pastetoggle=<Leader>v
" Persisent undo
silent !mkdir ~/.vim/backups > /dev/null 2>&1
set undodir=~/.vim/backups
set undofile