GithubHelp home page GithubHelp logo

Changing cursor shape in vim about xst HOT 8 CLOSED

gnotclub avatar gnotclub commented on August 25, 2024
Changing cursor shape in vim

from xst.

Comments (8)

actionless avatar actionless commented on August 25, 2024 1

@iynaix in xst itself i have default value, xterm-256color, in tmux -- screen-256color

(if it would be helpful for anybody)

@masaeedu regarding caret shape in vim: https://github.com/actionless/dotfiles/blob/master/vim/.vim/caret_shape.vim

from xst.

actionless avatar actionless commented on August 25, 2024

using tmux?

from xst.

vikigenius avatar vikigenius commented on August 25, 2024

Okay, solved it need to use the tmux escape sequence. Works fine now, although, going back to normal mode causes a slight delay.

from xst.

actionless avatar actionless commented on August 25, 2024

what kind of delay?

from xst.

vikigenius avatar vikigenius commented on August 25, 2024

Oh, i don't think it's too much trouble. But changing from blinking block to blinking ibeam when I go from normal to insert is very quick, but going back to normal takes more time.

from xst.

actionless avatar actionless commented on August 25, 2024

i think redraw should be tied to blinking rate or keypress

from xst.

masaeedu avatar masaeedu commented on August 25, 2024

@vikigenius What did you do to get it working using the tmux escape sequence?

from xst.

iynaix avatar iynaix commented on August 25, 2024

@masaeedu Spent wayyyyyy too long trying to figure this out. I added st.termname: st-256color in my .Xresources and it works! I didn't have to make any modifications to my vimrc.

I may be completely wrong here, but my understanding is that st doesn't report the termcaps for cursor shape correctly. Vim has exceptions for such terminals and overrides their termcaps. Masquerading as st now allows vim to apply the fix.

from xst.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.