Skip to content

Conversation

samjwill
Copy link

@samjwill samjwill commented May 26, 2021

Many programs (Notepad++, Microsoft Word, Sublime Text, GNU nano, VS Code, etc.) map shift-tab to an inverse tab. Vim, by default, does not map this to anything, and when the combination is pressed, a regular tab character is inserted.

I think it might be a good tweak to add this mapping if Shift-Tab in insert mode is not mapped to anything else :)

mmrwoods added a commit to mmrwoods/vim-friendly that referenced this pull request Jun 21, 2023
Seems friendly (similar to vsode and other editors), harmless (doesn't
seem to break anything as S-Tab normally acts same as Tab), and plays
nicely with visual mode S-Tab mapping to shift selection leftwards.

Idea from @samjwill, see tpope/vim-sensible#173

FIXME: make pumvisible() aware expr map trigger any existing S-Tab map
mmrwoods added a commit to mmrwoods/vim-friendly that referenced this pull request Jun 21, 2023
Seems friendly (similar to vscode and other editors), harmless (doesn't
seem to break anything as S-Tab normally acts same as Tab), and plays
nicely with visual mode S-Tab mapping to shift selection leftwards.

Idea from @samjwill, see tpope/vim-sensible#173

FIXME: make pumvisible() aware expr map trigger any existing S-Tab map
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant