Adrián Bíro

Vim notes

Create session

:mksession ~/.vim/sessions/bum.vim

Rstore session

:source ~/.vim/sessions/bum.vim
vim -S ~/.vim/sessions/bum.vim

Create file and nested directories

function mkvim()
{ 
    mkdir -p "${1%/*}"; vim "${1}"; 
}

Delete all up dgg, delete all down dG