Add vim-new function to complement vim-resume
This commit is contained in:
parent
57c42233a3
commit
f4ab7035c4
2 changed files with 6 additions and 0 deletions
|
@ -43,6 +43,11 @@ fi
|
||||||
|
|
||||||
alias vim="nvim"
|
alias vim="nvim"
|
||||||
|
|
||||||
|
function vim-new {
|
||||||
|
rm -f Session.vim
|
||||||
|
vim -c "Obsession"
|
||||||
|
}
|
||||||
|
|
||||||
function vim-resume {
|
function vim-resume {
|
||||||
if test -f "Session.vim"; then
|
if test -f "Session.vim"; then
|
||||||
vim -S Session.vim
|
vim -S Session.vim
|
||||||
|
|
|
@ -3,3 +3,4 @@ set background=light
|
||||||
|
|
||||||
colorscheme base16-grayscale-light
|
colorscheme base16-grayscale-light
|
||||||
"colorscheme off
|
"colorscheme off
|
||||||
|
"syntax off
|
||||||
|
|
Loading…
Reference in a new issue