question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Stay on (yank, indent, outdent, delete, etc) feature

See original GitHub issue

Is this a BUG REPORT or FEATURE REQUEST? (choose one): Feature Request

One of the nice things I like about Atom’s popular vim plugin, vim-mode-plus, is the option to enable stayOn{Yank,Delete,etc}. These options “try to keep original cursor position as much as posible after operation”. It is an intentional difference from pure vim, and is behind a configuration flag.

I’ve got a local copy of this plugin that mimics that behavior - would you be open to a PR that adds similar options to this plugin? Just wondering before I go through the effort to package up a neat PR for it.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:7
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
jdubwelchcommented, Jun 3, 2020

Currently I can maintain the current cursor position by adding this to my settings.

"vim.visualModeKeyBindingsNonRecursive": [
    {
        "before": [ "y" ],
        "after": [ "y", "g", "v", "<ESC>" ]
    }
],

If you want to maintain the highlight, just remove the <ESC> part.

1reaction
J-Fieldscommented, Dec 13, 2020

No, this is not implemented. Would accept a PR if anyone wants to give it a shot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Indent, outdent, move, and delete tasks - Microsoft Support
You can indent or outdent a task, move a task up or down in the list, or permanently delete a task from the...
Read more >
How can I delete/yank paste in vim and have it indent correctly ...
I'm talking about copying and pasting entirely within vim ( d , y , p ). It is common to copy and paste...
Read more >
Is there anyway to get around the loss of indents
Solved: The new editor is removing indent/outdent which rely on constantly. Has anyone discovered a work around?
Read more >
MS Project 101 - How to Add or Remove Indent ... - YouTube
You can remove the indent from the Name column without affecting the structure of your schedule. You will still keep the different outline ......
Read more >
Auto Indentation - EmacsWiki
I modified kill-and-join-forward command a little – it work almost as the original and uses standard delete-indentation function. (defun kill- ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found