Skip to content

Instantly share code, notes, and snippets.

@berikv
Created February 25, 2019 13:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save berikv/5aaeae2945a9153f9de46eda69222ce0 to your computer and use it in GitHub Desktop.
Save berikv/5aaeae2945a9153f9de46eda69222ce0 to your computer and use it in GitHub Desktop.

Add this to your ~/.vimrc:

" Add reviewers as a dictionary
set dictionary=~/.reviewers

" Use dictionary in completion suggestions
set complete+=k

" Consider . as a keyword, makes sure user.name is completed in one go
set iskeyword+=.

Add your reviewers to ~/.reviewers. Each line contains one reviewer username.

Now when in vim, insert the first letters of a reviewers name, then complete the name using ctrl+n / ctrl+p.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment