-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathvim-cheatsheets.txt
77 lines (56 loc) · 1.52 KB
/
vim-cheatsheets.txt
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
VIM Cheatsheet
==============
x - delete character
Window Splits
=============
Vertical Split : Ctrl+w + v
Horizontal Split: Ctrl+w + s
Close current windows: Ctrl+w + q
Window Splits
=============
- with the setup in https://github.com/vinodpandey/dotvim
Ctrl + ww to move to the MiniBufExplorer tab
move cursor over the file tab
vertical split - v
horizontal splt -s
Paste
=========
:set paste
Paste content
:set nopaste
Insert new line
===============
o
Undo changes
============
:undolist
g- to 'go back in time'
g+ to 'go forward in time'
goto line number
================
:55 <CR>
Copy/paste between files
========================
Visual mode (Esc + v)
y - yank (copy) marked text
p - put (paste) the clipboard after cursor
NERDTree tutorial:-
Ctrl+n - Show/hide nerdtree window
Bookmark <name> [Bookmark current folder with name as bookmark name]
D Delete the current bookmark
To create files/folder in NERDTree view
--------------------------------------------------------------
press m when on the folder and NERDTree filesystem menu pops up
--------------------------------------------------------------
a add a child node
m move the current node
d delete the current node
node can be a file or a directory. For directory, add a '/' at the end.
i: Open the selected file in a horizontal split window
MiniBufExplorer
======================
Buffers are visible at the top of the screen
Use Ctrl+ww to move to tab
SnipMate
==========
Write text (say doctype) in file with extension html and press Tab to see the sinppet load