Comments (5)
Hi @ftpd
In fact, this plugin has provided an option for configurating the cursor style. And you can find out all the configuration details in the head of source code:
Lines 25 to 29 in aad07d8
and
Lines 119 to 125 in aad07d8
As mention above, you can set the cursor style in insert mode to a beam as below in your .zshrc
file:
# Set the sursor stlye of defferent vi modes
if [[ ${TERM:0:5} == 'xterm' ]]; then
ZVM_VI_INSERT_MODE_CURSOR=$ZVM_CURSOR_XTERM_BLOCK
else
ZVM_VI_INSERT_MODE_CURSOR=$ZVM_CURSOR_BLOCK
fi
Thanks and regards
from zsh-vi-mode.
Hi @ftpd
The latest commit ( f9b508d ) has provided some options for users to custom the cursor style for better terminal compatibility.
- You can set your cursor style for different vi mode:
# ZVM_NORMAL_MODE_CURSOR:
# the prompt cursor in normal mode
#
# ZVM_INSERT_MODE_CURSOR:
# the prompt cursor in insert mode
#
# ZVM_VISUAL_MODE_CURSOR:
# the prompt cursor in visual mode
#
# ZVM_VISUAL_LINE_MODE_CURSOR:
# the prompt cursor in visual line mode
- And the below cursor styles are supported:
ZVM_CURSOR_BLOCK
ZVM_CURSOR_UNDERLINE
ZVM_CURSOR_BEAM
ZVM_CURSOR_BLINKING_BLOCK
ZVM_CURSOR_BLINKING_UNDERLINE
ZVM_CURSOR_BLINKING_BEAM
- Custom your cursor style is easy as below:
ZVM_INSERT_MODE_CURSOR=$ZVM_CURSOR_BLOCK
ZVM_NORMAL_MODE_CURSOR=$ZVM_CURSOR_BLINKING_UNDERLINE
Thanks and regards
from zsh-vi-mode.
Thanks - I haven't seen it in Readme, so I somehow thought it's not supported. I should take a look into code ;-)
I'm closing this issue as fixed now.
from zsh-vi-mode.
Hi @ftpd
😄 You are welcome. And you can star this repository for the updates and features in the future. Currently I'm focusing on this plugin and making it better and better.
Thanks and regards.
from zsh-vi-mode.
Wow, neat! Thanks!
from zsh-vi-mode.
Related Issues (20)
- 3-letter month names change to full month names when iterating over May
- zsh-vi-mode breaks zsh-syntax-highlighting HOT 3
- Switching modes make above line chomped HOT 1
- Switching modes doesn't change the mode indicator HOT 1
- Feature request: Add a way to replace every instance of a substring on the current line HOT 1
- Data Pasted Twice From Clipboard HOT 1
- Switching between insert and normal mode clears the previous line on macOS HOT 10
- Selecting surrounded text object not working with short key timeout
- Inserting completions erases prompt HOT 4
- ZVM conflicts with bracketed paste
- zvm_find_bindkey_widget:bindkey:22: no such keymap `j' HOT 7
- Slow on 'J' in NORMAL mode HOT 1
- CTRL+R is overwritten HOT 3
- Switching modes don't trigger an auto reset prompt HOT 1
- automatically changes to normal mode when new shell is opened HOT 2
- Latest commit causes new sessions to start in normal mode HOT 1
- Use vi-mode with history-search? HOT 2
- Custom cursor colors don't work in Kitty
- More of a question than an issue, is it possible to go past the line you write on with this plugin ?
- remap functionality lost
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zsh-vi-mode.