瀏覽代碼

~/.vimrc: delete unused code

Lucas Stadler 11 年之前
父節點
當前提交
90ebe98b95
共有 1 個文件被更改,包括 0 次插入43 次删除
  1. 0 43
      .vimrc

+ 0 - 43
.vimrc

@ -6,10 +6,6 @@ if isdirectory($HOME . '/.vim/bundle/vundle')
6 6
	call vundle#rc()
7 7
8 8
	Bundle 'gmarik/vundle'
9
	if has('python')
10
		Bundle 'Valloric/YouCompleteMe'
11
		let g:ycm_confirm_extra_conf = 0
12
	endif
13 9
	Bundle 'Lokaltog/vim-easymotion'
14 10
	"Bundle 'laurilehmijoki/haskellmode-vim'
15 11
	"au BufNewFile,BufRead *.hs compiler ghc
@ -19,15 +15,10 @@ if isdirectory($HOME . '/.vim/bundle/vundle')
19 15
	au FileType haskell noremap <buffer> \hc :HdevtoolsClear<CR>
20 16
	Bundle 'tpope/vim-fireplace'
21 17
22
	Bundle 'airblade/vim-gitgutter'
23 18
	highlight SignColumn ctermbg=0
24 19
	Bundle 'terryma/vim-multiple-cursors'
25 20
26 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 23
	Bundle 'guns/vim-clojure-static'
33 24
	Bundle 'kchmck/vim-coffee-script'
@ -93,18 +84,6 @@ au BufEnter * let &titlestring=substitute(expand('%:p'), '^' . $HOME, '~', '')
93 84
set textwidth=72
94 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 87
au BufNewFile,BufRead *.{hs,lhs} set comments=:--,sr:{-,ex:-}
109 88
au BufNewFile,BufRead *.rb set comments=:#,s:=begin,e:=end
110 89
au BufNewFile,BufRead *.{opa,trx} set filetype=opa shiftwidth=2 tabstop=2 expandtab
@ -112,28 +91,6 @@ au BufNewFile,BufRead *.{opa,trx} set filetype=opa shiftwidth=2 tabstop=2 expand
112 91
" Don't let me further than 1 line towards the end or the beginning.
113 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 94
" Show whitespace
138 95
set list
139 96
set listchars=tab:→\ ,trail:·,eol:¬