Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remapped shift-tab to tab leftwards in insert mode. #173

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Remapped shift-tab to tab leftwards in insert mode. #173

wants to merge 1 commit into from

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