chenwydj
4/11/2020 - 5:23 PM

vim

# allow mouse select & copy-paste
# https://github.com/SpaceVim/SpaceVim/issues/695
mkdir -p ~/.SpaceVim.d/autoload
cat <<EOF >>~/.SpaceVim.d/autoload/custom_init.vim
function! custom_init#before() abort
    set mouse=r
endf
EOF
  • Buffers: /root/.cache/SpaceVim/swap
  • close current file buffer in vim: <space>+b+d
  • toggle file_tree: <space>+f+t
# uninstall
# https://github.com/SpaceVim/SpaceVim/issues/1845
curl -sLf https://spacevim.org/install.sh | bash -s -- --uninstall


# rebuild vimproc
# https://github.com/lmule/vim/issues/2
cd ~/.vim/bundle/vimproc.vim
git pull
make