-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvimrc
71 lines (59 loc) · 1.6 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
71
filetype off
call pathogen#runtime_append_all_bundles()
filetype plugin indent on
"Common vimrc settings
syntax on
set hlsearch
set incsearch
set expandtab
set softtabstop=4
set shiftwidth=4
set tabstop=4
set autoindent
set textwidth=72
set winheight=9999
"match ErrorMsg /\%>72v.\+/
set backspace=indent,eol,start
set autoindent
set smartcase
set wildmode=list:longest
"set number
"set shellcmdflag=-ic
set laststatus=2
set statusline=%F\ %49c,%l\ of\ %L
"colorscheme slate
set guifont=Monospace\ 12
set guioptions-=T
set guiheadroom=-1
set nohidden
set encoding=utf8
set showmatch
set modeline
"set ruler
"set rulerformat=%15(%c%V\ %p%%%)
filetype plugin on
"last-position-jump
autocmd BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") | exe "normal g'\"" | endif
"twiki syntax highlighting
autocmd BufNewFile,BufRead *.twiki setf twiki
"markdown syntax highlighting
autocmd BufNewFile,BufReadPost *.mkd,*.markdown,*.mdown,*.md set filetype=markdown
"html/xml closetag completion
au BufNewFile,BufReadPost *.html,*.xml,*.xsl,*.php source ~/.vim/bundle/closetag/plugin/closetag.vim
"css file spacing
"autocmd BufNewFile,BufReadPost *.css,*.less set softtabstop=2 shiftwidth=2 tabstop=2
"open all buffers in new tabs
"au BufAdd,BufNewFile * nested tab sball
"disable Syntastic for html files
au BufNewFile,BufReadPost *.html SyntasticToggleMode
"augment path
set path=.,/usr/include
"make program
set makeprg=gmake
au BufNewFile,BufRead Makefile set noexpandtab
"keyboard mappings
map <C-\> :grep -r <cword> .<cr>:copen<cr>
nmap <Space> <PageDown>
"solarized settings
set background=dark
colorscheme solarized