etc/vimrc

173 lines
3.9 KiB
VimL
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

se nocompatible
filetype off
call plug#begin('~/.vim/plugged')
Plug 'tpope/vim-sensible'
Plug 'ntpeters/vim-better-whitespace'
Plug 'nathanaelkane/vim-indent-guides'
Plug 'chrisbra/Recover.vim'
" Plug 'Valloric/YouCompleteMe', { 'do': './install.sh --clang-completer --system-libclang' }
Plug 'Shougo/vimproc.vim' , { 'do': 'make -f make_unix.mak' }
Plug 'kien/ctrlp.vim'
Plug 'ciaranm/securemodelines'
Plug 'chrisbra/SudoEdit.vim'
Plug 'majutsushi/tagbar'
Plug 'bling/vim-airline'
Plug 'tomtom/tcomment_vim'
" Plug 'jalcine/cmake.vim' --slow
Plug 'benekastah/neomake'
Plug 'shougo/deoplete.nvim'
Plug 'editorconfig/editorconfig-vim'
" vim-sleuth?
Plug 'kchmck/vim-coffee-script'
Plug 'pangloss/vim-javascript'
Plug 'mtscout6/vim-cjsx'
Plug 'mxw/vim-jsx'
Plug 'othree/html5.vim'
Plug 'digitaltoad/vim-jade'
Plug 'marijnh/tern_for_vim'
Plug 'ledger/vim-ledger'
Plug 'dag/vim2hs'
Plug 'eagletmt/ghcmod-vim'
Plug 'eagletmt/neco-ghc'
" clojure
Plug 'tpope/vim-leiningen'
Plug 'tpope/vim-projectionist'
Plug 'tpope/vim-dispatch'
Plug 'tpope/vim-fireplace'
Plug 'jnwhiteh/vim-golang'
Plug 'Blackrush/vim-gocode'
Plug 'zah/nimrod.vim'
Plug 'wting/rust.vim'
Plug 'racer-rust/vim-racer', { 'for': 'rust' }
Plug 'derekwyatt/vim-scala'
" Plug 'ensime/ensime-vim'
Plug 'dogrover/vim-pentadactyl'
Plug 'superbrothers/vim-vimperator'
Plug 'idris-hackers/idris-vim'
Plug 'tpope/vim-fugitive' " git integration
Plug 'kana/vim-textobj-user'
Plug 'rbonvall/vim-textobj-latex'
Plug 'kana/vim-textobj-indent'
Plug 'bps/vim-textobj-python'
Plug 'kana/vim-textobj-function'
Plug 'rhysd/vim-grammarous'
Plug 'tpope/vim-surround'
Plug 'peterhoeg/vim-qml'
Plug 'ekalinin/Dockerfile.vim'
Plug 'jvoorhis/coq.vim'
Plug 'MarcWeber/vim-addon-mw-utils'
Plug 'tomtom/tlib_vim'
Plug 'MarcWeber/vim-addon-actions'
Plug 'MarcWeber/vim-addon-completion'
Plug 'MarcWeber/vim-addon-goto-thing-at-cursor'
Plug 'MarcWeber/vim-addon-errorformats'
Plug 'MarcWeber/vim-addon-nix'
Plug 'urbit/hoon.vim'
Plug 'ahf/twelf-syntax'
Plug 'c-cube/vim-tptp'
Plug 'LaTeX-Box-Team/LaTeX-Box'
call plug#end()
filetype plugin indent on
set tw=0 expandtab ts=8 sts=2 sw=2 sm ai si
set noml mls=5 " scan 5 lines for modelines
syn on " enable syntax highlighting
set hls " highlight search
set bg=dark " dark background
filetype plugin on
au BufNewFile,BufRead *.vala setf cs
au BufNewFile,BufRead *.md set ft=markdown
au syntax java set ts=4 sts=4 sw=4
au BufNewFile,BufRead *.i set ft=swig
au BufNewFile,BufRead *.s set ft=tptp
au BufNewFile,BufRead *.s.out set ft=tptp
au BufNewFile,BufRead *.tptp set ft=tptp
au BufReadCmd *.epub call zip#Browse(expand("<amatch>"))
au syntax haskell setl omnifunc=necoghc#omnifunc
let g:necoghc_enable_detailed_browse=1
let g:haskell_conceal = 0
au syntax tex setl iskeyword+=:
let g:syntastic_tex_checkers=['lacheck']
let g:syntastic_scala_checkers=[]
call tcomment#DefineType('nix', '# %s')
let g:LatexBox_latexmk_async = 1
let g:LatexBox_latexmk_preview_continuously = 1
let g:LatexBox_quickfix = 2
au BufRead,BufNewFile *.tex syn region texZone start="\\begin{clilisting}" end="\\end{clilisting}\|%stopzone\>"
" better paragraph object for tex files FIXME
call textobj#user#plugin('latexparagraph', {
\ 'paragraph': {
\ 'pattern': ['\n\s*\n\\|\\end\\|\\begin', '\n\s*\n\\|\\begin\\|\\end'],
\ 'select-a': 'al',
\ 'select-i': 'il',
\ },
\ })
" disable annoying "file is read-only" warnings
au FileChangedRO * set noreadonly
se foldlevel=99
set vb " turn on the "visual bell" - which is much quieter than the "audio blink"
set nobackup
se bs=2
let g:ycm_filetype_blacklist = { 'sql': 1 }
let g:ycm_semantic_triggers = {'haskell' : ['.']}
let g:ycm_show_diagnostics_ui = 1
let g:EclimCompletionMethod = 'omnifunc'
" WIP
function LedgerGeneratePostings()
'<,'>!ledger -f - print --generated
'<,'>s/\s\s\s+/ /g
endfunction
if &term == "screen" || &term == "screen-256color-bce"
set t_ts=k
set t_fs=\
endif
set title