-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
125 lines (102 loc) · 2.62 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
set nocompatible " be iMproved
filetype off " required!
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" let Vundle manage Vundle
" required!
Plugin 'VundleVim/Vundle.vim'
" Plugins
Plugin 'scrooloose/syntastic'
Plugin 'mjbrownie/browser.vim'
"Plugin 'hkrish/vimxcode'
"Plugin 'oplatek/Conque-Shell'
Plugin 'tomasr/molokai'
Plugin 'tpope/vim-fugitive'
" Plugin 'danchoi/vmail'
"Plugin 'git://repo.or.cz/vcscommand.git'
"Plugin 'jdonaldson/vaxe'
"Plugin 'godlygeek/csapprox'
Plugin 'junegunn/goyo.vim'
Plugin 'reedes/vim-pencil'
Plugin 'OmniSharp/omnisharp-vim'
Plugin 'tpope/vim-dispatch'
" vaxe
"let g:vaxe_cache_server = 1
"let g:vaxe_cache_server_enable = 1
set autowrite
if v:version > 703
if !has('gui_running')
Plugin 'Valloric/YouCompleteMe'
end
Plugin 'kien/ctrlp.vim'
let g:ycm_confirm_extra_conf = 0
let g:ycm_register_as_syntastic_checker = 1
let g:syntastic_check_on_open = 1
let g:syntastic_javascript_checkers = ['jshint']
nnoremap <Leader>jd :YcmCompleter GoToDefinitionElseDeclaration<CR>
nnoremap <Leader>n :lne<CR>
nnoremap <Leader>p :lprevious<CR>
nnoremap <Leader>t :tabnew<CR>
nnoremap <Leader>v :vsp<CR>
nnoremap <Leader>s :sp<CR>
" CtrlP
" let g:ctrlp_map = '<c-p>'
let g:ctrlp_show_hidden = 1
let g:ctrlp_max_files = 0
" Conque-Shell
let g:ConqueTerm_Color = 2
let g:ConqueTerm_FastMode = 0
let g:ConqueTerm_TERM = 'xterm-256color'
endif
call vundle#end()
" Other settings
filetype plugin indent on
"filetype plugin on
"set lines=47
"set columns=80
set tw=80
set ts=4
set smarttab
set softtabstop=4
set noexpandtab
set ai
set bg=dark
set nonumber
set ruler
set showcmd
set laststatus=2
set guioptions=gmrLtT
"set formatoptions=tcqan
set formatoptions=clrq
set shiftwidth=4
set autoindent
set smartindent
set nowrap
set smartcase
set ignorecase
set backspace=2
autocmd FileType c set omnifunc=ccomplete#Complete
"set fuoptions=maxvert,maxhorz
colorscheme molokai
if has('gui_running')
set gfn=Monaco:h10.00
endif
let filetype_m='objc'
au BufNewFile,BufRead *.mxml set filetype=mxml
au BufNewFile,BufRead *.as set filetype=actionscript
au BufNewFile,BufRead *.ftl set filetype=html
"au BufNewFile,BufRead *.css set filetype=less
autocmd BufNewFile,BufRead *.json set ft=javascript
"
"autocmd FileType java setlocal omnifunc=javacomplete#Complete
"autocmd FileType java setlocal completefunc=javacomplete#CompleteParamsInfo
"set makeprg=ant\ -f\ build.xml
syntax on
"command CDC cd %:p:h
" Pencil
let g:pencil#wrapModeDefault = 'soft'
augroup pencil
autocmd!
autocmd FileType markdown,mkd call pencil#init()
autocmd FileType text call pencil#init()
augroup END