次のRampionのコードの正確な目的についてはわかりません。明らかにカーソル位置でコマンドを実行するはずです。
# man-word.screen
# prevent messages from slowing this down
msgminwait 0
# copy word starting at cursor
copy # I am not sure why we need this
stuff " e "
# open a new window that waits for a word to run man on
# (and uses 'read' to pause on error)
screen -t man /bin/sh -c 'cat | xargs man || read' # option -c seems to mean execute
# feed that window the copied word
# be sure to enter '^M' as 'CTRL-V ENTER' and '^D' as 'CTRL-V CTRL-D' (in vim)
paste '.'
# should display as 'stuff "^M^D"'
stuff " "
# turn message waiting back on
msgminwait 1
# vi: ft=screen
コードは次の^g
ようにバインドされています
bindkey -m ^f source /Users/masi/bin/screen/edit-file-under-cursor.screen
これはと同じです
bind f source /Users/masi/bin/screen/edit-file-under-cursor.screen
カーソルが次の行の先頭にあるので、コードを実行します
vim ~/.zshrc
次のような新しいバッファを取得します
代替テキストhttp://files.getdropbox.com/u/175564/screen-rampion.png
コマンドの目的は何ですか?