SirVer / ultisnips

UltiSnips - The ultimate snippet solution for Vim. Send pull requests to SirVer/ultisnips!
GNU General Public License v3.0
7.55k stars 691 forks source link

Ungrab tab key in visual mode #1528

Closed avidseeker closed 1 year ago

avidseeker commented 1 year ago

Expected behavior: Tab key can be remapped when not in a snippet.

Actual behavior: Pressing tab erases selected text.

Steps to reproduce

cat >> ~/.config/nvim/init.vim
vnoremap <Tab> >gv
vnoremap <S-Tab> <gv

Select some lines of text and press tab.

Nvim v0.8.3 Ultisnip: 0ad238 commit id

SirVer commented 1 year ago

This is desired behavior. Please see the docs for visual. Am 02.04.2023 um 10:30 schrieb avidseeker @.***>:

Expected behavior: Tab key can be remapped when not in a snippet. Actual behavior: Pressing tab erases selected text. Steps to reproduce cat >> ~/.config/nvim/init.vim vnoremap >gv vnoremap <gv

Select some lines of text and press tab. Nvim v0.8.3 Ultisnip: 0ad238 commit id

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>