You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
if filereadable(expand("$VIMRUNTIME/defaults.vim"))
|
|
|
|
source $VIMRUNTIME/defaults.vim
|
|
|
|
endif
|
|
|
|
if !empty($JSSHHOME)
|
|
|
|
let localdir = $JSSHHOME
|
|
|
|
else
|
|
|
|
let localdir = "/tmp"
|
|
|
|
endif
|
|
|
|
if has("vms")
|
|
|
|
set nobackup " do not keep a backup file, use versions instead
|
|
|
|
else
|
|
|
|
set backup " keep a backup file (restore to previous version)
|
|
|
|
if has('persistent_undo')
|
|
|
|
set undofile " keep an undo file (undo changes after closing)
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
set autoindent
|
|
|
|
if has('syntax') && has('eval')
|
|
|
|
packadd! matchit
|
|
|
|
endif
|
|
|
|
set number
|
|
|
|
set laststatus=2
|
|
|
|
set ignorecase
|
|
|
|
set smartcase
|
|
|
|
set t_Co=256
|
|
|
|
let &undodir=localdir . "//"
|
|
|
|
let &directory=localdir . "//"
|
|
|
|
let &backupdir=localdir . "//"
|
|
|
|
set mouse=""
|
|
|
|
set shiftwidth=4
|
|
|
|
set tabstop=4
|
|
|
|
autocmd FileType yaml setlocal ai ts=2 sw=2 et
|
|
|
|
autocmd FileType sh nmap ,<Space> :!bash %<CR>
|
|
|
|
autocmd FileType python nmap ,<Space> :!python3 %<CR>
|
|
|
|
autocmd FileType php nmap ,<Space> :!php %<CR>
|