mirror of
https://oauth2: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@github.com/m1ngsama/chopsticks.git
synced 2026-05-10 19:10:59 +08:00
- Guard against double-sourcing when exrc loads CWD .vimrc (saves ~8ms) - Lazy-load EasyMotion, undotree, previm, goyo, limelight (on-demand) - Lazy-load language syntax plugins (for: filetype) - Enable lsp_settings_lazyload (defer server init to VimEnter) - Skip unused built-in plugins (2html, gzip, tar, zip, vimball, etc.) - Remove redundant filetype/syntax calls (plug#end already enables them) - Add shortmess+=I to skip intro screen
19 lines
647 B
VimL
19 lines
647 B
VimL
" env.vim — environment detection (must load first)
|
|
|
|
set nocompatible
|
|
|
|
let g:is_tty = empty($TERM) || $TERM ==# 'dumb' || $TERM =~# 'linux'
|
|
\ || $TERM =~# 'screen' || &term =~# 'builtin'
|
|
let g:has_true_color = ($COLORTERM ==# 'truecolor' || $COLORTERM ==# '24bit')
|
|
|
|
" Skip built-in plugins we never use
|
|
let g:loaded_2html_plugin = 1
|
|
let g:loaded_getscriptPlugin = 1
|
|
let g:loaded_gzip = 1
|
|
let g:loaded_logipat = 1
|
|
let g:loaded_rrhelper = 1
|
|
let g:loaded_tarPlugin = 1
|
|
let g:loaded_vimballPlugin = 1
|
|
let g:loaded_zipPlugin = 1
|
|
let g:loaded_tutor_mode_plugin = 1
|
|
let g:loaded_spellfile_plugin = 1
|