-
Notifications
You must be signed in to change notification settings - Fork 1
Switch between "Relative" / "Absolute" line number
vim-scripts/ToggleLineNumberMode
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This is a mirror of http://www.vim.org/scripts/script.php?script_id=3234 switch between "Relative" and "Absolute" line number is easy with command ''':set nu''' and ''':set rnu''' it could be more easier by a vim script: function! g:ToggleNuMode() if(&rnu == 1) set nu else set rnu endif endfunc and a Ctrl+L key map nnoremap <C-L> :call g:ToggleNuMode()<cr> this is exactly what the script does, you can just put the code into your vimrc if you don't want install a plugin :)
About
Switch between "Relative" / "Absolute" line number