Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix pyvimrc example #115

Merged
merged 1 commit into from
Oct 1, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions examples/config/pyvimrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Pyvim configuration. Save to file to: ~/.pyvimrc
"""
from prompt_toolkit.filters import ViInsertMode
from prompt_toolkit.key_binding.input_processor import KeyPress
from prompt_toolkit.key_binding.key_processor import KeyPress
from prompt_toolkit.keys import Keys
from subprocess import call
import six
Expand Down Expand Up @@ -53,7 +53,7 @@ def configure(editor):

(imap jj <esc>)
"""
event.cli.input_processor.feed(KeyPress(Keys.Escape))
event.cli.key_processor.feed(KeyPress(Keys.Escape))

@editor.add_key_binding(Keys.F9)
def save_and_execute_python_file(event):
Expand All @@ -69,7 +69,7 @@ def configure(editor):
return
else:
editor_buffer.write()

# Now run the Python interpreter. But use
# `CommandLineInterface.run_in_terminal` to go to the background and
# not destroy the window layout.
Expand Down