vi mode-dependent cursor shape
See original GitHub issueI would like radian to have a beam cursor (|
) in vi insert mode and a block cursor in vi navigation (normal) mode.
Since both radian and IPython use prompt-toolkit, I think it will be helpful to link to the relevant prompt-toolkit issue.
By including the code from the issue in my ipython_config.py
file, i was able to set up IPython with a vi mode-dependent cursor:
- Insert:
- Navigation:
How could I do something similar in my .radian_profile
?
Issue Analytics
- State:
- Created 3 years ago
- Comments:7
Top Results From Across the Web
How to change cursor shape depending on VI mode in Bash?
SOLUTION: I am posting my answer to my own question here as recommended. This solution works for Bash 4.4+, since, starting with that ......
Read more >Configuring the cursor - Vim Tips Wiki - Fandom
Using gvim with the defaults, the cursor shape is a block when in n-v-c modes (normal mode, or visual selection mode, or command...
Read more >How to make the cursor shape dependent on the current Vim ...
How to make the cursor shape dependent on the current Vim mode using iTerm2 on OS X and zsh. Save this question. Show...
Read more >Change Your Vim Cursor from a Block to Line in ... - YouTube
A multi-terminal compatible way to switch your Vim cursor depending on which mode you're in.Hit the subscribe button to receive more videos ...
Read more >Change Your Vim Cursor from a Block to Line ... - Nick Janetakis
This is a huge quality of life enhancement if you're using terminal Vim. Without this it's tricky to tell if you're within insert...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Wow, I just pasted the relevant code from my
ipython_config.py
intoradian/settings.py
and it works! 😄Is settings.py the right place for it? Or is it better for this to be handled by a config file?
Should I submit a pull request? I think everyone who uses the radian vi mode will want this.
Hey @mskar,
Thanks a lot for detailed steps. The issue was my terminal forcing a cursor shape on top of radian. This now works for me