Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Screenscrolling in vim [closed]

Tags:

vim

is it possible to make vim scroll by screenlines instead of file lines?

More precisely: i edit texts with large paragraphs, and i put enter only at the end of a paragraph. Thus, for vim, each of my paragraphs is a single line, and these lines are very long. When moving around vim jumps very long distances and i get lost. Vim seems to be suitable only for editing programs?

I know about mapping j to gj and so on (i have done them). However just mapping these is not enough i also want the scrolling to be corrected for screenlines.

I have done some searching , but i cannot find a clear answer to whether screen line scrolling is possible or not.

If it is not possible, would somebody know of an, possibly ugly hack to do it? In its current setting vim is not usable, which is sad because i prefer its other features very much over the other editors around. (i do not like the idea of having to learn emacs ...)

like image 747
mnr Avatar asked Aug 26 '12 11:08

mnr


1 Answers

Sorry, the answer is: no.

Browse through this [somewhat] recent nabble thread where Bram Moolenaar himself describes why this hasn't been implemented yet. (basically, it has too much potential for introducing bugs)

http://vim.1045645.n5.nabble.com/Scrolling-screen-lines-I-knew-it-s-impossible-td3358342.html

like image 60
kenny Avatar answered Oct 23 '22 14:10

kenny