- Open atom.
- Open a file with more than one screenful’s worth of lines.
- Click on the last line currently shown.
- Notice the screen moves up by two lines, showing the next two lines and causing your selected line to no longer be the bottom-most shown line.
In vim, this feature is called “scrolloff” and is customizable. I am trying to implement the ‘H’ and ‘L’ keybindings in vim-mode and need answers to the following two questions to finish my implementations.
- Is the number of lines used for scrolloff (three in the above example) customizable?
- Is it possible to query the atom API for the current scrolloff value.