unlet x
unlet y
+
""" vim-only defaults
if !has('nvim')
" neovim defaults are already set
autocmd BufRead * set autoindent
endif
+
+""" package config
+"" suda
+" https://github.com/lambdalisue/vim-suda/issues/32#issuecomment-829608925
+if ! &diff
+ let g:suda_smart_edit = 1
+endif
+
+
""" styling
" nice default theme
colorscheme murphy
autocmd VimEnter,WinNew * set list
set listchars=tab:├─,extends:»,precedes:«,space:·,trail:∙,nbsp:■
+
""" editor
" always save undo file for all file buffers
autocmd BufRead * set undofile
" explicitly use modeline, even on systems where it's disabled by system vimrc
-autocmd BufRead set modeline
+autocmd BufRead * set modeline
" should be default disabled but just in case
set nomodelineexpr
let g:EditorConfig_enable_for_new_buf = 1
"" syntax
-autocmd FileType todo set colorcolumn=0
+autocmd Syntax php syn clear phpHereDoc phpNowDoc
"" mappings
" use more accessible escapes, as C-n and C-o are shadowed by some terminals