[vim/vim] yank inside indentation (Discussion #16352)

19 views
Skip to first unread message

avidseeker

unread,
Dec 31, 2024, 2:47:41 AM12/31/24
to vim/vim, Subscribed

Python syntax is clean and simple. But unfortunately too clean for Vim tricks like yi{ which can be done in languages like C.

Is there a way to have yank work in different indentation levels?


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

ben.k...@gmail.com

unread,
Dec 31, 2024, 11:44:16 AM12/31/24
to vim_dev
On Tuesday, December 31, 2024 at 2:47:41 AM UTC-5 avidseeker wrote:

Python syntax is clean and simple. But unfortunately too clean for Vim tricks like yi{ which can be done in languages like C.

Is there a way to have yank work in different indentation levels?


I use a plugin https://github.com/michaeljsmith/vim-indent-object/ to provide indent-based text objects. It seems to work well.

D. Ben Knoble

unread,
Dec 31, 2024, 12:41:57 PM12/31/24
to vim/vim, Subscribed

Looks like my mailing list comment didn’t copy: I use a plugin https://github.com/michaeljsmith/vim-indent-object/ to provide indent-based text objects. It seems to work well.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/repo-discussions/16352/comments/11706995@github.com>

Reply all
Reply to author
Forward
0 new messages