Vintage Relative Lines
Relative numbering for Sublime Text's Vintage mode.
Details
Installs
- Total 731
- Win 340
- Mac 200
- Linux 191
Oct 24 | Oct 23 | Oct 22 | Oct 21 | Oct 20 | Oct 19 | Oct 18 | Oct 17 | Oct 16 | Oct 15 | Oct 14 | Oct 13 | Oct 12 | Oct 11 | Oct 10 | Oct 9 | Oct 8 | Oct 7 | Oct 6 | Oct 5 | Oct 4 | Oct 3 | Oct 2 | Oct 1 | Sep 30 | Sep 29 | Sep 28 | Sep 27 | Sep 26 | Sep 25 | Sep 24 | Sep 23 | Sep 22 | Sep 21 | Sep 20 | Sep 19 | Sep 18 | Sep 17 | Sep 16 | Sep 15 | Sep 14 | Sep 13 | Sep 12 | Sep 11 | Sep 10 | Sep 9 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 2 | 1 | 2 | 0 | 2 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
Readme
- Source
- raw.githubusercontent.com
Vintage Relative Numbering
Relative numbering for Sublime's Vintage mode.
Install Instructions
Ensure that Vintage mode is enabled for Sublime.
In Command
or Visual
mode you will have control over the line numbering style.
From Package Control (Recommended)
Install Package Control.
Run the “Package Control: Install Package” command.
Find and install the “Vintage Relative Lines” plugin.
Restart Sublime Text if there are issues.
Manually
Navigate to Sublime's Packages directory.
This can be found by opening up Sublime's console (
Ctrl + ` (backtick)
, orView > Show Console
), and runsublime.packages_path()
.Place the
vintage_relnums
folder inside the Packages directory.You can do this by cloning or downloading these files. For cloning, from the Packages directory run
git clone https://github.com/bicarlsen/vintage_relnums.git
in a console.
Commands
Two commands are provided with the plugin.
Toggle Line Mode
Command: vrl_toggle_line_mode
Default Key Map: ctrl + alt + l
Cycles through available line numbering modes.
When using phantoms these modes are
hybrid
,relative
, andabsolute
.When using native numbering the modes are
hybrid
andabsolute
.
Toggle Native
Command: vrl_toggle_native
Default Key Map: ctrl + alt + n
Toggles between using phantoms and native line numbering, if available.
Settings
Change settings for the plugin by opening the Preferences > Package Settings > Vintage Relative Lines
menu, and clicking on Settings - User
. This opens up the user settings file. By clicking on Settings - Default
the default settings file is opened, and all the settings with an explanation are provided.
Keybindings
The default key bindings for the package's commands are given in the Commands section. These bindings can be modified by openeing the Preferences > Package Settings > Vintage Relative Lines
menu and clicking on Key Bindings – Default
. One can add to the deafult key bindings in the Key Bindings – User
file, which is also accesible via Preferences > Key Bindings
.
Helping Out
Please feel free to help out and imporve this plugin. It is my first sublime plugin so is fairly simple and should be easy to improve.
Acknowledgements
I used OdatNurd's Plugin 101 tutorial videos to get started. If you're interested in learning how to develop Sublime plugins it is a great starting point.