Skip to content

osamuaoki/dot-vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dot-vim

My current settings here offer:

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.

My 2 text-ediror environments

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:

 $ 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 Vim
  • nvim: 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:

Minimalist features

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.

Last resort

When I break my Vim start up code, I can always use vi -N -u NORC.

Further customization idea

Here are a few insightful recommendations for the best practices I referenced for setting up Vim.

About

My minimal ~/.vim file

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published