aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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