ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Vintage Relative Lines

by bicarlsen ST3

Relative numbering for Sublime Text's Vintage mode.

Details

Installs

  • Total 609
  • Win 278
  • Mac 168
  • Linux 163
Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12 Mar 11 Mar 10
Windows 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 2 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1
Mac 0 1 0 0 0 0 0 0 1 2 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0
Linux 0 0 0 0 2 0 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

Vintage Relative Numbering

Relative numbering for Sublime's Vintage mode.

Example

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)

  1. Install Package Control.

  2. Run the “Package Control: Install Package” command.

  3. Find and install the “Vintage Relative Lines” plugin.

  4. Restart Sublime Text if there are issues.

Manually

  1. Navigate to Sublime's Packages directory.

    This can be found by opening up Sublime's console (Ctrl + ` (backtick), or View > Show Console ), and run sublime.packages_path().

  2. 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, and absolute.

  • When using native numbering the modes are hybrid and absolute.

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.