
Somehow in the distant past I managed to get vi editing mode working for ghci on ghc 6, but when I upgraded to ghc 7, I can't seem to figure out how to enable it anymore. I think I might have been using ghci-haskeline in the past. A post I read somewhere suggested that ghc 7 should have innate support for vi mode, but I can't figure out if it does, or how to enable it. Does anyone know? I'm willing to recompile ghc to use readline to get vi mode support if that is possible and the only way to do so.

On Fri, Jun 10, 2011 at 1:25 PM, David McBride
Somehow in the distant past I managed to get vi editing mode working for ghci on ghc 6, but when I upgraded to ghc 7, I can't seem to figure out how to enable it anymore. I think I might have been using ghci-haskeline in the past. A post I read somewhere suggested that ghc 7 should have innate support for vi mode, but I can't figure out if it does, or how to enable it. Does anyone know?
~/.haskeline: editMode: Vi I recommend 'historyDuplicates: IgnoreConsecutive' for a nice zsh-like history.

I do remember reading this page way back when. Thank you very much!
On Fri, Jun 10, 2011 at 4:41 PM, Evan Laforge
On Fri, Jun 10, 2011 at 1:25 PM, David McBride
wrote: Somehow in the distant past I managed to get vi editing mode working for ghci on ghc 6, but when I upgraded to ghc 7, I can't seem to figure out how to enable it anymore. I think I might have been using ghci-haskeline in the past. A post I read somewhere suggested that ghc 7 should have innate support for vi mode, but I can't figure out if it does, or how to enable it. Does anyone know?
~/.haskeline:
editMode: Vi
I recommend 'historyDuplicates: IgnoreConsecutive' for a nice zsh-like history.

You can also get vim-addon-async [1] and run ghci inside Vim. Then you can use all Vim goodness. [1]: requires client-server. Tested on Linux and Mac http://github.com/MarcWeber/vim-addon-async Marc Weber

readline has keyboard shortcuts to change from emacs mode to vi and a
separate to go back. Find out what they are and check if they work on
haskeline, you got me wondering but i have no ghci access from here.
Definitely easier than editing a config.
Cheers,
D.
On Sat, Jun 11, 2011 at 00:08, Marc Weber
You can also get vim-addon-async [1] and run ghci inside Vim. Then you can use all Vim goodness.
[1]: requires client-server. Tested on Linux and Mac http://github.com/MarcWeber/vim-addon-async
Marc Weber
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
participants (4)
-
cheater cheater
-
David McBride
-
Evan Laforge
-
Marc Weber