Skip to content

kennykaye/vim-relativity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

vim-relativity

Toggle relative line numbers with ease.

Demo

relativity

Installation

Please use your favorite plugin manager.

Using vim-plug:

  Plug 'kennykaye/vim-relativity'

Commands

Command Description
:Relativity Toggle Relativity on/off
:Relativity! Turn Relativity off

Options

Option Default Description
g:relativity_insert_toggle 1 Enables toggling on InsertEnter and InsertLeave.
g:relativity_focus_toggle 1 Enables toggling on FocusEnter and FocusLeave.
g:relativity_current_absolute 1 Displays absolute line number for current line.
g:relativity_enabled_on_start 1 Enable Relativity automatically when vim starts.
g:relativity_buftype_ignore ['nofile'] A list of buffer types to disable toggling for.
g:relativity_filetype_ignore ['controlp', 'nerdtree', 'fugitive', 'tagbar', 'agsv', 'fzf'] A list of filetypes to disable toggling for.

Inspiration

Inspired by numbers.vim and vim-numbertoggle

License

MIT

About

Toggle relative line numbers with ease.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published