From 46479405ab8f87ed80ba4b2ee8e6591a154b0efa Mon Sep 17 00:00:00 2001 From: leo Date: Wed, 26 Apr 2023 14:42:54 +0200 Subject: [PATCH] vimrc: add cmd for session saving --- .vim/vimrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.vim/vimrc b/.vim/vimrc index d6666fb..f6958e8 100644 --- a/.vim/vimrc +++ b/.vim/vimrc @@ -629,6 +629,8 @@ command! WW execute 'silent w !sudo tee % >/dev/null' | edit! command! -nargs=* Make write | make! | cwindow command Note execute 'e ~/Sync/notes/' . strftime('%y-%m-%d-%H:%M:%S') . '.md' command NoteLocal execute 'e ./' . strftime('%y-%m-%d-%H:%M:%S') . '.md' +" easy session saving. +command! Xs :mks! | :xa "save the session, save modified files, and exit " always show full path on nnoremap 1