Skip to content

Latest commit

 

History

History
78 lines (45 loc) · 1.67 KB

README.md

File metadata and controls

78 lines (45 loc) · 1.67 KB

dot-vim

Requirements

Manual installation

Clone and change directory

git clone https://github.com/LEI/dot-vim.git ~/.dot/vim && cd $_

Create the directory ~/.vim

mkdir -p ~/.vim

Link files to home directory

ln -isv ~/.dot/vim/{*.vim,autoload,config,ftdetect,ftplugin,plugin} ~/.vim

Source ~/.vim/init.vim from ~/.vimrc

echo 'source ~/.vim/init.vim' >> ~/.vimrc

Nvim

ln -isv ~/.dot/vim ~/.config/nvim
ln -isv ~/.dot/vim/lua ~/.vim

Gvim

echo 'source ~/.vim/ginit.vim' >> ~/.gvimrc

Resources

Usage

Plugins

minpac (Vim 8)

:call minpac#update()

vim-plug v:version < 800

Install plugins

:PlugInstall

Update plugins

:PlugUpdate

Upgrade vim-plug itself

:PlugUpgrade

Mappings

Fix Ctrl-h in Terminal.app

Default key_backspace (kbs) entry on OS X is ^H (ASCII DELETE).

Set it to \177 (ASCII BACKSPACE) with these commands:

infocmp $TERM | sed 's/kbs=^[hH]/kbs=\\177/' > $TERM.ti
tic $TERM.ti