aboutsummaryrefslogtreecommitdiff
path: root/vim/config/file.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-11-05 00:41:40 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-11-05 00:41:40 +1300
commit2044d97b03c31083cc0bb47a3f65d729d98f558b (patch)
treef41874a69203faf1f1e5780925b06e84310a9eeb /vim/config/file.vim
parentMerge branch 'release/v0.7.0' (diff)
parentBump version number to 0.8.0 (diff)
downloaddotfiles-2044d97b03c31083cc0bb47a3f65d729d98f558b.tar.gz
dotfiles-2044d97b03c31083cc0bb47a3f65d729d98f558b.zip
Merge branch 'release/v0.8.0'v0.8.0
* release/v0.8.0: Bump version number to 0.8.0 Use BufReadPost hook for big_file_options.vim Limit search highlighting hooks to Vim >= 7.1 Add explanatory note for choosing imperfect remap Set 'guioptions' flag by flag Use variable setting approach for 'guifont' Add short-circuit boilerplate to plugins Simplify shell linting code with single vars Use spaces around concat dots in VimL consistently Remove vim/bundle/html5 submodule Remove vim/bundle/targets submodule Adjust plugin code layout a lot
Diffstat (limited to 'vim/config/file.vim')
-rw-r--r--vim/config/file.vim8
1 files changed, 6 insertions, 2 deletions
diff --git a/vim/config/file.vim b/vim/config/file.vim
index 07c20cd5..4bf1f86b 100644
--- a/vim/config/file.vim
+++ b/vim/config/file.vim
@@ -27,5 +27,9 @@ set nomodeline
" I really like ZZ and ZQ, so I wrote a couple more mappings; ZW forces a
" write of the current buffer, but doesn't quit, and ZA forces a write of all
" buffers but doesn't quit
-nnoremap ZW :w!<CR>
-nnoremap ZA :wa!<CR>
+nnoremap <silent>
+ \ ZW
+ \ :<C-U>write!<CR>
+nnoremap <silent>
+ \ ZA
+ \ :<C-U>wall!<CR>