Lucas Stadler лет назад: 11
Родитель
Сommit
90ebe98b95
1 измененных файлов с 0 добавлено и 43 удалено
  1. 0 43
      .vimrc

+ 0 - 43
.vimrc

6
	call vundle#rc()
6
	call vundle#rc()
7
7
8
	Bundle 'gmarik/vundle'
8
	Bundle 'gmarik/vundle'
9
	if has('python')
10
		Bundle 'Valloric/YouCompleteMe'
11
		let g:ycm_confirm_extra_conf = 0
12
	endif
13
	Bundle 'Lokaltog/vim-easymotion'
9
	Bundle 'Lokaltog/vim-easymotion'
14
	"Bundle 'laurilehmijoki/haskellmode-vim'
10
	"Bundle 'laurilehmijoki/haskellmode-vim'
15
	"au BufNewFile,BufRead *.hs compiler ghc
11
	"au BufNewFile,BufRead *.hs compiler ghc
19
	au FileType haskell noremap <buffer> \hc :HdevtoolsClear<CR>
15
	au FileType haskell noremap <buffer> \hc :HdevtoolsClear<CR>
20
	Bundle 'tpope/vim-fireplace'
16
	Bundle 'tpope/vim-fireplace'
21
17
22
	Bundle 'airblade/vim-gitgutter'
23
	highlight SignColumn ctermbg=0
18
	highlight SignColumn ctermbg=0
24
	Bundle 'terryma/vim-multiple-cursors'
19
	Bundle 'terryma/vim-multiple-cursors'
25
20
26
	Bundle 'marijnh/tern_for_vim'
21
	Bundle 'marijnh/tern_for_vim'
27
	au FileType javascript nnoremap <buffer> gd :TernDef<cr>
28
	au FileType javascript nnoremap <buffer> gu :TernRefs<cr>
29
	au FileType javascript nnoremap <buffer> gt :TernType<cr>
30
	au FileType javascript nnoremap <buffer> cw :TernRename<cr>
31
22
32
	Bundle 'guns/vim-clojure-static'
23
	Bundle 'guns/vim-clojure-static'
33
	Bundle 'kchmck/vim-coffee-script'
24
	Bundle 'kchmck/vim-coffee-script'
93
set textwidth=72
84
set textwidth=72
94
au FileType text set textwidth=72
85
au FileType text set textwidth=72
95
86
96
function! g:setTextWidthInComments()
97
	" Capture new position
98
	let g:curTextPosition = synIDattr(synIDtrans(synID(line("."), col("."), 0)), "name")
99
100
	if( g:curTextPosition == "Comment" || &ft == "markdown" || &ft == "" )
101
		set textwidth=72
102
	else
103
		set textwidth=0
104
	endif
105
endfunction
106
"autocmd CursorMoved * :call g:setTextWidthInComments()
107
108
au BufNewFile,BufRead *.{hs,lhs} set comments=:--,sr:{-,ex:-}
87
au BufNewFile,BufRead *.{hs,lhs} set comments=:--,sr:{-,ex:-}
109
au BufNewFile,BufRead *.rb set comments=:#,s:=begin,e:=end
88
au BufNewFile,BufRead *.rb set comments=:#,s:=begin,e:=end
110
au BufNewFile,BufRead *.{opa,trx} set filetype=opa shiftwidth=2 tabstop=2 expandtab
89
au BufNewFile,BufRead *.{opa,trx} set filetype=opa shiftwidth=2 tabstop=2 expandtab
112
" Don't let me further than 1 line towards the end or the beginning.
91
" Don't let me further than 1 line towards the end or the beginning.
113
set scrolloff=1
92
set scrolloff=1
114
93
115
if exists("pathogen")
116
	call pathogen#infect('~/t/vim/')
117
	call pathogen#infect('~/t/rust/src/etc/')
118
	let g:ctrlp_custom_ignore = {
119
		\ 'dir': '\.git$'
120
	\ }
121
	let g:ctrlp_prompt_mappings = {
122
		\ 'PrtClearCache': ['<F12>']
123
	\ }
124
	call pathogen#infect('~/t/notmuch/')
125
	call pathogen#infect('~/t/vim/clojure')
126
	let g:vimclojure#ParenRainbow=1
127
	let g:vimclojure#NailgunClient="/home/lu/t/vim/clojure/client/ng"
128
	let g:vimclojure#WantNailgun=0
129
130
	" soo beautiful! :)
131
	set background=dark
132
	let g:solarized_termtrans  = 0
133
	let g:solarized_termcolors = 16
134
	colorscheme solarized
135
endif
136
137
" Show whitespace
94
" Show whitespace
138
set list
95
set list
139
set listchars=tab:→\ ,trail:·,eol:¬
96
set listchars=tab:→\ ,trail:·,eol:¬