Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/vim/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Vim 如何使水平滚动一次一个字符_Vim - Fatal编程技术网

Vim 如何使水平滚动一次一个字符

Vim 如何使水平滚动一次一个字符,vim,Vim,我不确定这个问题的措辞是否正确 这就是为什么我很难像往常一样在谷歌上找到答案。 我的vim设置为永不缠绕线路。保持代码更干净 但是我不喜欢,如果我把光标移过一条线,到达屏幕的边缘,这个视图就会跳起来,这样我现在所在的地方就在屏幕的中间。 有没有办法让它不那么做?就像这样,一次只运行一个字符 (或者,如果我按单词移动,一次一个单词,等等。如果我走到屏幕边缘,光标停留在屏幕边缘,页面在其下方向内移动)?您可以查看'sidescroll'设置: 'sidescroll' 'ss' number

我不确定这个问题的措辞是否正确

这就是为什么我很难像往常一样在谷歌上找到答案。
我的vim设置为永不缠绕线路。保持代码更干净

<>但是我不喜欢,如果我把光标移过一条线,到达屏幕的边缘,这个视图就会跳起来,这样我现在所在的地方就在屏幕的中间。 有没有办法让它不那么做?就像这样,一次只运行一个字符

(或者,如果我按单词移动,一次一个单词,等等。如果我走到屏幕边缘,光标停留在屏幕边缘,页面在其下方向内移动)?

您可以查看
'sidescroll'
设置:

'sidescroll' 'ss'   number  (default 0)

    The minimal number of columns to scroll horizontally.  Used only when
    the 'wrap' option is off and the cursor is moved off of the screen.
    When it is zero the cursor will be put in the middle of the screen.
    When using a slow terminal set it to a large number or 0.  When using
    a fast terminal use a small number or 1.  Not used for "zh" and "zl"
    commands.