- Use channel support in vim8, so no language interfaces are required.
- Can get script editor output/history inside vim.
vim8
- vim-plug
Plug 'minoue/mayaScriptEditor.vim'
You have to open command port inside Maya first.
from maya import cmds
cmds.commandPort(name=":23456", prefix="python", sourceType="mel")
In Normal mode, run the follwing command.
MayaScriptEditorSend
Make sure to save before running the command as this command doesn't send texts in a buffer but file path to Maya
Set 'writehistory' on.
cmds.scriptEditorInfo(wh=True)
Set enableOutput option True.
let g:MayaScriptEditorEnableOutput = 1