aboutsummaryrefslogtreecommitdiff
path: root/vim/vimrc
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2012-05-18 10:30:43 +1200
committerTom Ryder <tom@sanctum.geek.nz>2012-05-18 10:30:43 +1200
commit838e182e4cc413dd4ce95c9f7d3b265a264c3e6d (patch)
tree7b687ff7156e1beb071716ed848bb1f724a84f9e /vim/vimrc
parentFugitive update. (diff)
downloaddotfiles-838e182e4cc413dd4ce95c9f7d3b265a264c3e6d.tar.gz
dotfiles-838e182e4cc413dd4ce95c9f7d3b265a264c3e6d.zip
Map ZW to :w! for quick forced writes
I really like ZQ and ZZ and use them all the time, this is just another mapping in the same spirit that allows me to force a file write without necessarily quitting as ZZ does.
Diffstat (limited to 'vim/vimrc')
-rw-r--r--vim/vimrc3
1 files changed, 3 insertions, 0 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 0eb318ca..4b94cf1a 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -167,6 +167,9 @@ if has("linebreak")
set showbreak=...
endif
+" Writing
+nnoremap ZW :w!<CR>
+
" Yanking
nnoremap Y y$