I do not understand why vim is exhibiting the following behavior when I trigger the shortcut below on visual mode (.vimrc):
vmap <script> <C-LEFT> :call Test()<CR> function! Test() "empty endfunction
Vim goes to the first column of the line above the line where a I trigger the shortcut and shows the folow ": '<,'> call Test ()" in the status bar. But this only happens when I call a function, when I use a command like "$" (See *) the behavior is the expected.
vmap <C-LEFT> $
My goal is to make Vim consider the "tab" as a word when I use the "Ctrl+Left" combination, because when the first character of the line is a "tab" Vim select the first word in the top line.
This is the desired behavior:
If you have any alternative solution or workaround I would also be grateful.