如果某些行太长,会被强制换行。例如,通常一行很长的话,就会看起来像这样。
但是,如果vim的窗口太窄,它会看起来像这样。
1 first line
2 this is the long second line of the file
3 third line.
但是,如果vim的窗口太窄,它会看起来像这样。
1 first line
2 this is the long
second line of the file
3 third line
问题出在这里。
假设vim光标位于“第三行”的“t”之前。如果我输入“k”,光标将移动到文件“第二行”的“s”之前。之后,如果我再次输入“k”,光标将移动到“第一行”的“f”处!而不是“this is the long”中的“t”。我想要的是光标移动到“this is the long”中的“t”,这对我来说更加直观。我该如何设置我的vim才能像这样工作?