简体   繁体   English

哦,我的ZSH和Vim插入光标

[英]Oh My ZSH & Vim Insert Cursor

Currently using Oh My ZSH, however, when using Vim in INSERT mode, at the end of a line, when using arrows to navigate, the insert mode ends when you hit the end of the line, making it impossible to delete the last character on the line, following is my Theme file, can anybody help me out with this? 当前正在使用Oh My ZSH,但是,在INSERT模式下使用Vim时,在一行的末尾,使用箭头导航时,插入模式会在您击中该行的结尾时结束,从而无法删除该行上的最后一个字符。这行是我的主题文件,下面有人可以帮助我吗?

https://github.com/andrew8088/oh-my-zsh/blob/master/themes/doubleend.zsh-theme https://github.com/andrew8088/oh-my-zsh/blob/master/themes/doubleend.zsh-theme

Thanks! 谢谢!

AFAIK it's not recommended to move around in insert mode at all. AFAIK,完全不建议在插入模式下移动。 if you want to delete the last character on the line, just hit $x in normal mode. 如果要删除该行的最后一个字符,只需在正常模式下按$x To delete the last character on the line and go to insert mode, use $s . 要删除该行的最后一个字符并进入插入模式,请使用$s

In most cases you should move much faster in normal mode usign w , e , ^ and the like, than using the arrows in insert mode. 在大多数情况下,与在插入模式下使用箭头相比,在正常模式下使用we^等移动速度要快得多。 Why use vim if you use it like a notepad application? 如果将vim用作记事本应用程序,为什么还要使用它?

Hope this helps 希望这可以帮助

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

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