Skip to content

Commit

Permalink
Update vimrc
Browse files Browse the repository at this point in the history
  • Loading branch information
yesmeck committed Dec 30, 2011
1 parent b2850d3 commit aad8673
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions vimrc
Expand Up @@ -137,29 +137,20 @@ noremap <C-P> <ESC>:call PhpDocSingle()<CR>i
nnoremap <C-P> :call PhpDocSingle()<CR>
vnoremap <C-P> :call PhpDocRange()<CR>
" Hammer
" xdg_open does not work
:let g:HammerBrowser = 'firefox'

:let g:pdv_cfg_Version=""
:let g:pdv_cfg_Author="Meck <yesmeck@gmail.com>"
:let g:pdv_cfg_Copyright="2011 Meck"
:let g:pdv_cfg_License=""

" file syntax
function s:setupWrapping()
set wrap
set wrapmargin=2
set textwidth=72
endfunction

function s:setupMarkup()
set ft=markdown
call s:setupWrapping()
" map <buffer> <Leader>p :Hammer<CR>
endfunction

" Thorfile, Rakefile, Vagrantfile and Gemfile are Ruby
au BufRead,BufNewFile {Gemfile,Rakefile,Vagrantfile,Thorfile,config.ru} set ft=ruby

" md, markdown, and mk are markdown and define buffer-local preview
au BufRead,BufNewFile *.{md,markdown,mdown,mkd,mkdn} call s:setupMarkup()
au BufRead,BufNewFile *.{md,markdown,mdown,mkd,mkdn} set ft=markdown

" add json syntax highlighting
au BufNewFile,BufRead *.json set ft=javascript
Expand Down

0 comments on commit aad8673

Please sign in to comment.