To będzie set nostartofline
. Dzięki niemu gg i G będzie utrzymywać kolumnę, jeśli to możliwe, podobnie jak j itp
Od :h startofline
:
'startofline' 'sol' 'nostartofline' 'nosol'
'startofline' 'sol' boolean (default on)
global
{not in Vi}
When "on" the commands listed below move the cursor to the first
non-blank of the line. When off the cursor is kept in the same column
(if possible). This applies to the commands: CTRL-D, CTRL-U, CTRL-B,
CTRL-F, "G", "H", "M", "L", gg, and to the commands "d", "<<" and ">>"
with a linewise operator, with "%" with a count and to buffer changing
commands (CTRL-^, :bnext, :bNext, etc.). [..]
dokładną kopią [Jak iść do końca pliku w vim przy zachowaniu aktualnego kolumnie pod kursor?] (http://stackoverflow.com/q/16631436). – glts
@glts Hah, nawet wznowiłem pytanie i odpowiedź w tym wpisie i nie pamiętałem duplikatu. No cóż, OP otrzymał odpowiedź. – timss
@glts Przepraszamy. Szukałem takiego pytania (właściwie wpisując tytuł i przeszukując sugestię ze stackoverflow), ale go nie znalazłem. – radlan