English 中文(简体)
为什么有“地图!”
原标题:Why doesn t "map! <C-q> :q <CR> " work in vim?
  • 时间:2011-10-25 01:40:39
  •  标签:
  • vim

我的投入<代码>:地图! <C-q>:q <CR>,以指挥线方式,然后回到正常的状态,而新闻剪辑则不散。 为什么?

最佳回答

Why anyone would want to add yet another way of quitting Vim to the plethora already available is beyond me. However...

On Fedora 15, Ctrl-Q is likely being captured by your terminal as XON (resume) and therefore not reaching Vim to quit the application.

您可以核实,如果贵国的测绘存在错误,或发生这样的冲突:

:verbose map! <C-Q>

:map! http://vimdoc.sourceforge.net/htmldoc/insert.html#Insert-mode” rel=“noretinger”>insertcommand-line<<>/code><<>>>>a>。

normal-mode/code>>mappings (通常)就这样具体如下:

:nmap <C-Q> :q<CR>
问题回答

正如Johnsyweb所建议的,Ctrl-Q首先不能到达Vim。 公众也可使用Ctrl-S。 两者都可以通过增加

silent !stty -ixon > /dev/null 2>/dev/null

页: 1





相关问题
Autoupdate VIM Plugins?

Is it possible to update vim plugins automatically?

how to unindent in vim without leaving edit mode?

I m writing a lot of python code recently, and i used the tab-to-space mode in vim. I was just wondering how would i unindent in vim without leaving edit mode for example after i finished if...: block....

Scrolling inside Vim in Mac s Terminal

I ve been googling around trying to figure out if it s possible to use my mouse wheel to scroll while inside Vim in Mac s Terminal, with no luck. It seems as if only X11 or iTerm support this. Before ...

Vim - Deleting XML Comments

How do I delete comments in XML? If the opening and the closing comment tags are on the same line, I use :g/^<!--.*-->$/d to delete the comment. How to delete the comments that are spread ...

Limiting a match in vim to certain filetypes?

I have the following in my .vimrc to highlight lines longer than 80 chars: highlight OverLength ctermbg=red ctermfg=white guibg=#592929 match OverLength /\%81v.*/ This works quite well. However, the ...

Profiling Vim startup time

I’ve got a lot of plugins enabled when using Vim – I have collected plugins over the years. I’m a bit fed up with how long Vim takes to start now, so I’d like to profile its startup and see which of ...