Skip to content
raym edited this page Apr 21, 2018 · 9 revisions

Welcome to the selv improvement wiki!

absolute beginners

For learning Vim basics with minimum effort, I recommend going through the tutorial on OpenVim twice a day -- once in the morning and once before sleep. It should take less than 20 minutes to go through the entire tutorial. This will help you install Vim commands into your memory without doing much work. After a few days, you should be proficient enough to actually start using vim to edit some files.

resources

.vimrc

To get into configuration, try vim's .vimrc example.

also checkout some plugins:

what i do (right now)

opening files

  1. start in bash at the root of your project
  2. vim .
  3. j and k and Enter to find your way through the file system

multiple files

  1. once you are in a file, use :E to get back into the file system and go to a different file
  2. use :ls to list the files you have open
  3. use :b# which stands for buffer number, where # is the number that at the beginning of the line for the file in your :ls list
  4. you also have :bn and :bp which stand for buffer next and buffer previous which just cycles through the files in your buffer list
  5. you also have :bd# which stands for buffer drop number in which you can drop a file from your :ls buffer list

split screen

  1. use :vsp to split a buffer vertically
  2. use :sp to split a buffer horizontally
  3. use Ctrl+w then hit j,k,h,l to switch to a buffer in one of the four directions
  4. use Ctrl+= to equalize the size of the buffers