Skip to content

LEI/dot-vim

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published