我找了人家的现成货,就是在.gvimrc里加入这个
代码: 全选
"启动隐藏工具栏和菜单,按F2打开、关闭
set guioptions-=m
set guioptions-=T
map <silent> <F2> :if &guioptions =~# 'T' <Bar>
\set guioptions-=T <Bar>
\set guioptions-=m <bar>
\else <Bar>
\set guioptions+=T <Bar>
\set guioptions+=m <Bar>
\endif<CR>
后来觉得vim的按键操作挺爽,就在firefox里装了vimperator,然后把上面这个原样放到.vimperatorrc里,想实现同样的功能
哪知道在这里就不灵光了,显示下面的这个
代码: 全选
Error detected while processing /home/adagi0/.vimperatorrc
line 20:
E492: Not an editor command: \set guioptions-=T <Bar>
Error detected while processing /home/adagi0/.vimperatorrc
line 21:
E492: Not an editor command: \set guioptions-=m <bar>
Error detected while processing /home/adagi0/.vimperatorrc
line 22:
E492: Not an editor command: \else <Bar>
Error detected while processing /home/adagi0/.vimperatorrc
line 23:
E492: Not an editor command: \set guioptions+=T <Bar>
Error detected while processing /home/adagi0/.vimperatorrc
line 24:
E492: Not an editor command: \set guioptions+=m <Bar>
Error detected while processing /home/adagi0/.vimperatorrc
line 25:
E492: Not an editor command: \endif<CR>
我不懂码,谁知道是哪里错了告诉一下啊,谢谢
