This my repository to learn and configure VIM. This repitory consist of 3 parts:
-
Learn VIM
-
VIM cheatsheet
-
VIM config
I used vim for simple editing commands. For large project (Python, Latex), I prefer to use VScode.
- VIMtutor First, you should install vim and vim-runtime. In Ubuntu,
$ sudo apt install vim vim-runtime
$ vimtutor
Follow the steps there, repeat until you master it.
- Pro-VIM-Tips This Example from Yes, I Know IT / It's FOSS article https://itsfoss.com/?p=14419
Each example come with the original text (.orig) and a Bash script (.sh) invoking Vim with the command illustrated in the article.
After processing, the script launches vimdiff
to compare
before/after files.
You can quit vimdiff using :qa!
There are two cheatsheet available in the cheatsheet
directory:
- vim-cheatsheet.md
- vim-cheat-sheet-en.pdf
Reference for the cheatsheet.md:
In the directory config
, there is a .vimrc
file that I used to configure my VIM.
Mostly I works on Python, Latex and Octave, therefor the config is intended to
optimize those languages. I modify these .vimrc
file from fisa-vim-config
repository.
The detail is given in the directory.
- 2019-06-28:
- Update to VIM 8
- install Kite for python completion
- 2019-09-12:
- Use fisadev to make .vimrc (disable colorscheme and neocomplcache)
- 2019-12-20:
- Back to plain .vimrc (only use Kite, vimtex, etc)
- 2021-05-11:
- simplify; add information for using vim for simple editing