Skip to content

Instantly share code, notes, and snippets.

@frsyuki
Created March 8, 2009 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save frsyuki/75796 to your computer and use it in GitHub Desktop.
Save frsyuki/75796 to your computer and use it in GitHub Desktop.
~/Library/Application\ Support/CotEditor/ScriptMenu/Edit\ with\ vi.@9.sh
----
#!/bin/sh
# %%%{CotEditorXInput=Selection}%%%
# %%%{CotEditorXOutput=ReplaceSelection}%%%
tmp=`mktemp ~/tmp/coteditor.XXXXXXXXXX`
cat > "$tmp"
~/Applications/Vim.app/Contents/MacOS/Prelude "$tmp" > /dev/null
cat $tmp
rm -f $tmp
----
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment