forked from prompt-toolkit/pyvim
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathhelp.py
More file actions
52 lines (40 loc) · 1.65 KB
/
help.py
File metadata and controls
52 lines (40 loc) · 1.65 KB
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
HELP_TEXT = """\
PyVim Help
==========
PyVim is a Pure Python Vim Clone.
Commands for directory
------------------------------
- :cd Change directory
- :pwd Print working directory
Commands for tab and window
------------------------------
- :tabe :tabedit :tabnew Create new tab page
- :tabclose :tabc Close tab page
- :tabnext :tabn Net tab
- :tabprevious :tabp Previsou tab
- :sp :split Split window horizontally
- :vsp :vsplit Split window vertically
- :new Create new buffer
- :vnew Create new buffer, splitting vertically
- :only Keep only the current window
- :hide Hide the current window
Keybinds for tab and window
------------------------------
- g t Next tab page
- g T Previous tab page
- Ctrl+w Ctrl+w Next window
- Ctrl+w n Split horizontaly
- Ctrl+w v Split vertically
Keybinds in autocompletion
------------------------------
When editing Python with Jedi enabled, an autocomplete window appears and follows these key bindings
- Ctrl+n Select next candidate
- Ctrl+p Select previsous candidate
- Tab Close autocompletion window
- Ctrl+c Cancel completion and close autocompletion window
Thanks to
---------------
- Pyflakes: the tool for checking Python source files for errors.
- Jedi: the Python autocompletion library.
- Pygments: Python syntax highlighter.
- prompt_toolkit: the terminal UI toolkit."""