I have a big file with thousands of lines of thousands of characters.
I move the cursor to 3000th character.
If I use PageDown or Ctrl+D, the file will scroll but the cursor will come back to the first no-space character.
There's is an option to set to keep the cursor in the same column after a such scroll ?
I have the behavior with gvim on Window, vim on OpenVMS and Cygwin.
A Recent Plugin
I am using terryma/vim-smooth-scrolling plugin as it provides a very nice and smooth scrolling.
To install, you can use Vundle:
As stated in the doc, you can set up 3 arguments: distance, duration and speed.
I am using this in my .vimrc file:
Well, one easy way to do so is using the movement keys. For example, to go down 100 lines keeping the cursor at the same column: "100j"
Edit:
Alright, searching a little more to really find an answer to your question, there's an option to do exactly what you want:
This might not suit your situation at all, but if it makes it easier to break the lines up you can break them at a certain character e.g. after ':'
Or every 80 characters
100
<CTRL-E>
will scroll down 100 lines for exampleIf you like using PageUp, PageDown or Ctrl+D etc. you can set the "nostartofline" option