Skip to content

Commit

Permalink
Add cursor_shape_config example
Browse files Browse the repository at this point in the history
Describe setting the cursor shape to modal for Vi mode.
List other possible options for the setting.
  • Loading branch information
teroyks authored and jonathanslenders committed Nov 3, 2023
1 parent 6c2d650 commit 945426b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/ptpython_config/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ def configure(repl):
# Vi mode.
repl.vi_mode = False

# Enable the modal cursor (when using Vi mode). Other options are 'Block', 'Underline', 'Beam', 'Blink under', 'Blink block', and 'Blink beam'
repl.cursor_shape_config = 'Modal (vi)'

# Paste mode. (When True, don't insert whitespace after new line.)
repl.paste_mode = False

Expand Down

0 comments on commit 945426b

Please sign in to comment.