neotermとipython
Macでnvim+neotermでpython3を書きたいがデフォルトではpython2のREPLが立ち上がってしまう。設定ファイルを書き換えれば良いのだろうが、少しよくわからない。チートっぽいけど
pip3 intall ipython
でpython3のipythonが立ち上がってくれる。チートっぽいけど。
追記
普通にneotermの設定ファイルをいじればできた
~/.local/share/dein/repos/github.com/kassio/neoterm/ftdetect/set_repl_cmd.vim
のなかの
elseif executable('python') |
call neoterm#repl#set('python') |
というところを
elseif executable('python3') |
call neoterm#repl#set('python3') |
とすればよかった。
コメント
コメントを投稿