-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
70 lines (55 loc) · 1.68 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
67
68
69
70
" pathogen
call pathogen#infect()
syntax enable
set guioptions-=T
filetype on
filetype plugin on
filetype indent on
filetype plugin indent on
set nocompatible
" Color Scheme
set background=dark
colorscheme molokai
" Highlight Trailing Whitespace
highlight ExtraWhitespace ctermbg=red guibg=red
au InsertEnter * match ExtraWhitespace /\s\+\%#\@<!$/
au InsertLeave * match ExtraWhitespace /\s\+$/
" Line Numbering
set number
set tabstop=2
set shiftwidth=2
set nocp incsearch
set cinoptions=:0,p0,t0
set cinwords=if,else,while,do,for,switch,case
set formatoptions=tcqr
set cindent
set autoindent
set smarttab
set expandtab
set printoptions=number:y;paper:letter
ab #b /************************************************
ab #e ************************************************/
set backspace=indent,eol,start
set grepprg=grep\ -nH\ $*
let g:tex_flavor='latex'
set foldmethod=marker
set commentstring=\ #\ %s
set foldlevel=100
set ruler "show line and column number
set wildmenu "show some autocomplete options in statusbar
filetype plugin indent on
autocmd FileType python set omnifunc=pythoncomplete#Complete
autocmd FileType javascript set omnifunc=javascriptcomplete#CompleteJS
autocmd FileType html set omnifunc=htmlcomplete#CompleteTags
autocmd FileType css set omnifunc=csscomplete#CompleteCSS
autocmd FileType ruby set ts=2 sw=2
" Get equally spaced buffer windows independent of main gvim window size in ipython
autocmd VimResized * wincmd =
" don't clog cwd with .swp files
set backup
set backupdir=$HOME/.vimbackup/
set directory=$HOME/.vimswap/
set viewdir=$HOME/.vimviews/
" autocompile coffee files on write
au BufWritePost *.coffee silent CoffeeMake!
let g:sessions_project_path = "$HOME/workspace"