Vi key bindings

I am just getting started with f# on linux. I would like to know if/how I can use vi keybindings in the fsi repl. (rlwrap does not seem to work with fsharp).

1 Like

I recommend you always use an editor to write code into a file and send that to FSI (usually with Alt-Enter) instead of typing into FSI directly. This has many advantages including syntax highlighting, autocompletion, type inference, live type-error checking etc.

I use the VsVim extension in Visual Studio to write F# code. And of course, vim’s line and movement shortcuts make it even easier to select parts of your code to send to FSI, allowing vim users to be even more productive F# developers. But don’t tell any non-vim users about that. We want to maintain our advantage :shushing_face::grin: