My current settings here offer:
- Basic text editor:
vim
with light weight simple settings as presented in the "master" branch here as .vimrc. - IDE like text editor:
nvim
with fancy Lua based LazyVim using its starter settings with my minimalist twist.
No more "git submodule ...
" nor ":packadd! ...
", here.
If you are looking of my old page on them, please see "old" branch here. This was fancy IDE-like setting with static code analysis with Vim8.
I know it is tempting to have many fancy features and use newer versions. But this makes me exposed to bugs. I want stable work environment.
In order to satisfy these 2 conflicting needs, I set up 2 primary editor environments as below:
- Install Vim from Debian repo
- Install Nvim from my private deb-package at https://osamuaoki.github.io/http/.
- Run followings:
$ apt update && apt install vim
$ cd path/to
$ git clone https://github.com/osamuaoki/dot-vim
$ cp dot-vim/.vimrc ~/.vimrc
$ cp dot-vim/.gvimrc ~/.gvimrc
$ cat dot-vim/70_editor.sh >>~/.bashrc
$ mkdir -p ~/.config && cd ~/.config/nvim
$ git clone https://github.com/LazyVim/starter ~/.config/nvim
With these:
vim
: Simple reasonable setup with-u ~/.vimrc
with Vimnvim
: LazyVim setup with Nvim with my minimalist twist
(I don't use my previous complicated configuration. No more ~/.vim/*
)
More elaborate explanations are available at:
In order to make minimalist customization in my ~/.vimrc
, I have removed many
customization tricks mentioned in my old posts.
Remaining features are:
- Use bare Vim 8+ and NeoVim 0.8+ features only
- Minimal key binding overrides (mostly emulating LazyVim)
- Single file configuration without external package
- Spellcheck and syntax doesn't interfere readability
- Window selection moves with CTRL-{H,J,K,L}
- Cursor after search at the center of screen
I also made modifications to the upstream LazyVim starter code repo and keep it at my customized minimalist LazyVim starter code repo.
When I break my Vim start up code, I can always use vi -N -u NORC
.
Here are a few insightful recommendations for the best practices I referenced for setting up Vim.
- Seven habits of effective text editing by Bram Moolenaar
- vim-galore
#vim RecommendationsNo more accessible