Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to configure IPython to use gvim on Windows?

This really looks like something I should be able to find on Google, but for some reason I can't make heads or tails of it. There's the EDITOR environment variable, the ipy_user_conf.py file, the ipythonrc file, some weird thing about running gvim in server mode and a bunch of other stuff I can't wrap my head around (probably because of lack of sleep).

Is there a guide somewhere I can follow, or maybe someone can just outline the steps I need to take?

like image 975
elifiner Avatar asked Mar 17 '09 18:03

elifiner


2 Answers

Setting the EDITOR environment variable to 'gvim -f' seems to work.

set EDITOR=gvim -f
like image 198
theller Avatar answered Nov 02 '22 05:11

theller


  1. edit file - C:\Users\[your username]\_ipython\ipythonrc.ini
  2. replace line: editor 0 to editor gvim –f (or editor [whatever editor you_want to use and system recognize it])
  3. save file

You may have problem that your Win doesn't recognize gvim as a command, you can fix it like this:

Control Panel -> System -> Advances system settings (System properties - Advanced tab) -> Enviroment Variables

In system variables edit Path and add this: ;C:\Program Files\Vim\vim73\ or path that leads to your gvim.exe

like image 40
Tomas Avatar answered Nov 02 '22 06:11

Tomas