configs  Artifact [64c538eebe]

Artifact 64c538eebe89ee7650c8a06cddc77e071670f23babd5b24bab606a9a58aeae0c:

  • File vim/vimrc — part of check-in [0a2da42b3e] at 2020-02-26 23:09:17 on branch trunk — vimrc: Place swap, undo and backup in ~/.cache (user: js size: 1361)

set runtimepath+=$XDG_CONFIG_HOME/vim,$XDG_CONFIG_HOME/vim/after
call mkdir($XDG_CACHE_HOME . "/vim/swap", "p")
call mkdir($XDG_CACHE_HOME . "/vim/backup", "p")
call mkdir($XDG_CACHE_HOME . "/vim/undo", "p")
set viminfofile=$XDG_CACHE_HOME/vim/viminfo
set directory=$XDG_CACHE_HOME/vim/swap//
set backupdir=$XDG_CACHE_HOME/vim/backup//
set undodir=$XDG_CACHE_HOME/vim/undo//

source $VIMRUNTIME/vimrc_example.vim

set t_Co=256
set background=dark
let g:inkpot_black_background=1
colorscheme inkpot

set cinoptions=+4,(4,u4,w4
set colorcolumn=81
highlight ColorColumn ctermbg=235
let c_space_errors=1
set ignorecase
set smartcase
set modeline
set modelines=1000
set nrformats=hex
set mouse=

au BufNewFile,BufRead *.c :se ft=c.doxygen
au BufNewFile,BufRead *.cs :se ts=4 sw=4
au BufNewFile,BufRead *.fish :se ts=4 sw=4 et
au BufNewFile,BufRead *.h :se ft=objc.doxygen
au BufNewFile,BufRead *.m :se ft=objc.doxygen
au BufNewFile,BufRead *.mm :se ft=objcpp
au BufNewFile,BufRead *.pas :se ts=2 sw=2 et
au BufNewFile,BufRead *.py :se ts=4 sw=4 et
au BufNewFile,BufRead *.rb :se ts=2 sw=2 et
au BufNewFile,BufRead *.swift :se ts=4 sw=4 et
au BufNewFile,BufRead *.v :se ts=4 sw=4 et
au BufNewFile,BufRead *.vhd :se ts=4 sw=4 et
au BufNewFile,BufRead *.xml :se ts=2 sw=2 et
au BufNewFile,BufRead */LLVM/* :se ts=2 sw=2 et
au BufNewFile,BufRead */haiku/* :se ts=4 sw=4