-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Hi all,
Although I have been using Vim now for over two years now as my main text editor, I often still have the feeling that I'm not very efficient in navigating through a file, more specifically through the part of the file which is on my screen. Most of the time when I can see the line where I want to jump to I will use a count together with the j or k command. I use 'relativenumber', so I can easily see the correct count. However, this still feels a little inefficient, as my eyes first have to find the line I want to jump to, then carefully (without loosing track of the line) look to the left to find the correct number, then my fingers have to enter the correct number and finally I can press j or k. So far the jumplist has also always felt rather confusing to me. Yesterday I finally discovered why: I think of the method how I move to specific lines as being a 'jump', because in fact, the cursor jumps to another line in the file. However, Vim doesn't think of this as being a jump. The reason for this is that a j and a k without a count are obviously not jumps. So now I'm wondering what my options are to navigate efficiently and be able to use the jumplist correctly at the same time? Some ideas: - - maybe I should simply use search a lot more? Just typing what I want to find is probably equally fast as looking at linenumbers, and searches are jumps - - Make use of H M L to jump 'near' the line I want and then use j / k? that would at least add some positions to the jumplist, but feels very inefficient also. - - stop using 'relativenumber' and use a count with the G command. This fixes the jumplist but then I would have to enter longer numbers in most cases and I loose the benefits of relativenumber (for deletions etc). - - remap j and k so that they would calculate the correct linenumber and use the G command instead, but only if the count is larger then 5 for example? Wouldn't it be possible to add a configuration option to Vim to make the jumplist recognize 'jumps' with j and k? For example 'minimumjumplines' which can be set to an int. When 0 the behaviour is as it is now; when set to a value greater than 0, it will add a position to the jumplist when using j and k to move the cursor up/down at least that number of lines (when not in operator pending mode) Thanks a lot for any suggestions! Jeroen -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) iQIcBAEBCAAGBQJQ7u6xAAoJEBrqc/v4ufiMT3sQALLlrotfAwnzukTQVAJpingi x8cEWLxuCRAIEz6+UUDUW1Nz8lZRjF2s6r568g9rQbGUcmHgrrMynnkspO0SuFmb Fo7Sr4u5jSSsMKv5BymS2FoXLQ0aNDNUmoABosb0LiLxexmWe7Foj3FHAg+Lum7L CtQEpwKyQ0VaVMEUkSw2kHHswXu9kfvbttcAPcrCMY58c+pJFx07VRXwG4nYFLDP 2tzZgUDds7KtOExC4uDGvU8mwM+qIdWYAUGAgjzkqpUMg9Wt5N7PNPPOh5N4d+i0 sL55l4U3G4vt57FblpSKCMYMssg49fG/gx3y/IfdzQPqyJamxPdbF9NZ+fhMJA+U /8r1zWJgsjWWr84Qc1rU/16b8FYPM0ei65jE7oimWpCy9qthWihM3fvUsXpwmKHg sxZaiclhhP97oT/yH8a0cHsay7KE5RaI/0cjWLpoEhmeFPAxbUTP6G3HKl/u3ki7 AE5F+klnX6YmqCZLx+gSW2qZhpubjKqmsoUxPT4E6VMtASXmLMv/1+hp/CURCcow qENpgmfL7JYEyuYuijo1N6EYiSYjuyUCfocioQWC+lSnWFWokdzml4vFsrzxfGbN xRCVeVAbWFhVVwbBQFnW4gigNN1V8u/E/H2ZTGn1fGa+2Em1a4ngmGu+BlMbm1ij KnOEap1GHf2kN5ukaFw0 =Jzcq -----END PGP SIGNATURE----- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
