Skip to content

Commit 6ef7777

Browse files
committed
Merge pull request python-mode#453 from WayneYe/develop
Revise readme to guide users customize key bindings
2 parents 237e55a + 58bc384 commit 6ef7777

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

README.rst

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ Install with commands:
107107
apt-get update
108108
apt-get install vim-python-mode
109109

110-
If you are getting the message: "The following signatures couldn' be verified because the public key is not available": ::
110+
If you are getting the message: "The following signatures couldn't be verified because the public key is not available": ::
111111

112112
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys B5DF65307000E266
113113

@@ -126,7 +126,7 @@ If your python-mode doesn't work:
126126

127127
vim -u <path_to_pymode>/debug.vim
128128

129-
And try to repeat your case. If no error occurs, seems like problem isnt in the
129+
And try to repeat your case. If no error occurs, seems like problem isn't in the
130130
plugin.
131131

132132
2. Type `:PymodeTroubleshooting`
@@ -136,6 +136,21 @@ creating a `new github issue <https://github.com/klen/python-mode/issues/new>`_
136136
if one does not already exist for the problem).
137137

138138

139+
Customization
140+
=============
141+
142+
You can override the default key bindings by redefining them in your `.vimrc`, for example: ::
143+
144+
" Override go-to.definition key shortcut to Ctrl-]
145+
let g:pymode_rope_goto_definition_bind = "<C-]>"
146+
147+
" Override run current python file key shortcut to Ctrl-Shift-e
148+
let g:pymode_run_bind = "<C-S-e>"
149+
150+
" Override view python doc key shortcut to Ctrl-Shift-d
151+
let g:pymode_doc_bind = "<C-S-d>"
152+
153+
139154
Documentation
140155
=============
141156

0 commit comments

Comments
 (0)