简体   繁体   English

Emacs 启动时你的 .viper 文件中有什么?

[英]What’s in your .viper file at start-up of Emacs?

Similar to this question , but for Viper users specifically.此问题类似,但专门针对 Viper 用户。 How do you customize Viper mode in Emacs?你如何在 Emacs 中自定义 Viper 模式?

My .viper:我的 .viper:

(setq viper-expert-level '5)
(setq viper-inhibit-startup-message 't)
;;; '/' Search ignores case
(setq case-fold-search t)
;;; Can't live without auto-indent in any mode, be it text or source code
(setq-default viper-auto-indent t)
;;; Electrifies Viper
(setq-default viper-electric-mode t)
;;; Useful if you like to bang the ESC key
;; (setq-default viper-no-multiple-ESC t)
;;; This doesn't work for me - YMMV
(setq-default viper-ESC-moves-cursor-back nil) 

I picked the above customizations from this thread (which has a lot more, though most of is obsolete / redundant when you use Vimpulse) :我从这个线程中选择了上面的自定义(它有更多,虽然当你使用 Vimpulse 时大部分已经过时/多余):

http://www.mail-archive.com/implementations-list@lists.ourproject.org/msg00062.html http://www.mail-archive.com/implementations-list@lists.ourproject.org/msg00062.html

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

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