vimpulse

Viper mode in all modes

时光怂恿深爱的人放手 提交于 2019-12-21 02:03:29
问题 I'm moving from vi to emacs and, using viper and vimpulse, it gets pretty annoying when I C-w C-w to a window and cannot get back to the original one with the same command because the other buffer, which could be a help buffer, is not in the Viper mode. How can I fix this? I tried to add other modes to the viper configuration and make them start with the viper mode on by default using hooks: (add-to-list viper-vi-state-mode-list 'help-mode) (add-hook 'help-mode (lambda () (setq viper-mode t))

Ctrl-o in vimpulse?

試著忘記壹切 提交于 2019-12-11 05:37:59
问题 does anyone know how to enable Ctrl-o to switch to normal-mode for one command in viper-mode or vimpulse ? In viper-mode it's bound to open-line (which is what it does for vanilla Emacs and in vimpulse it is bound to (vimpulse-jump-backward ARG) . I'm using Viper-mode + vimpulse at level 2. 回答1: If you're in insert-mode and want to execute one Vimpulse command : (vimpulse-imap "\C-o" 'viper-escape-to-vi) (it is bound by default to C-z in insert-mode) 来源: https://stackoverflow.com/questions

Vim macros don't work when using viper + vimpulse in Emacs

和自甴很熟 提交于 2019-12-10 17:19:46
问题 Any other tweaks for making emacs as vim-like as possible would be appreciated as well. Addendum: The main reason I don't just use vim is that I love how emacs lets you open a file in two different frames [ADDED: sorry, this was confusing: I mean separate windows , which emacs calls "frames"]. It's like making a vertical split but I don't have to have one enormous window. 回答1: You could run VIM in client server mode, then you could have two windows connecting to one instance, hence removing

What Vim features are missing in Emacs with Viper and Vimpulse?

六眼飞鱼酱① 提交于 2019-12-03 02:01:47
问题 There are important features of Emacs which are missing in Vim, such as the comint mode, and there are no scripts/plugins which can replace them. There are also benefits of Vim over Emacs, such as modal editing and generally better default shortcuts. However, Viper mode gets me both. Vimpulse also enables visual mode. Unfortunately, no mode can make Emacs work as fast as Vim. So I mostly learned Vim-in-Emacs. What Vim features am I missing? 回答1: I'm a regular vim user but not an emacs user

What Vim features are missing in Emacs with Viper and Vimpulse?

て烟熏妆下的殇ゞ 提交于 2019-12-02 15:38:26
There are important features of Emacs which are missing in Vim, such as the comint mode, and there are no scripts/plugins which can replace them. There are also benefits of Vim over Emacs, such as modal editing and generally better default shortcuts. However, Viper mode gets me both. Vimpulse also enables visual mode. Unfortunately, no mode can make Emacs work as fast as Vim. So I mostly learned Vim-in-Emacs. What Vim features am I missing? I'm a regular vim user but not an emacs user and haven't used vimpulse to confirm this. But browsing the vimpulse code below I see no mention of text

Difference between Viper, Vimpulse and Evil for Emacs?

无人久伴 提交于 2019-11-30 04:40:10
I have recently started using Emacs after using Vim for a long time now (like many others out there), and I personally feel that Vim movement keys and text objects are one of the best things an editor can have. I heard about emulating these features in Emacs using the different plugins, but after reading a bit more on the internet, I'm confused. I have come across three modes specially: Viper , Vimpulse , and Evil . Can someone please help me out with understanding how to use these modes to achieve a near perfect Vim emulation? Do I need to install all three of them? What is the difference

Difference between Viper, Vimpulse and Evil for Emacs?

随声附和 提交于 2019-11-29 02:07:08
问题 I have recently started using Emacs after using Vim for a long time now (like many others out there), and I personally feel that Vim movement keys and text objects are one of the best things an editor can have. I heard about emulating these features in Emacs using the different plugins, but after reading a bit more on the internet, I'm confused. I have come across three modes specially: Viper , Vimpulse , and Evil . Can someone please help me out with understanding how to use these modes to

Relative Line Numbers In Emacs

大兔子大兔子 提交于 2019-11-27 12:29:23
问题 Does anyone know how if something like this Vim Relative Line Numbers exists for emacs? I use vimpulse, and man, that would be super handy to have! I know some lisp, so if it doesn't, I could try to make my own, if I got a point in the right direction. Update : Thanks to the correct response, I came up with this, that will show 1 for the current line, and -1 for the previous line, for combining with vimpulse yanks and deletes. Thanks a ton to all who helped! I know it is not exactly what Vim