October 12, 2011

Launch external editor (VIM) from SlickEdit

Launch external editor (VIM) from SlickEdit: "name_info(','VSARG2_EDITORCTL|VSARG2_READ_ONLY|VSARG2_ICON|VSARG2_REQUIRES_MDI_EDITORCTL|VSARG2_MACRO|VSARG2_MARK|VSARG2_REQUIRES_EDITORCTL)
{
external_cmd ( "gvim", "--servername SRC --remote-silent +:" :+ p_line :+ " \"" :+ p_buf_name :+ \" , 0, 0 )
message("Launching " :+ p_buf_name :+ " in VIM...")
}"

'via Blog this'

my edit for emacsclient here

#include "slick.sh"

_command goto_emacs() name_info(','VSARG2_EDITORCTL|VSARG2_READ_ONLY|VSARG2_ICON|VSARG2_REQUIRES_MDI_EDITORCTL|VSARG2_MACRO|VSARG2_MARK|VSARG2_REQUIRES_EDITORCTL)
{
external_cmd ("emacsclient", " -n +" :+ p_line :+ ":" :+ p_col :+ " " :+ p_buf_name , 0, 0 )
message("Launching " :+ p_buf_name :+ " in Emacs...")
}

Enjoy it doing F12; goto_emacs; Edit; CopyPaste; F12 again and finally bind it to shortkeys or use Esc > got_emacs.





No comments:

Post a Comment