:q和:Q也是如此。 我几乎总是不敢迅速转变,看到:Q和:W aren t used anyway,我认为,只要他们做与其下级对口单位一样的话,是明智的。
Is it possible to update vim plugins automatically?
:q和:Q也是如此。 我几乎总是不敢迅速转变,看到:Q和:W aren t used anyway,我认为,只要他们做与其下级对口单位一样的话,是明智的。
The hack is through a :cmap
or :cabb
, but these haveside effect (i.e. other cases will be inadvertently transformation, also).
http://www.vim.org/scripts/script.php?script_id=746”>cmdalias plugin?
但我认为,如果你使用的话,最好界定你自己的上层指挥员。 主要的挑战是支持最初提出的所有备选办法:
command! -bang -range=% -complete=file -nargs=* W <line1>,<line2>write<bang> <args>
command! -bang Q quit<bang>
是的,你可以把他们改写在你身上。 iv
cabb W w
cabb Q q
或
cmap W w
cmap Q q
倒数是,“W”将扩大到“w”两种情况(cmap/code>)。 显示改动,
cabb
。
It s generally quite easy to remap keys to suit your needs in Vim. Try looking at the following tut或ial: Mapping keys in Vim
edit: As @IngoKarkat points out, this is a hackish solution. I m leaving it here because it s fast and easy. However, the downside is clear; it interferes with other uses.
对我来说,没有已知的副作用,就无法绘制地图
noremap :W :w
可在<条码>上添加以下条目:<条码>。
command! W write
command! Q quit
这不是回答你的问题,而是解决你的问题——“我几乎总是不敢迅速转变”。 具有殖民地和半殖民地的意义。 然后不需要改变,因为你将使用<代码>;w和;q
。
nnoremap ; :
nnoremap : ;
vnoremap ; :
vnoremap : ;
:wq
确实,这艘船是ESC,然后是:(本身为Shift+;) 然后w,然后q,然后Enter。 5次中风,6次,如果是:,2次。
取而代之的是ESC,然后(保留)Shift,, 然后Z(无:)。 它将立即节省和搁置档案。 一个不太关键的中风(或两个,视你如何算出)加上我更难。
Is it possible to update vim plugins automatically?
How can I configure vim to autowrite buffers after switching with alt-tab to another application?
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....
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 ...
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 ...
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 ...
Whenever I start a shell in vim using :sh, it doesn t source my ~/.bashrc file. How can I get it to do this automatically?
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 ...