This is my custom Vim configuration for personal use — a lightweight setup intended for servers or environments where Neovim may not be available.
Thanks to amix/vimrc for the inspiration.
gitandcurl(used to bootstrapvim-plug)- Vim 8+ (or Neovim 0.5+; optional)
- Clone the repo:
git clone https://github.com/radiaku/vimrc ~/.vimrc_runtime- Create or overwrite
~/.vimrcwith the following:
cat << 'EOF' > ~/.vimrc
" DO NOT EDIT THIS FILE
" Add your own customizations in ~/.vimrc_runtime/my_configs.vim
set runtimepath+=~/.vimrc_runtime
let data_dir = expand('~/.vimrc_runtime')
source ~/.vimrc_runtime/vimrcs/default_config.vim
if !empty(glob(data_dir . '/plugged/*'))
source ~/.vimrc_runtime/vimrcs/basic.vim
source ~/.vimrc_runtime/vimrcs/extended.vim
source ~/.vimrc_runtime/vimrcs/plugin_config.vim
endif
EOF- Open Vim. On first launch, plugins will install automatically. If not, run:
:PlugInstall- Reload the config (or restart Vim):
:source ~/.vimrcOn Windows, create _vimrc instead of .vimrc:
- Clone the repo:
git clone https://github.com/radiaku/vimrc "$env:USERPROFILE\.vimrc_runtime"- Create
_vimrc(PowerShell):
$vimrc = @'
" DO NOT EDIT THIS FILE
" Add your own customizations in ~/.vimrc_runtime/my_configs.vim
set runtimepath+=~/.vimrc_runtime
let data_dir = expand('~/.vimrc_runtime')
source ~/.vimrc_runtime/vimrcs/default_config.vim
if !empty(glob(data_dir . '/plugged/*'))
source ~/.vimrc_runtime/vimrcs/basic.vim
source ~/.vimrc_runtime/vimrcs/extended.vim
source ~/.vimrc_runtime/vimrcs/plugin_config.vim
endif
'@
Set-Content -Path "$env:USERPROFILE\_vimrc" -Value $vimrc -Encoding ASCII- Or using Git Bash/WSL, the original command works (creates
.vimrc):
cat << 'EOF' > ~/.vimrc
" DO NOT EDIT THIS FILE
" Add your own customizations in ~/.vimrc_runtime/my_configs.vim
set runtimepath+=~/.vimrc_runtime
let data_dir = expand('~/.vimrc_runtime')
source ~/.vimrc_runtime/vimrcs/default_config.vim
if !empty(glob(data_dir . '/plugged/*'))
source ~/.vimrc_runtime/vimrcs/basic.vim
source ~/.vimrc_runtime/vimrcs/extended.vim
source ~/.vimrc_runtime/vimrcs/plugin_config.vim
endif
EOFNotes:
- Ensure
curlis available inPATHso plugin manager bootstrapping indefault_config.vimworks. - Paths using
~/.vimrc_runtimeare expanded by Vim; you can keep forward slashes.
- Add your personal settings to
~/.vimrc_runtime/my_configs.vim. - Keep
~/.vimrcas-is to avoid conflicts during updates.
