|
|
@ -31,6 +31,8 @@ if isdirectory($HOME . '/.vim/bundle/vundle')
|
|
31
|
31
|
|
|
32
|
32
|
Bundle 'guns/vim-clojure-static'
|
|
33
|
33
|
Bundle 'kchmck/vim-coffee-script'
|
|
|
34
|
|
|
|
35
|
Bundle 'junegunn/goyo.vim'
|
|
34
|
36
|
endif
|
|
35
|
37
|
|
|
36
|
38
|
" Have syntax highlighting and non-vi features
|
|
|
@ -95,27 +97,6 @@ function! g:setTextWidthInComments()
|
|
95
|
97
|
endfunction
|
|
96
|
98
|
"autocmd CursorMoved * :call g:setTextWidthInComments()
|
|
97
|
99
|
|
|
98
|
|
" via <http://paulrouget.com/e/vimdarkroom>
|
|
99
|
|
function! ToggleFocusMode()
|
|
100
|
|
if (&foldcolumn != 12)
|
|
101
|
|
set laststatus=0
|
|
102
|
|
set numberwidth=10
|
|
103
|
|
set foldcolumn=12
|
|
104
|
|
set noruler
|
|
105
|
|
set showtabline=0
|
|
106
|
|
hi FoldColumn ctermbg=none
|
|
107
|
|
hi LineNr ctermfg=0 ctermbg=none
|
|
108
|
|
else
|
|
109
|
|
set laststatus=2
|
|
110
|
|
set numberwidth=4
|
|
111
|
|
set foldcolumn=0
|
|
112
|
|
set ruler
|
|
113
|
|
set showtabline=1
|
|
114
|
|
colorscheme solarized
|
|
115
|
|
endif
|
|
116
|
|
endfunc
|
|
117
|
|
nnoremap F :call ToggleFocusMode()<cr>
|
|
118
|
|
|
|
119
|
100
|
au BufNewFile,BufRead *.{hs,lhs} set comments=:--,sr:{-,ex:-}
|
|
120
|
101
|
au BufNewFile,BufRead *.rb set comments=:#,s:=begin,e:=end
|
|
121
|
102
|
au BufNewFile,BufRead *.{opa,trx} set filetype=opa shiftwidth=2 tabstop=2 expandtab
|