-
Notifications
You must be signed in to change notification settings - Fork 0
/
help_vim
124 lines (84 loc) · 4.47 KB
/
help_vim
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
## Fast Access
<F2> : Enable/Disable highlight the search
<F3> : display a buffer displaying the yankring's contents (same a :YRShow). YankRing.vim plugin.
<F4> : NumbersToggle
Shift+w : Select word to search
Ctrl+n : NERDTreeToggle
Ctrl+w+v : Vertical windows
Ctrl+w+s : Horizontal windows
Ctrl+w+q : Close current window
Ctrl+w,Ctrl+w : Switch between windows
Ctrl+w+[j,k,h,l] : Switch to adjacent window (intuitively up, down, left, right)
Tab or Ctrl+p : Supertab, for all your insert completion needs
zc/zo : To close a fold and to open one. See :help fold-commands (VISUAL MODE)
<space> : Press <Space> to toggle the current fold open/closed.
,l : Use <leader>l to toggle display of whitespace
,N : Toggle line numbers. (it does not work if you use numbers.vim plugin and your are configured :NumbersOnOff)
jk : Switch of insert mode to normal mode
,, : save and exit from normal and insert mode (same as :x)
% : matching for HTML, LaTeX, and many other languages. Matchit plugin.
" : to open NERDTree
* navigate windows
Ctrl + s : to save, from normal and insert mode
Ctrl + d : to save and exit, from normal and insert mode
Ctrl + q : to quit discarding changes, from normal and insert mode (same a :qa!)
Q : Quit within normal mode (same a :q)
Ctrl + l : left window
Ctrl + h : rigth window
Ctrl + j : button window
Ctrl + k : top window
and navigate windows with meta+arrows:
<M-Right>
<M-Left>
<M-Up>
<M-Down>
* navigations from tabs
tn :tabn<CR>
tp :tabp<CR>
tm :tabm
tt :tabnew
ts :tab split<CR>
<C-S-Right> :tabn<CR>
<C-S-Left> :tabp<CR>
"To display the currently defined insert mode maps, use the 'imap' command without any argument:
":imap
# ---------- Syntactic Plugin -----------
<leader>e : show list of errors and warnings on the current file
# ---------- Python-mode Plugin -----------
K : show documentation for current word by `pydoc`.
,r : binds keys to run python code
,b : breakpoints
<C-C>g : press on any object in your code you will be moved to definition.
<C-Space> : code completion and autocompletion when typing a period.
Commands:
:PymodeDoc <args> : show documentation
## Vim motion
Support Vim motion (See |operator|) for python objects (such as functions,
class and methods).
`C` — means class
`M` — means method or function
*pymode-motion-keys*
================ ============================
Key Command
================ ============================
[[ Jump to previous class or function (normal, visual, operator modes)
]] Jump to next class or function (normal, visual, operator modes)
[M Jump to previous class or method (normal, visual, operator modes)
]M Jump to next class or method (normal, visual, operator modes)
aC Select a class. Ex: vaC, daC, yaC, caC (normal, operator modes)
iC Select inner class. Ex: viC, diC, yiC, ciC (normal, operator modes)
aM Select a function or method. Ex: vaM, daM, yaM, caM (normal, operator modes)
iM Select inner function or method. Ex: viM, diM, yiM, ciM (normal, operator modes)
================ ============================
## Completion
By default you can use <Ctrl-Space> for autocompletion. The first entry will
be automatically selected and you can press <Return> to insert the entry in
your code. <C-X><C-O> and <C-P>/<C-N> works too.
## Undo/Redo changes
Commands:
:PymodeRopeUndo -- Undo last changes in the project
:PymodeRopeRedo -- Redo last changes in the project
# Plugins:
YankRing.vim : Maintains a history of previous yanks, changes and deletes. Help ":h yankring.txt" and ":h yankring-tutorial" or http://www.vim.org/scripts/script.php?script_id=1234
Matchit.zip : extended % matching for HTML, LaTeX, and many other languages. help ":sh matchit.txt" http://www.vim.org/scripts/script.php?script_id=39
Surround.vim : is all about "surroundings": parentheses, brackets, quotes, XML tags, and more.