`]p` doesn't work with whitespace trimming
Open
Nobody has claimed this yet.
kind/enhancement
size/M
- Dominant language
- TypeScript
- Stars
- 15.2k
- Forks
- 1.5k
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 6
Description
If you do ]p on a blank line, it pastes with 0 indentation, even if above/below lines are actually indented.
This is how Vim works, however I feel like no one in their right mind could ever want this behavior (vs figuring out what the correct indentation level is and pasting at that level instead).
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No files or tests are named. Start by locating the ]p paste handling and reproduce it on a blank line surrounded by indented lines while whitespace trimming is enabled. Done means pasting on that blank line uses the appropriate surrounding indentation rather than zero indentation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100