tata色々な備忘録

データ解析、画像解析、化学分析などなど

vim-quickrunでvim上からpython実行

vim-quickrunでvimからpython実行。

 

vim-pathogen入れた状態でbundleフォルダに移動して下記を実行。

 

git clone http://github.com/Shougo/vimshell.git
git clone http://github.com/thinca/vim-quickrun.git

 

¥r でプログラムが実行される。

(syntaxでpythonを選ぶ必要あり)

 

以下pythonでの実施例

f:id:tatabox2000:20130127153849p:plain

f:id:tatabox2000:20130127153917p:plain

matplotlibも実行可能。良いね。

 

同様の手順ではRは実行不可。

Rstudio使いなさい、ということか。

 

参考

http://jx-script.blogspot.jp/2010/10/vim-quickrun.html