Giter VIP home page Giter VIP logo

Comments (7)

justinmk avatar justinmk commented on July 2, 2024

👍

from vim-sensible.

tpope avatar tpope commented on July 2, 2024

My stance is basically

  • I think this is kinda helpful.
  • I think inoremap <CR> <C-G>u<CR> is awesome.
  • I can't really get away with remapping <CR> in this plugin.
  • I don't really want to provide the kinda-helpful part without the awesome part.

from vim-sensible.

idbrii avatar idbrii commented on July 2, 2024

Hm. I see it differently.

  • Mapping CR makes editing easier. (It doesn't prevent much lost data because CR is additive.)
  • Mapping C-u makes screwing up harder. (It prevents data loss because C-u is subtractive: you either lose the data from cursor to beginning of line or lose what you wrote before C-u.)

from vim-sensible.

tpope avatar tpope commented on July 2, 2024

You might have a point. I'll give it a try.

from vim-sensible.

pkoch avatar pkoch commented on July 2, 2024

Would it make sense to put a link right before that line? I had to search for it, I imagine many others do as well.

from vim-sensible.

tpope avatar tpope commented on July 2, 2024

Link to what? I'd lean towards a terse inline explanation if anything.

from vim-sensible.

josephholsten avatar josephholsten commented on July 2, 2024

How do we feel about the ticket message as a terse inline explanation:

CTRL-U in insert mode deletes a lot. Use CTRL-G u to first break undo, so that you can undo CTRL-U without undoing what you typed before it.

from vim-sensible.

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.