作者Holocaust123 (奔跑的蜗牛)
看板Editor
标题[vim ] 如何在key mapping中使用变数
时间Tue Jun 7 20:58:44 2011
let xterm='gnome-terminal'
<silent> <buffer> <F10> <ESC>:w<CR>:!xterm -x bash -c "python \"%\"" <CR>
^^^^^
请问这边该怎麽写才会expand成'gnome-terminal'?
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.112.31.149
※ 编辑: Holocaust123 来自: 140.112.31.149 (06/07 20:59)
1F:推 bootleq:<C-R>=xterm 详见 c_CTRL-R,C-R 能带很多东西出来 06/11 08:28
2F:→ Holocaust123:真是太强了 感恩! <C-R>=xterm<CR> 06/11 12:57