Install vi as an editor in GHCi

How can I get vi editing mode to work in GHCi?

I am using version 7.10.3.

I tried Prelude> :set editor vi but had no effect.

I also have these lines in my ~/.inputrc .

 set editing-mode vi set keymap vi 

.

+7
vim haskell read-eval-print-loop ghci archlinux
source share
1 answer

GHCi now uses the Haskeline library to edit the command line (which has long existed), and it does indeed have vi mode. The configuration file is ~/.haskeline , and the desired line:

 editMode: Vi 
+14
source share

All Articles