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.

34 lines
694 B
VimL

5 years ago
syn on
set ai
set et
set ts=4
set sw=4
set sts=4
set bg=dark
5 years ago
" add comment to next line when using 'o'
set formatoptions+=o
" re-open at last cursor line
5 years ago
if has("autocmd")
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
endif
5 years ago
" either works, requires expand()
"let MYLOCALVIMRC = "~/.vimrc.local"
"let MYLOCALVIMRC = "$HOME/.vimrc.local"
" Function to source only if file exists {
function! SourceIfExists(file)
if filereadable(expand(a:file))
exe 'source' a:file
endif
endfunction
" }
call SourceIfExists("~/.vimrc.local")
call SourceIfExists("~/.vim/colors.vim")
if has('gui_running')
call SourceIfExists("~/.gvimrc.local")
endif