Git Product home page Git Product logo

Comments (4)

kana avatar kana commented on May 17, 2024

I couldn't reproduce the problem. The * register is not used by default unless it is explicitly specified like "*yil or 'clipboard' option is set to unnamed. In the latter case, built-in text objects also yank text to the * register.

from vim-textobj-user.

h3xx avatar h3xx commented on May 17, 2024

The * register is not used by default.

That's not true. My &clipboard is set to the default value autoselect,exclude:cons\|linux.

The autoselect value in this option means this:

autoselect: Works like the 'a' flag in 'guioptions': If present, then whenever Visual mode is started, or the Visual area extended, Vim tries to become the owner of the
windowing system's global selection or put the selected text on the clipboard used by the selection register "*. See |guioptions_a| and |quotestar| for details. When the GUI is active, the 'a' flag in 'guioptions' is used, when the GUI is not active, this "autoselect" flag is used.
Also applies to the modeless selection.

I'm running under Linux by the way, with text-mode vim enabled for xterm clipboard (+xterm_clipboard) and X11 stuff (+X11).

from vim-textobj-user.

kana avatar kana commented on May 17, 2024

Anyway your Vim behaves as documented. The problem is not caused by vim-textobj-user.

from vim-textobj-user.

h3xx avatar h3xx commented on May 17, 2024

How would you suggest I configure vim such that:

  • Visual selection is automatically stored on the * register
  • Using a user textobj leaves the * register untouched.

from vim-textobj-user.

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.