vimrc: add cmd for session saving
This commit is contained in:
parent
30be3d8f24
commit
46479405ab
@ -629,6 +629,8 @@ command! WW execute 'silent w !sudo tee % >/dev/null' | edit!
|
||||
command! -nargs=* Make write | make! <args> | 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 <c-g>
|
||||
nnoremap <c-g> 1<c-g>
|
||||
|
Loading…
Reference in New Issue
Block a user