Vim icon indicating copy to clipboard operation
Vim copied to clipboard

Search and replace doesn't work with current line (.) and relative lines

Open Anheurystics opened this issue 8 years ago • 2 comments

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

What happened: Using . to indicate current line and +s in search and replace doesn't work

What did you expect to happen: It does the replacing from current line until the specified number of lines

How to reproduce it (as minimally and precisely as possible): Set cursor to a line, and then try to replace any text in the line and the n next lines by typing :.,+ns/search/replace/g

Environment:

  • Extension (VsCodeVim) version: 0.10.13
  • VSCode version: 1.20.1
  • OS version: Ubuntu 16.04.2 LTS

Anheurystics avatar Feb 14 '18 15:02 Anheurystics

I'm noticing this as well. Would love to have this feature.

ohkojai avatar May 03 '18 22:05 ohkojai

If nobody minds, I'll probably scratch my itch and take a stab at this, along with the shorthand in vim whereby if you hit 4:s, it'll go into command mode with :.,.+3s ready for you ;)

trycatchal avatar Sep 22 '18 14:09 trycatchal