-
Notifications
You must be signed in to change notification settings - Fork 0
Home
raym edited this page Apr 21, 2018
·
9 revisions
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.
- How to Switch to Vim
- Learn Vim Progressively
- "Speak" Vim
- YouTube vid: Learning Vim in a Week
- Use Vim Correctly
- Someone else's resources list
- Why use Vim
- Level Up With VimCasts.org
- Somone's vim plugins list
- Vim on VPS
- .vim directory structure
- Ubuntu docs vim howto
- vim cheat sheet
- vim documentation
- vim spells
To get into configuration, try vim's .vimrc example.
also checkout some plugins:
-
NerdTree
- i don't use this but i know people who do and say it's awesome.
- although some say don't bother: https://shapeshed.com/vim-netrw/
- i'll add more later
- start in bash at the root of your project
vim .
-
j
andk
andEnter
to find your way through the file system
- once you are in a file, use
:E
to get back into the file system and go to a different file - use
:ls
to list the files you have open - 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 - you also have
:bn
and:bp
which stand for buffer next and buffer previous which just cycles through the files in your buffer list - you also have
:bd#
which stands for buffer drop number in which you can drop a file from your:ls
buffer list
- use
:vsp
to split a buffer vertically - use
:sp
to split a buffer horizontally - use
Ctrl
+w
then hitj
,k
,h
,l
to switch to a buffer in one of the four directions - use
Ctrl
+=
to equalize the size of the buffers