VSCodeVim / VSCodeVim/Vim

Jump cursor to start/end of indentation level (using existing text blocks)

Open
#6,403 0 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
15.2k
Forks
1.5k
Avg merge
3d 18h
Merged PRs (30d)
6

Description

I often find myself wishing I could jump my cursor to the end or beginning of the current indentation level, using the same blocks already defined in the vim-indent-object implementation.

For example, if my cursor is on line 203, I would love a command that would move my cursor (not selecting) to line 214:

image

(This example was borrowed from https://github.com/michaeljsmith/vim-indent-object/issues/23)

If this were available, I would likely remap ( and ) to jump through indentation levels in the way described above. I have no preferences on what the default mappings would be.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the vim-indent-object implementation and the existing text blocks it defines. Trace how movement commands and key mappings are implemented, then define the start/end behavior for the current indentation level; done means the cursor moves without selecting and works with the existing indentation blocks.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
developer-experience
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.