Невозможно понять код в .screenrc
Я не уверен в точной цели следующегоКод Rampion. It should apparently execute command(s) at the cursor position.
# 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
What is the purpose of the command?