viper

Incompatible block pointer types sending 'id issue with ViperMcFlurry

风流意气都作罢 提交于 2021-01-29 13:53:48
问题 I was using ViperMcFlurry in my project without a problem for years and with XCode 12 beta 6 it returns me in Incompatible block pointer types sending error. I have tried various ways to fix it but no chance. It returns Incompatible block pointer types sending 'id<RamblerViperModuleOutput> (^)(__strong id<RamblerModuleBetaInput>)' to parameter of type 'RamblerViperModuleLinkBlock' (aka 'id<RamblerViperModuleOutput> (^)(__strong id<RamblerViperModuleInput>)') What I try to do is [[self

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))

iOS using VIPER with UITableView

人盡茶涼 提交于 2019-12-18 10:36:24
问题 I have a view controller which contains a table view, so I want to ask where should I put table view data source and delegate, should it be an external object or I can write it in my view controller if we say about VIPER pattern. Normally using pattern I do this: In viewDidLoad I request some flow from presenter like self.presenter.showSongs() Presenter contains interactor and in showSongs method I request some data from interactor like: self.interactor.loadSongs() When songs are ready to

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

Mapping Nested Config Yaml to struct

北城余情 提交于 2019-12-11 01:45:30
问题 Im new to go, and im using viper do load all my config what currently i have is the YAML look like below countryQueries: sg: - qtype: gmap qplacetype: postal_code - qtype: gmap qplacetype: address - qtype: geocode qplacetype: street_address hk: - qtype: gmap qplacetype: postal_code - qtype: gmap qplacetype: address - qtype: geocode qplacetype: street_address to note that the countrycode are dynamic it could be added anytime for any countries. So how do i map this to a struct where technically

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