-
Notifications
You must be signed in to change notification settings - Fork 0
/
outline
59 lines (51 loc) · 1.27 KB
/
outline
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
First impressions of vi
- very basic
- how do I type?
- how do I quit?
Vim is not vi
- more powerful
- more customisable
- optionally window-based rather than terminal
Some features you'd expect from a modern editor
- tabs
- splits
- spell check
- still a learning curve!
Language-aware
- colour
- indentation
- syntax checking
Not an IDE
- probably wouldn't use for Java etc
- a lot of tasks (inc dynamic languages) don't need/benefit from IDE
- there are ways of combining the two
- but it's a much better text editor (once you can use it)
Why am I claiming it's a better editor?
- inputting vs editing
- inputting is easy
- vim excels at editing
Modes
- start in normal mode
- insert mode
- everyone knows you can enter with a or i
- lots of other ways too
- power is in normal mode
- simple up/down/left/right
- h,j,k,l, but arrows work too!
- words, sentences and paragraphs
- find (text/character)
- combine actions with movement
- yank, delete, paste
- change
- up/downcase
- command
- run commands (duh)
- eg open, save, quit, search and replace
- many many more!
- shell commands
- visual
- select words or lines
- block select
- quadruple-click!
Macros
Vimtutor