Vim sneak - fairulazmin/note GitHub Wiki

Install vim sneak

Add plugin

open the ~/.vim/vim-plug/plugins.vim and ~/.config/nvim/vim-plug/plugins.vim file via nvim/vim and add the following code:

call plug#begin('~/.vim/autoload/plugged')
  ...
  ...
  ...
  " Plugin for vim-sneak
  Plug 'justinmk/vim-sneak'
call plug#end()

Install the plugin

Vim / Neovim

Open Vim

vim

Open Neovim

nvim

Install the plugins

:PlugInstall

Create plug config file

Vim

Create sneak.vim file

touch ~/.vim/vim-plug/sneak.vim

Neovim

Create a sneak.vim file

touch ~/.config/nvim/vim-plug/sneak.vim

Add settings

open the ~/.vim/vim-plug/sneak.vim or ~/.config/nvim/vim-plug/sneak.vim file via vim and add the following code:

let g:sneak#label = 1

Source the plugins

Vim

Add the following line to .vimrc

source $HOME/.vim/vim-plug/sneak.vim

Neovim

Add the following line to init.vim

source $HOME/.config/nvim/vim-plug/sneak.vim