aboutsummaryrefslogtreecommitdiff
path: root/vimrc.dot.link
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-06-05 18:31:11 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-06-05 18:31:11 -0300
commit9fe30b3d31f9f7533d1987c2c981ac05fc81183c (patch)
treec3383f52d9e8967bc7943b1f1227349aca9ec483 /vimrc.dot.link
parent334b37da0ede1a25666c8ceac539f9a028ac6766 (diff)
downloadvim-9fe30b3d31f9f7533d1987c2c981ac05fc81183c.tar.gz
vim-9fe30b3d31f9f7533d1987c2c981ac05fc81183c.tar.bz2
Special savel all and quit mapping
Diffstat (limited to 'vimrc.dot.link')
-rw-r--r--vimrc.dot.link6
1 files changed, 5 insertions, 1 deletions
diff --git a/vimrc.dot.link b/vimrc.dot.link
index 2924fae..be1a5b7 100644
--- a/vimrc.dot.link
+++ b/vimrc.dot.link
@@ -84,11 +84,15 @@ let g:syntastic_mode_map = { 'mode': 'passive',
nmap <ESC>n :tabnew<CR>
" Quit and close shortcuts
-map q :wqa <CR>
map f :wq <CR>
map t :tabclose <CR>
map m :q! <CR>
+" Special savel all and quit
+" We're using an additional :w to make sure the current buffer will be saved
+" even if not updated (useful for message composition under the mutt mail client).
+map q :w <CR>:wqa <CR>
+
" NERDTree section
" Thanks to http://stackoverflow.com/questions/1447334/how-do-you-add-nerdtree-to-your-vimrc