Skip to content

radiaku/vimrc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VIM

Lightweight Vimrc Runtime

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.

Requirements

  • git and curl (used to bootstrap vim-plug)
  • Vim 8+ (or Neovim 0.5+; optional)

Install

  1. Clone the repo:
git clone https://github.com/radiaku/vimrc ~/.vimrc_runtime
  1. Create or overwrite ~/.vimrc with 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
  1. Open Vim. On first launch, plugins will install automatically. If not, run:
:PlugInstall
  1. Reload the config (or restart Vim):
:source ~/.vimrc

Windows

On 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
EOF

Notes:

  • Ensure curl is available in PATH so plugin manager bootstrapping in default_config.vim works.
  • Paths using ~/.vimrc_runtime are expanded by Vim; you can keep forward slashes.

Customize

  • Add your personal settings to ~/.vimrc_runtime/my_configs.vim.
  • Keep ~/.vimrc as-is to avoid conflicts during updates.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published