(Change <tt> to <code>, perhaps also minor tweak.)
Line 12:
Line 12:
|category2=
|category2=
}}
}}
−
Recently I found it very helpful to use the 'langmap' option. But I've got a problem: When I switch to my language, I'm not able to use the <tt>$</tt> command (go-to-end-of-line), because the keyboard layout for my language does not contain this character at all.
+
Recently I found it very helpful to use the 'langmap' option. But I've got a problem: When I switch to my language, I'm not able to use the <code>$</code> command (go-to-end-of-line), because the keyboard layout for my language does not contain this character at all.
I had to press <End>, or use some other inconvenient way of jumping to the end of a line.
I had to press <End>, or use some other inconvenient way of jumping to the end of a line.
−
Today I found another way, which is much easier: command <tt>g_</tt> moves the cursor to the last non-blank character in the line. This works with 'langmap', for all English characters are always "mapped" properly.
+
Today I found another way, which is much easier: command <code>g_</code> moves the cursor to the last non-blank character in the line. This works with 'langmap', for all English characters are always "mapped" properly.
See also [[VimTip278]].
See also [[VimTip278]].
Latest revision as of 05:52, July 13, 2012
Please review this tip:
This tip was imported from vim.org and needs general review.
created 2005 · complexity basic · author Ivan Tishchenko · version 6.0
Recently I found it very helpful to use the 'langmap' option. But I've got a problem: When I switch to my language, I'm not able to use the $ command (go-to-end-of-line), because the keyboard layout for my language does not contain this character at all.
I had to press <End>, or use some other inconvenient way of jumping to the end of a line.
Today I found another way, which is much easier: command g_ moves the cursor to the last non-blank character in the line. This works with 'langmap', for all English characters are always "mapped" properly.