I've read quite a few posts/documentations about Vim's visual block feature (such as prepend not working), however, I'm still not able to apply a visual block prepend operation to multiple lines when I'm using Vim called from a Git Bash terminal. If I'm using Windows' cmd or Windows Power Shell it works just fine.
To be clear, from inside a vim buffer that was created via the Git Bash version 2.16.windows.1 environment, I follow the following steps:
- Hit CTRL+V (the result is the text 'VISUAL BLOCK' displayed at the bottom)
- Highlight multiple lines (just the first character of each line)
- Hit SHIFT+I (the result is 'INSERT' being displayed at the bottom)
- Type the '#' character (result is '#' being written to the first/original line)
- Hit ESC (The result is that I'm put back into normal mode)
Note that only one line received a prefix character. If I follow the same steps from cmd or powershell the prefix character is applied to all lines selected.
Is there a workaround to this? Is this a known Vim bug? Or is Git somehow interfering with Vim features?