Skip to content

Instantly share code, notes, and snippets.

@AndrewRademacher
Created July 15, 2014 22:25
Show Gist options
  • Save AndrewRademacher/7c14e62e6a6422dfc15a to your computer and use it in GitHub Desktop.
Save AndrewRademacher/7c14e62e6a6422dfc15a to your computer and use it in GitHub Desktop.
Vimrc
" vundle
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim/
call vundle#rc()
Plugin 'gmarik/vundle'
Plugin 'MarcWeber/vim-addon-mw-utils'
Plugin 'tomtom/tlib_vim'
Plugin 'garbas/vim-snipmate'
Plugin 'mattn/emmet-vim'
Plugin 'Lokaltog/vim-easymotion'
Plugin 'scrooloose/nerdcommenter'
" Node
Plugin 'maksimr/vim-jsbeautify'
" Haskell
Plugin 'nbouscal/vim-stylish-haskell'
Plugin 'bitc/vim-hdevtools'
Plugin 'scrooloose/syntastic'
filetype plugin indent on
syntax on
" easy motion
nmap s <Plug>(easymotion-s)
" js beautify
autocmd FileType javascript vnoremap <buffer> <c-f> :call JsBeautify()<cr>
autocmd FileType html vnoremap <buffer> <c-f> :call HtmlBeautify()<cr>
autocmd FileType css vnoremap <buffer> <c-f> :call CSSBeautify()<cr>
" spellcheck
set spelllang=en_us
" line numbers
set number
" tabbing
set expandtab
set tabstop=4
set shiftwidth=4
" Hdevtools
function! FindCabalSandboxRoot()
return finddir('.cabal-sandbox', './;')
endfunction
function! FindCabalSandboxRootPackageConf()
return glob(FindCabalSandboxRoot().'/*-packages.conf.d')
endfunction
let g:hdevtools_options = '-g-ilib -g-isrc -g-i. -g-idist/build/autogen -g-Wall -g-package-conf='.FindCabalSandboxRootPackageConf()
au FileType haskell nnoremap <buffer> <F1> :HdevtoolsType<CR>
au FileType haskell nnoremap <buffer> <silent> <F2> :HdevtoolsClear<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment