Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with repating delete /baz with dot . #59

Open
netei opened this issue Oct 23, 2015 · 1 comment
Open

Issue with repating delete /baz with dot . #59

netei opened this issue Oct 23, 2015 · 1 comment

Comments

@netei
Copy link

netei commented Oct 23, 2015

With the start file

foo john
bar baz
baz

Place your cursor on "j"
In normal mode, do :

  • d/baz<enter>
  • .

Will result in :

baz
baz

Expected is (that's the output without oblique)

foo
baz
@netei netei changed the title Issue with repating command with dot . Issue with repating delete /baz with dot . Oct 23, 2015
@junegunn
Copy link
Owner

Actually oblique changes the behavior of / search; it includes the match at the current cursor position. For example, with foo foo and cursor on the first "f", /foo with oblique will match the first foo, but the default /foo will match the second one.

I recall that it was the decision to make it consistent with the behavior of the non-moving *-search.

  • * / 2* / 3* ...
  • /foo, 2/foo, 3/foo

See: https://github.com/junegunn/vim-oblique/blob/master/test/oblique.vader#L709-L802

But I can see that it can be problematic in the use case you showed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants