configs  Artifact [7d23486aee]

Artifact 7d23486aee03f4159bd3c5fd77dd2455d77e23e353fdc94fc36733064f963e7d:

  • File vim/vimrc — part of check-in [8982597fa0] at 2024-08-18 16:43:51 on branch trunk — vim: Disable modelines (user: js size: 1611)

set runtimepath-=~/.vim
set runtimepath-=~/.vim/after
exe 'set runtimepath=$XDG_CONFIG_HOME/vim,' . &runtimepath .
\   ',$XDG_CONFIG_HOME/vim/after'
if v:version >= 800
	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//
endif

if v:version >= 800
	source $VIMRUNTIME/defaults.vim
else
	source $VIMRUNTIME/vimrc_example.vim
endif
set backup
if v:version >= 703
	set undofile
end
set hlsearch

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

set cinoptions=+4,(4,u4,w4
if v:version >= 703
	set colorcolumn=81
end
highlight ColorColumn ctermbg=235
let c_space_errors=1
set ignorecase
set smartcase
set nrformats=hex
set mouse=
set path+=**

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=3 sw=3 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