[vim/vim] Add highlighting feature to delete content (Issue #17153)

12 views
Skip to first unread message

Rishav A.

unread,
Apr 18, 2025, 10:49:17 AM4/18/25
to vim/vim, Subscribed

Add highlighting feature to delete content

When I work with vim, I have to add a lot of config files and it is tedious to delete every single one line by line. So just like in another editor where a dev can select a piece of code and then delete it that would be more efficient. I have also explored the !%d which deletes the entire file but there has been instances where I really need this feature for my work flow.

Users are able to highlight content and delete using the delete key or right click and delete as well.

some commands we tried were !%d and esc ---> dg but this was inefficient


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/17153@github.com>

Ris345 created an issue (vim/vim#17153)

Add highlighting feature to delete content

When I work with vim, I have to add a lot of config files and it is tedious to delete every single one line by line. So just like in another editor where a dev can select a piece of code and then delete it that would be more efficient. I have also explored the !%d which deletes the entire file but there has been instances where I really need this feature for my work flow.

Users are able to highlight content and delete using the delete key or right click and delete as well.

some commands we tried were !%d and esc ---> dg but this was inefficient


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/17153@github.com>

nenahp

unread,
Apr 18, 2025, 11:37:08 AM4/18/25
to vim/vim, Subscribed

Unless you are working on a headless tty without graphic system like X or wayland. I think mouse support is already here. You can select then press 'd', if you want mouse only just :h mouse.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/17153/2815662219@github.com>

nenahp left a comment (vim/vim#17153)

Unless you are working on a headless tty without graphic system like X or wayland. I think mouse support is already here. You can select then press 'd', if you want mouse only just :h mouse.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/17153/2815662219@github.com>

Christian Brabandt

unread,
Apr 18, 2025, 12:09:25 PM4/18/25
to vim/vim, Subscribed

Closed #17153 as not planned.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issue/17153/issue_event/17322072490@github.com>

Christian Brabandt

unread,
Apr 18, 2025, 12:09:28 PM4/18/25
to vim/vim, Subscribed

You can visual mode to highlight, or you can make use of text objects. I'd suggest to first learn about existing features before opening tickets here. This is really a usage question, please ask at vi.stackexchange, or reddit or use the vim-use mailinglist.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/17153/2815718026@github.com>

chrisbra left a comment (vim/vim#17153)

You can visual mode to highlight, or you can make use of text objects. I'd suggest to first learn about existing features before opening tickets here. This is really a usage question, please ask at vi.stackexchange, or reddit or use the vim-use mailinglist.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/17153/2815718026@github.com>

Reply all
Reply to author
Forward
0 new messages