简体   繁体   English

如何在Ubuntu上使gVim在Windows上表现得像gVim?

[英]How to make gVim on Ubuntu behave like gVim on Windows?

Searching for an answer I found this question , which is an exact opposite case, and the answers gave me a hint - so I went on and entered: 寻找答案我发现了这个问题 ,这是一个完全相反的情况,答案给了我一个提示 - 所以我继续进入:

:behave mswin

This helped with the text selection thing, but I still can't make gVim to move the cursor to the next line once it reached the EOL when using the cursor right key (for example). 这有助于文本选择的事情,但是当使用光标右键(例如)到达EOL时,我仍然无法使gVim将光标移动到下一行。 It just get stuck at the EOL. 它只是陷入了EOL。 How can I change this? 我怎么能改变这个?

EDIT : Just found out that the <CTRL-A> for "Select All" does not work as expected as well. 编辑 :刚刚发现“全选”的<CTRL-A>也没有按预期工作。

OK, found the missing piece - once sourcing 好的,找到了丢失的部分 - 一次采购

:source $VIMRUNTIME/mswin.vim

the behavior did change as expected. 行为确实按预期改变了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM