Thx for the example, but it does't work as expected, just consider multiple buffers, vi state hook is also executed when i switch for example from emacs state to vi state,.. All this leads to negative values of vimtest-var.
Hi Thomas,
One approach is to use the provided hooks to toggle it on and off when visual mode is entered / left. viper vi-mode is entered again when vimpulse visual mode is left.
(setq vimtest-var 0)
(defun vimtest ()
(interactive)
(setq vimtest-var (+ 1 vimtest-var)))
(defun vimtest-deactivate ()
(interactive)
(setq vimtest-var (- vimtest-var 1)))
(add-hook 'vimpulse-visual-state-hook 'vimtest)
(add-hook 'viper-vi-state-hook 'vimtest-deactivate)
Tim
> _______________________________________________
On Jun 17, 2011, at 11:08 , Thomas Hisch wrote:
> Hey
>
> I want to disable global-hl-line-mode in visual mode, but adding global-hl-mode to vimpulse-visual-local-vars didn't help.
>
> Any ideas?
>
> (latest git version of vimpulse)
>
> Regards
> Tom
> implementations-list mailing list
> implementations-list@lists.ourproject.org
> https://lists.ourproject.org/cgi-bin/mailman/listinfo/implementations-list
_______________________________________________
implementations-list mailing list
implementations-list@lists.ourproject.org
https://lists.ourproject.org/cgi-bin/mailman/listinfo/implementations-list