Config
Viminfo
set viminfo=%,<800,'10,/50,:100,h,f0,n~/.vim/cache/.viminfo
" | | | | | | | + viminfo file path
" | | | | | | + file marks 0-9,A-Z 0=NOT stored
" | | | | | + disable 'hlsearch' loading viminfo
" | | | | + command-line history saved
" | | | + search history saved
" | | + files marks saved
" | + lines saved each register (old name for <, vi6.2)
" + save/restore buffer list
set viminfo=xxx
should come after set nocompatible
if we set '
parameter, then marks and other things set during the buffer editing will persist even after we close vim.
Runtime path
- vim looks for scripts in various directories. The directories that vim will look in is known as the
runtime path
- to see it, type
:set runtimepath?
Runtime directory
Assuming that you're using some flavor of Unix, your personal runtime directory is ~/.vim. This is where you should put any plugin used only by you. You should not install any plugins into the $VIMRUNTIME directory. That directory is intended for plugins distributed with Vim.
Children