[vim] Add :Q as :q like :W/:w
This commit is contained in:
parent
bf1dbe95e9
commit
ede78da06a
1 changed files with 5 additions and 1 deletions
6
.vimrc
6
.vimrc
|
|
@ -657,11 +657,15 @@ set statusline+=\ %P "percent through file
|
|||
|
||||
" ** SMALL FUNCTIONS THAT DON'T FIT AS PLUGINS ***
|
||||
|
||||
" Add capital W so I can be lazy about my shift key
|
||||
" Add capital W and Q so I can be lazy about my shift key
|
||||
if !exists(":W")
|
||||
command W :w
|
||||
endif
|
||||
|
||||
if !exists(":Q")
|
||||
command Q :q
|
||||
endif
|
||||
|
||||
" CD to the path of the file I'm editing.
|
||||
command Cdf :cd %:p:h
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue