2014-03-06 14:12:50 +00:00
|
|
|
|
se nocompatible
|
|
|
|
|
filetype off
|
|
|
|
|
|
2014-10-09 09:36:13 +00:00
|
|
|
|
call plug#begin('~/.vim/plugged')
|
2014-03-06 14:12:50 +00:00
|
|
|
|
|
2014-10-09 09:36:13 +00:00
|
|
|
|
Plug 'tpope/vim-sensible'
|
2014-03-06 14:12:50 +00:00
|
|
|
|
|
2014-10-09 09:36:13 +00:00
|
|
|
|
Plug 'Valloric/YouCompleteMe', { 'do': './install.sh --clang-completer --system-libclang' }
|
2014-03-06 14:12:50 +00:00
|
|
|
|
|
2014-10-09 09:36:13 +00:00
|
|
|
|
Plug 'Shougo/vimproc.vim' , { 'do': 'make -f make_unix.mak' }
|
2014-03-06 14:12:50 +00:00
|
|
|
|
|
2014-10-09 09:36:13 +00:00
|
|
|
|
Plug 'Shougo/unite.vim'
|
|
|
|
|
Plug 'tsukkee/unite-tag'
|
|
|
|
|
Plug 'Shougo/neomru.vim'
|
2014-03-06 14:12:50 +00:00
|
|
|
|
|
2014-10-09 09:36:13 +00:00
|
|
|
|
Plug 'ciaranm/securemodelines'
|
2014-08-10 07:25:50 +00:00
|
|
|
|
|
2014-10-09 09:36:13 +00:00
|
|
|
|
Plug 'chrisbra/SudoEdit.vim'
|
2014-08-18 14:42:57 +00:00
|
|
|
|
|
2014-10-09 09:36:13 +00:00
|
|
|
|
Plug 'nanotech/jellybeans.vim'
|
|
|
|
|
Plug 'majutsushi/tagbar'
|
|
|
|
|
Plug 'bling/vim-airline'
|
|
|
|
|
Plug 'scrooloose/syntastic'
|
|
|
|
|
Plug 'tomtom/tcomment_vim'
|
|
|
|
|
"Plug 'Raimondi/delimitMate'
|
2014-08-30 06:16:58 +00:00
|
|
|
|
|
2014-10-09 09:36:13 +00:00
|
|
|
|
Plug 'editorconfig/editorconfig-vim'
|
2014-03-06 14:12:50 +00:00
|
|
|
|
|
2014-10-09 09:36:13 +00:00
|
|
|
|
Plug 'kchmck/vim-coffee-script'
|
|
|
|
|
Plug 'ledger/vim-ledger'
|
2014-08-31 11:39:39 +00:00
|
|
|
|
|
2014-10-09 09:36:13 +00:00
|
|
|
|
Plug 'dag/vim2hs'
|
|
|
|
|
Plug 'eagletmt/ghcmod-vim'
|
|
|
|
|
Plug 'eagletmt/neco-ghc'
|
2014-06-01 12:13:23 +00:00
|
|
|
|
|
2014-10-09 09:36:13 +00:00
|
|
|
|
Plug 'tpope/vim-fireplace' " clojure repl
|
2014-06-01 12:13:23 +00:00
|
|
|
|
|
2014-10-09 09:36:13 +00:00
|
|
|
|
Plug 'marijnh/tern_for_vim'
|
2014-07-22 18:33:48 +00:00
|
|
|
|
|
2014-10-09 09:36:13 +00:00
|
|
|
|
Plug 'jnwhiteh/vim-golang'
|
|
|
|
|
Plug 'Blackrush/vim-gocode'
|
2014-06-01 12:13:23 +00:00
|
|
|
|
|
2014-10-09 09:36:13 +00:00
|
|
|
|
Plug 'zah/nimrod.vim'
|
2014-06-01 12:13:23 +00:00
|
|
|
|
|
2014-10-09 09:36:13 +00:00
|
|
|
|
Plug 'wting/rust.vim'
|
2014-06-01 12:13:23 +00:00
|
|
|
|
|
2014-10-09 09:36:13 +00:00
|
|
|
|
Plug 'derekwyatt/vim-scala'
|
2014-06-01 12:13:23 +00:00
|
|
|
|
|
2014-10-09 09:36:13 +00:00
|
|
|
|
Plug 'othree/html5.vim'
|
2014-06-14 17:47:10 +00:00
|
|
|
|
|
2014-10-09 09:36:13 +00:00
|
|
|
|
Plug 'dogrover/vim-pentadactyl'
|
|
|
|
|
Plug 'superbrothers/vim-vimperator'
|
2014-06-14 11:26:00 +00:00
|
|
|
|
|
2014-10-09 09:36:13 +00:00
|
|
|
|
Plug 'idris-hackers/idris-vim'
|
2014-07-13 11:29:14 +00:00
|
|
|
|
|
2014-10-09 09:36:13 +00:00
|
|
|
|
Plug 'tpope/vim-fugitive' " git integration
|
2014-07-18 06:41:58 +00:00
|
|
|
|
|
2014-10-09 09:36:13 +00:00
|
|
|
|
Plug 'kana/vim-textobj-user'
|
|
|
|
|
Plug 'rbonvall/vim-textobj-latex'
|
|
|
|
|
Plug 'kana/vim-textobj-indent'
|
|
|
|
|
Plug 'bps/vim-textobj-python'
|
2014-10-08 14:41:06 +00:00
|
|
|
|
|
2014-06-14 11:26:00 +00:00
|
|
|
|
" vim-sleuth?
|
|
|
|
|
|
2014-10-09 09:36:13 +00:00
|
|
|
|
call plug#end()
|
2014-06-14 17:47:10 +00:00
|
|
|
|
|
2014-03-06 14:12:50 +00:00
|
|
|
|
filetype plugin indent on
|
|
|
|
|
|
2013-12-29 17:32:58 +00:00
|
|
|
|
set tw=0 expandtab ts=8 sts=2 sw=2 sm ai si
|
2014-08-18 14:42:57 +00:00
|
|
|
|
set noml mls=5 " scan 5 lines for modelines
|
2008-03-16 21:02:24 +00:00
|
|
|
|
syn on " enable syntax highlighting
|
|
|
|
|
set hls " highlight search
|
|
|
|
|
set bg=dark " dark background
|
|
|
|
|
|
2011-02-21 15:17:43 +00:00
|
|
|
|
filetype plugin on
|
|
|
|
|
|
2008-03-16 21:02:24 +00:00
|
|
|
|
au BufNewFile,BufRead *.vala setf cs
|
2014-06-14 17:11:05 +00:00
|
|
|
|
au syntax java set ts=4 sts=4 sw=4
|
2009-02-21 11:31:05 +00:00
|
|
|
|
au BufNewFile,BufRead *.i set ft=swig
|
2013-03-29 14:24:24 +00:00
|
|
|
|
au BufReadCmd *.epub call zip#Browse(expand("<amatch>"))
|
2014-06-14 17:13:27 +00:00
|
|
|
|
au syntax haskell setl omnifunc=necoghc#omnifunc
|
2014-06-14 17:16:07 +00:00
|
|
|
|
let g:necoghc_enable_detailed_browse=1
|
2014-10-09 20:11:42 +00:00
|
|
|
|
let g:haskell_conceal = 0
|
2013-05-19 21:33:53 +00:00
|
|
|
|
|
2014-10-08 14:41:06 +00:00
|
|
|
|
" 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',
|
|
|
|
|
\ },
|
|
|
|
|
\ })
|
|
|
|
|
|
2014-09-28 07:31:52 +00:00
|
|
|
|
" disable annoying "file is read-only" warnings
|
|
|
|
|
au FileChangedRO * set noreadonly
|
|
|
|
|
|
2014-06-14 17:49:56 +00:00
|
|
|
|
se foldlevel=99
|
|
|
|
|
|
2013-12-29 17:32:58 +00:00
|
|
|
|
set vb " turn on the "visual bell" - which is much quieter than the "audio blink"
|
|
|
|
|
set nobackup
|
|
|
|
|
se bs=2
|
2014-03-04 09:28:08 +00:00
|
|
|
|
|
2014-06-01 12:13:23 +00:00
|
|
|
|
let g:ycm_filetype_blacklist = { 'ledger' : 1, 'sql': 1 }
|
2014-06-14 17:13:27 +00:00
|
|
|
|
let g:ycm_semantic_triggers = {'haskell' : ['.']}
|
2014-06-16 09:06:02 +00:00
|
|
|
|
let g:ycm_show_diagnostics_ui = 1
|
2014-06-14 11:26:00 +00:00
|
|
|
|
|
|
|
|
|
let g:jellybeans_background_color = '000000'
|
2014-08-10 07:09:56 +00:00
|
|
|
|
|
|
|
|
|
if &term == "screen" || &term == "screen-bce"
|
|
|
|
|
set t_ts=k
|
|
|
|
|
set t_fs=\
|
|
|
|
|
endif
|
|
|
|
|
set title
|
2014-08-10 07:25:50 +00:00
|
|
|
|
|
|
|
|
|
" unite bindings
|
|
|
|
|
if executable('ag')
|
|
|
|
|
let g:unite_source_grep_command = 'ag'
|
|
|
|
|
let g:unite_source_grep_default_opts = '--noheading --nocolor'
|
2014-08-30 06:16:58 +00:00
|
|
|
|
let g:unite_source_rec_async_command= 'ag --nocolor --nogroup -g ""'
|
2014-08-10 07:25:50 +00:00
|
|
|
|
endif
|
2014-08-12 06:59:40 +00:00
|
|
|
|
call unite#filters#matcher_default#use(['matcher_fuzzy'])
|
|
|
|
|
call unite#filters#sorter_default#use(['sorter_selecta'])
|
2014-09-19 13:54:46 +00:00
|
|
|
|
call unite#custom#profile('default', 'context', {
|
|
|
|
|
\ 'ignorecase': 1,
|
|
|
|
|
\ 'smartcase': 1,
|
|
|
|
|
\ })
|
2014-08-10 07:25:50 +00:00
|
|
|
|
" The prefix key
|
|
|
|
|
nnoremap [unite] <Nop>
|
|
|
|
|
nmap <space> [unite]
|
|
|
|
|
" General purpose
|
|
|
|
|
nnoremap [unite]<space> :Unite -start-insert source<cr>
|
|
|
|
|
" Files
|
|
|
|
|
nnoremap [unite]f :Unite -start-insert file_rec/async<cr>
|
|
|
|
|
" Grepping
|
|
|
|
|
nnoremap [unite]g :Unite grep:.<cr>
|
|
|
|
|
nnoremap [unite]d :Unite grep:.:-s:\(TODO\|FIXME\)<cr>
|
|
|
|
|
" Content
|
|
|
|
|
nnoremap [unite]o :Unite -start-insert -auto-preview outline<cr>
|
|
|
|
|
nnoremap [unite]l :Unite -start-insert line<cr>
|
|
|
|
|
nnoremap [unite]t :Unite -auto-preview -start-insert tag<cr>
|
|
|
|
|
" Quickly switch between recent things
|
|
|
|
|
nnoremap [unite]F :Unite buffer tab file_mru directory_mru<cr>
|
|
|
|
|
nnoremap [unite]b :Unite buffer<cr>
|
|
|
|
|
nnoremap [unite]m :Unite file_mru<cr>
|
|
|
|
|
" Yank history
|
|
|
|
|
nnoremap [unite]y :Unite history/yank<cr>
|