0
0
Gentlemen/Ladies,
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.
Thanks!
It is probably true that most of the people reading this page are male, but some will not be, and some of those may feel excluded because you start your question with "Gentlemen". – benjifisher – 2014-03-04T03:56:11.847
benjifisher, sorry! I fixed it for you! =] – Eduardo Lucio – 2014-03-04T21:03:26.903