Vim Bootstrap provides a simple method for generating .vimrc configuration files for Vim, NeoVim, NeoVim-Qt, MacVim and GVim.
Want to generate your vim/neovim file? Access here!
The distribution is designed to work with Vim >= 8 and neovim.
$ brew install git ctags
$ sudo apt-get install git exuberant-ctags ncurses-term curl
Gentoo
$ sudo emerge --ask dev-util/ctags sys-libs/ncurses dev-vcs/git dev-python/pyflakes net-misc/curl
Arch Linux via pacman
$ sudo pacman -S git ctags ncurses curl
Fedora
$ sudo dnf install ncurses-devel git ctags curl
$ sudo zypper in ncurses-devel git ctags curl
# pkg install git p5-Parse-ExuberantCTags ncurses curl
$ pip install flake8 jedi
$ pip2 install --user --upgrade neovim
$ pip3 install --user --upgrade neovim
$ npm install -g elm-test
$ npm install -g elm-oracle
$ npm install -g elm-format@exp
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
$XDG_CONFIG_HOME/nvim/init.vim
if you use NeoVimvim: mv ~/Downloads/generate.vim ~/.vimrc
neovim: mv ~/Downloads/generate.vim $XDG_CONFIG_HOME/nvim/init.vim
vim
Vim-bootstrap generator can accept URL params via request as example below.
curl 'https://vim-bootstrap.com/generate.vim' --data 'editor=vim&frameworks=vuejs&langs=javascript&langs=php&langs=html&langs=ruby' > ~/.vimrc
:VimBootstrapUpdate (thanks to @sherzberg)
:PlugInstall
You can run vim-bootstrap Go package to generate a vimrc file, just download it:
go get github.com/editor-bootstrap/vim-bootstrap
cd $GOPATH/src/github.com/editor-bootstrap/vim-bootstrap
go build
Inside vim-bootstrap folder cd vim-bootstrap
use vim-bootstrap
module (file) like this example:
./vim-bootstrap -langs=python,lua,ruby,javascript,haskell -frameworks vuejs -editor=vim > ~/.vimrc
For more instructions run vim-bootstrap -h
vim-bootstrap is also available on openSUSE on both Leap 42.2/42.3 and Tumbleweed. Leap versions must add devel:tools repository before, while Tumbleweed users should have vim-bootstrap in the default repository without the need to add any extra repository.
Leap 42.2
$ sudo zypper ar -f http://download.opensuse.org/repositories/devel:/tools/openSUSE_Leap_42.2/ devel:tools
$ sudo zypper ref
$ sudo zypper in vim-bootstrap
Leap 42.3
$ sudo zypper ar -f http://download.opensuse.org/repositories/devel:/tools/openSUSE_Leap_42.3/ devel:tools
$ sudo zypper ref
$ sudo zypper in vim-bootstrap
Tumbleweed
$ sudo zypper ref
$ sudo zypper in vim-bootstrap
Create a folder inside generate/vim_template/themes/
with the name of your theme.
mkdir generate/vim_template/themes/my_theme
Inside this folder, add a file called mytheme.vim
with colorscheme instruction (optionally other configs).
echo "colorscheme mytheme" > generate/vim_template/themes/my_theme/mytheme.vim
Add a .bundle
extension file with instructions of how to install theme.
echo "Plug username/mytheme" > generate/vim_template/themes/my_theme/mytheme.vim.bundle
Submit a PR and when approved new theme was added.
It's highly recommended to add customizations in a separate file. This way, you can maintain the original vim-bootstrap generated vimrc file and subsequent updates.
For Vim users, the files available for customization are ~/.vimrc.local
and ~/.vimrc.local.bundles
. The former handles general configuration while the latter handles external Vim plugins through vim-plug
.
NeoVim users can also customize their configuration by using $XDG_CONFIG_HOME/nvim/local_init.vim
and $XDG_CONFIG_HOME/nvim/local_bundles.vim
.
Visit the following sites to learn more about Vim: