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

Using line() function in Vim's substitute command #22237

Open
1 task done
ultrasnake opened this issue Dec 19, 2024 · 0 comments
Open
1 task done

Using line() function in Vim's substitute command #22237

ultrasnake opened this issue Dec 19, 2024 · 0 comments
Labels
enhancement [core label] vim

Comments

@ultrasnake
Copy link

ultrasnake commented Dec 19, 2024

Check for existing issues

  • Completed

Describe the feature

The line() function in Vim returns line numbers and can be combined with :substitute for powerful line-based substitutions.

'<,'>s/^/\=line(".")-1/g

Snipaste_2024-12-19_16-24-05

expect

image

Zed Version and System Specs

Zed 0.166.1 on Ubuntu 22.04

If applicable, add mockups / screenshots to help present your vision of the feature

No response

@ultrasnake ultrasnake added admin read Pending admin review enhancement [core label] triage Maintainer needs to classify the issue labels Dec 19, 2024
@JosephTLyons JosephTLyons added vim and removed triage Maintainer needs to classify the issue admin read Pending admin review labels Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement [core label] vim
Projects
None yet
Development

No branches or pull requests

2 participants