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)
|
2014-08-10 06:11:37 -04:00
|
|
|
autocmd VimEnter * set tw=0
|
2014-06-04 03:18:29 -04:00
|
|
|
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-21 02:36:50 -04:00
|
|
|
"set given filenames to various filetypes
|
2014-08-11 00:58:56 -04:00
|
|
|
autocmd BufNewFile,BufRead *.aspx,*.asmx,*.ascx,*.master setlocal ft=aspnet
|
|
|
|
autocmd BufNewFile,BufRead *.gradle setlocal ft=groovy
|
|
|
|
autocmd BufNewFile,BufRead *muttrc setlocal ft=muttrc
|
|
|
|
autocmd BufNewFile,BufRead *vimpagerrc setlocal ft=vim
|
|
|
|
autocmd BufNewFile,BufRead *ircd.conf setlocal ft=json
|
|
|
|
autocmd BufNewFile,BufRead pacman.conf,yaourtrc setlocal ft=sh
|
|
|
|
autocmd BufNewFile,BufRead cjdroute.conf,cjdmaid.conf setlocal ft=json
|
2014-07-21 02:36:50 -04:00
|
|
|
|
2014-07-16 06:46:17 -04:00
|
|
|
"filename specific settings
|
|
|
|
autocmd BufEnter,BufRead PKGBUILD setlocal iskeyword-=.
|
|
|
|
|
|
|
|
"filtype specific settings
|
2014-08-10 06:11:37 -04:00
|
|
|
autocmd FileType gitcommit,notes,mail,notmuch,text,taskreport setlocal nonumber spell nolist wrap linebreak breakat&vim "some defautls for word processing
|
|
|
|
autocmd Filetype mkd,mkdc setlocal nonumber spell nolist wrap linebreak breakat&vim breakat-=* breakat-=. "set some defaults for 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-26 01:44:09 -04:00
|
|
|
autocmd FileType tmux,taskrc setlocal commentstring=#\ %s "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
|
|
|
|
"}}}
|