2014-06-04 03:18:29 -04:00
|
|
|
"============================================================"
|
|
|
|
" "
|
2014-07-16 06:46:17 -04:00
|
|
|
" Darkcloud Vim Config: settings to load after "
|
2014-06-04 03:18:29 -04:00
|
|
|
" "
|
2014-06-17 01:49:46 -04:00
|
|
|
" By: Kevin MacMartin (prurigro@gmail.com) "
|
2014-06-04 03:18:29 -04:00
|
|
|
" Website: https://github.com/prurigro/darkcloud-vimconfig "
|
|
|
|
" "
|
|
|
|
" License: MIT "
|
|
|
|
" "
|
|
|
|
"============================================================"
|
|
|
|
|
|
|
|
"load the system version of matchit if another hasn't already been
|
|
|
|
if !exists('g:loaded_matchit') && findfile('plugin/matchit.vim', &rtp) ==# ''
|
|
|
|
runtime! macros/matchit.vim
|
|
|
|
endif
|
|
|
|
|
|
|
|
"disable linebreaks by default or override all of them (default: 1)
|
2014-07-14 10:30:02 -04:00
|
|
|
if !exists("g:disablelinebreaks")
|
|
|
|
let g:disablelinebreaks=1
|
|
|
|
endif
|
2014-06-04 03:18:29 -04:00
|
|
|
if (g:disablelinebreaks == 1)
|
|
|
|
autocmd VimEnter * set tw=0 nolinebreak
|
|
|
|
endif
|
|
|
|
|
|
|
|
"enable omnicompletion for any filetype without that has syntax highlighting
|
|
|
|
if has("autocmd") && exists("+omnifunc")
|
|
|
|
autocmd VimEnter,Filetype * if &omnifunc == ""|setlocal omnifunc=syntaxcomplete#Complete|endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
"FILETPE AND SYNTAX: {{{
|
2014-07-16 06:46:17 -04:00
|
|
|
"filename specific settings
|
|
|
|
autocmd BufEnter,BufRead *taskrc setlocal commentstring=#\ %s
|
|
|
|
autocmd BufEnter,BufRead PKGBUILD setlocal iskeyword-=.
|
|
|
|
|
|
|
|
"filtype specific settings
|
2014-07-16 23:29:44 -04:00
|
|
|
autocmd FileType gitcommit,notes,mail,notmuch,mkd,text,taskreport setlocal nonumber spell nolist wrap linebreak breakat&vim "some defautls for word processing
|
2014-07-15 02:20:47 -04:00
|
|
|
autocmd Filetype mkd setlocal breakat-=* "prevent breaking *s from words to linewrap in markdown
|
2014-06-04 03:18:29 -04:00
|
|
|
autocmd FileType help* wincmd L "help windows always open vertically
|
|
|
|
autocmd FileType help* vertical resize 80 "set the window size to 80 cols
|
|
|
|
autocmd FileType help* setlocal nocursorline "remove the horizontal cursor line
|
2014-07-16 23:29:44 -04:00
|
|
|
autocmd BufEnter,FileType taskreport,qf,help* setlocal nowrap nocursorcolumn "disable text wrapping and the vertical cursor line
|
2014-07-16 06:36:25 -04:00
|
|
|
autocmd BufEnter,FileType extradite setlocal number "enable line numbers in extradite
|
2014-06-04 03:18:29 -04:00
|
|
|
|
|
|
|
"settings for buffers in diff mode
|
|
|
|
autocmd VimEnter,FilterWritePre * if &diff|setlocal nofoldenable|endif
|
|
|
|
autocmd VimEnter * if &diff|wincmd H|endif
|
|
|
|
|
|
|
|
"disable the whitespace plugin for vimfiler
|
|
|
|
autocmd BufEnter,FileType vimfiler hi ExtraWhitespace ctermbg=NONE guibg=NONE
|
|
|
|
"}}}
|