Better vim resuming
This commit is contained in:
parent
20737ca5ea
commit
b7c2587cb4
2 changed files with 8 additions and 3 deletions
|
@ -42,6 +42,14 @@ fi
|
||||||
|
|
||||||
alias vim="nvim"
|
alias vim="nvim"
|
||||||
|
|
||||||
|
function vim-resume {
|
||||||
|
if test -f "Session.vim"; then
|
||||||
|
vim -S Session.vim
|
||||||
|
else
|
||||||
|
vim -c "Obsession"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
# enable programmable completion features
|
# enable programmable completion features
|
||||||
if ! shopt -oq posix; then
|
if ! shopt -oq posix; then
|
||||||
if [ -f /usr/share/bash-completion/bash_completion ]; then
|
if [ -f /usr/share/bash-completion/bash_completion ]; then
|
||||||
|
|
|
@ -11,9 +11,6 @@ map <C-n> :NERDTreeToggle<CR>
|
||||||
map <C-f> :Files<CR>
|
map <C-f> :Files<CR>
|
||||||
map <C-g> :Rg<CR>
|
map <C-g> :Rg<CR>
|
||||||
|
|
||||||
" Automatically start Obsession if we open a Session file
|
|
||||||
autocmd VimEnter * if !empty(v:this_session) && ObsessionStatus('on', 'off') == 'off' | Obsession | endif
|
|
||||||
|
|
||||||
" Disable mouse input
|
" Disable mouse input
|
||||||
set mouse=
|
set mouse=
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue