vimrc: add cmd for session saving

This commit is contained in:
leo 2023-04-26 14:42:54 +02:00
parent 30be3d8f24
commit 46479405ab
Signed by: wanderer
SSH Key Fingerprint: SHA256:Dp8+iwKHSlrMEHzE3bJnPng70I7LEsa3IJXRH/U+idQ

@ -629,6 +629,8 @@ command! WW execute 'silent w !sudo tee % >/dev/null' | edit!
command! -nargs=* Make write | make! <args> | cwindow command! -nargs=* Make write | make! <args> | cwindow
command Note execute 'e ~/Sync/notes/' . strftime('%y-%m-%d-%H:%M:%S') . '.md' 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' 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 <c-g> " always show full path on <c-g>
nnoremap <c-g> 1<c-g> nnoremap <c-g> 1<c-g>