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

Neo​Vintageous​Line​Numbers

by gerardroche ST3

NeoVintageous auto disable relative line numbers in Insert mode.

Details

Installs

  • Total 399
  • Win 166
  • Mac 145
  • Linux 88
May 11 May 10 May 9 May 8 May 7 May 6 May 5 May 4 May 3 May 2 May 1 Apr 30 Apr 29 Apr 28 Apr 27 Apr 26 Apr 25 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
Windows 0 0 0 1 1 1 0 0 0 0 0 2 0 0 0 0 0 0 0 0 1 1 1 1 0 0 0 0 1 0 0 2 0 0 0 1 1 1 0 1 0 0 0 0 2
Mac 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 2 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 1 0 2 2 0 0 1 0 0 0
Linux 0 0 0 0 0 0 0 0 1 0 0 0 1 1 0 0 0 0 0 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 0
01234May 11May 8May 5May 2Apr 29Apr 26Apr 23Apr 20Apr 17Apr 14Apr 11Apr 8Apr 5Apr 2Mar 30May 11 Linux: 0 Mac: 0 Windows: 0May 10 Linux: 0 Mac: 0 Windows: 0May 9 Linux: 0 Mac: 0 Windows: 0May 8 Linux: 0 Mac: 0 Windows: 1May 7 Linux: 0 Mac: 0 Windows: 1May 6 Linux: 0 Mac: 0 Windows: 1May 5 Linux: 0 Mac: 0 Windows: 0May 4 Linux: 0 Mac: 0 Windows: 0May 3 Linux: 1 Mac: 0 Windows: 0May 2 Linux: 0 Mac: 0 Windows: 0May 1 Linux: 0 Mac: 0 Windows: 0Apr 30 Linux: 0 Mac: 0 Windows: 2Apr 29 Linux: 1 Mac: 0 Windows: 0Apr 28 Linux: 1 Mac: 0 Windows: 0Apr 27 Linux: 0 Mac: 0 Windows: 0Apr 26 Linux: 0 Mac: 1 Windows: 0Apr 25 Linux: 0 Mac: 0 Windows: 0Apr 24 Linux: 0 Mac: 0 Windows: 0Apr 23 Linux: 0 Mac: 1 Windows: 0Apr 22 Linux: 0 Mac: 2 Windows: 0Apr 21 Linux: 0 Mac: 0 Windows: 1Apr 20 Linux: 0 Mac: 0 Windows: 1Apr 19 Linux: 0 Mac: 0 Windows: 1Apr 18 Linux: 0 Mac: 0 Windows: 1Apr 17 Linux: 0 Mac: 0 Windows: 0Apr 16 Linux: 0 Mac: 0 Windows: 0Apr 15 Linux: 0 Mac: 0 Windows: 0Apr 14 Linux: 0 Mac: 1 Windows: 0Apr 13 Linux: 0 Mac: 0 Windows: 1Apr 12 Linux: 0 Mac: 0 Windows: 0Apr 11 Linux: 0 Mac: 0 Windows: 0Apr 10 Linux: 1 Mac: 1 Windows: 2Apr 9 Linux: 0 Mac: 0 Windows: 0Apr 8 Linux: 0 Mac: 0 Windows: 0Apr 7 Linux: 0 Mac: 0 Windows: 0Apr 6 Linux: 0 Mac: 1 Windows: 1Apr 5 Linux: 0 Mac: 0 Windows: 1Apr 4 Linux: 0 Mac: 2 Windows: 1Apr 3 Linux: 0 Mac: 2 Windows: 0Apr 2 Linux: 0 Mac: 0 Windows: 1Apr 1 Linux: 0 Mac: 0 Windows: 0Mar 31 Linux: 0 Mac: 1 Windows: 0Mar 30 Linux: 0 Mac: 0 Windows: 0Mar 29 Linux: 0 Mac: 0 Windows: 0Mar 28 Linux: 0 Mac: 0 Windows: 2May 11 Linux: 0 Mac: 0 Windows: 0May 10 Linux: 0 Mac: 0 Windows: 0May 9 Linux: 0 Mac: 0 Windows: 0May 8 Linux: 0 Mac: 0 Windows: 1May 7 Linux: 0 Mac: 0 Windows: 1May 6 Linux: 0 Mac: 0 Windows: 1May 5 Linux: 0 Mac: 0 Windows: 0May 4 Linux: 0 Mac: 0 Windows: 0May 3 Linux: 1 Mac: 0 Windows: 0May 2 Linux: 0 Mac: 0 Windows: 0May 1 Linux: 0 Mac: 0 Windows: 0Apr 30 Linux: 0 Mac: 0 Windows: 2Apr 29 Linux: 1 Mac: 0 Windows: 0Apr 28 Linux: 1 Mac: 0 Windows: 0Apr 27 Linux: 0 Mac: 0 Windows: 0Apr 26 Linux: 0 Mac: 1 Windows: 0Apr 25 Linux: 0 Mac: 0 Windows: 0Apr 24 Linux: 0 Mac: 0 Windows: 0Apr 23 Linux: 0 Mac: 1 Windows: 0Apr 22 Linux: 0 Mac: 2 Windows: 0Apr 21 Linux: 0 Mac: 0 Windows: 1Apr 20 Linux: 0 Mac: 0 Windows: 1Apr 19 Linux: 0 Mac: 0 Windows: 1Apr 18 Linux: 0 Mac: 0 Windows: 1Apr 17 Linux: 0 Mac: 0 Windows: 0Apr 16 Linux: 0 Mac: 0 Windows: 0Apr 15 Linux: 0 Mac: 0 Windows: 0Apr 14 Linux: 0 Mac: 1 Windows: 0Apr 13 Linux: 0 Mac: 0 Windows: 1Apr 12 Linux: 0 Mac: 0 Windows: 0Apr 11 Linux: 0 Mac: 0 Windows: 0Apr 10 Linux: 1 Mac: 1 Windows: 2Apr 9 Linux: 0 Mac: 0 Windows: 0Apr 8 Linux: 0 Mac: 0 Windows: 0Apr 7 Linux: 0 Mac: 0 Windows: 0Apr 6 Linux: 0 Mac: 1 Windows: 1Apr 5 Linux: 0 Mac: 0 Windows: 1Apr 4 Linux: 0 Mac: 2 Windows: 1Apr 3 Linux: 0 Mac: 2 Windows: 0Apr 2 Linux: 0 Mac: 0 Windows: 1Apr 1 Linux: 0 Mac: 0 Windows: 0Mar 31 Linux: 0 Mac: 1 Windows: 0Mar 30 Linux: 0 Mac: 0 Windows: 0Mar 29 Linux: 0 Mac: 0 Windows: 0Mar 28 Linux: 0 Mac: 0 Windows: 2May 11 Linux: 0 Mac: 0 Windows: 0May 10 Linux: 0 Mac: 0 Windows: 0May 9 Linux: 0 Mac: 0 Windows: 0May 8 Linux: 0 Mac: 0 Windows: 1May 7 Linux: 0 Mac: 0 Windows: 1May 6 Linux: 0 Mac: 0 Windows: 1May 5 Linux: 0 Mac: 0 Windows: 0May 4 Linux: 0 Mac: 0 Windows: 0May 3 Linux: 1 Mac: 0 Windows: 0May 2 Linux: 0 Mac: 0 Windows: 0May 1 Linux: 0 Mac: 0 Windows: 0Apr 30 Linux: 0 Mac: 0 Windows: 2Apr 29 Linux: 1 Mac: 0 Windows: 0Apr 28 Linux: 1 Mac: 0 Windows: 0Apr 27 Linux: 0 Mac: 0 Windows: 0Apr 26 Linux: 0 Mac: 1 Windows: 0Apr 25 Linux: 0 Mac: 0 Windows: 0Apr 24 Linux: 0 Mac: 0 Windows: 0Apr 23 Linux: 0 Mac: 1 Windows: 0Apr 22 Linux: 0 Mac: 2 Windows: 0Apr 21 Linux: 0 Mac: 0 Windows: 1Apr 20 Linux: 0 Mac: 0 Windows: 1Apr 19 Linux: 0 Mac: 0 Windows: 1Apr 18 Linux: 0 Mac: 0 Windows: 1Apr 17 Linux: 0 Mac: 0 Windows: 0Apr 16 Linux: 0 Mac: 0 Windows: 0Apr 15 Linux: 0 Mac: 0 Windows: 0Apr 14 Linux: 0 Mac: 1 Windows: 0Apr 13 Linux: 0 Mac: 0 Windows: 1Apr 12 Linux: 0 Mac: 0 Windows: 0Apr 11 Linux: 0 Mac: 0 Windows: 0Apr 10 Linux: 1 Mac: 1 Windows: 2Apr 9 Linux: 0 Mac: 0 Windows: 0Apr 8 Linux: 0 Mac: 0 Windows: 0Apr 7 Linux: 0 Mac: 0 Windows: 0Apr 6 Linux: 0 Mac: 1 Windows: 1Apr 5 Linux: 0 Mac: 0 Windows: 1Apr 4 Linux: 0 Mac: 2 Windows: 1Apr 3 Linux: 0 Mac: 2 Windows: 0Apr 2 Linux: 0 Mac: 0 Windows: 1Apr 1 Linux: 0 Mac: 0 Windows: 0Mar 31 Linux: 0 Mac: 1 Windows: 0Mar 30 Linux: 0 Mac: 0 Windows: 0Mar 29 Linux: 0 Mac: 0 Windows: 0Mar 28 Linux: 0 Mac: 0 Windows: 2

Readme

Source
raw.​githubusercontent.​com

NeoVintageous Line Numbers

NeoVintageous Line Numbers is a Sublime Text plugin that automates the disabling of relative line numbers when entering Insert mode. This feature seamlessly integrates with NeoVintageous, a popular Vim emulator plugin for Sublime Text.

About Relative Line Numbers

Relative line numbers enhance your productivity by simplifying the use of the count feature with various vertical motion commands (e.g., j, k, +, -). They eliminate the need for manual counting, making them especially handy when combined with other commands like y, d, c, <, >, gq, gw, and =.

Support for relative line numbers is available in Sublime Text 4 (build 4074) and can be controlled through the relative_line_numbers setting.

Installation

Method 1: Using Package Control

  1. Open Sublime Text.
  2. Press Ctrl+Shift+P (Windows/Linux) or Cmd+Shift+P (macOS) to open the Command Palette.
  3. Type “Package Control: Install Package” and press Enter.
  4. In the input field, type “NeoVintageousLineNumbers” and select it from the list of available packages.

Method 2: Manual Installation

  1. Visit the NeoVintageousLineNumbers GitHub repository.
  2. Click on the “Code” button and select “Download ZIP.”
  3. Extract the downloaded ZIP file.
  4. Open Sublime Text and go to Preferences -> Browse Packages... to open the Packages folder.
  5. Copy the “NeoVintageousLineNumbers” folder from the extracted ZIP and paste it into the Packages folder.

Method 3: Manual Git Repository Installation

  1. Open a terminal or command prompt.
  2. Navigate to the Sublime Text Packages directory:
    • On Windows: %APPDATA%\Sublime Text\Packages
    • On macOS: ~/Library/Application Support/Sublime Text/Packages
    • On Linux: ~/.config/sublime-text/Packages
  3. Clone the plugin repository directly into the Packages directory using Git:
git clone https://github.com/gerardroche/NeoVintageousLineNumbers.git NeoVintageousLineNumbers

Line Numbers

The relative_line_numbers setting modifies the displayed line numbers to be relative to the cursor's position. When used in combination with the line_numbers setting, it offers three possible configurations (assuming the cursor is on line 3):

'nonu'          'nu'            'nu'
'nornu'         'nornu'         'rnu'

|apple          | 1 apple       | 2 apple
|pear           | 2 pear        | 1 pear
|nobody         | 3 nobody      | 0 nobody
|there          | 4 there       | 1 there

NeoVintageous supports both 'number and 'relativenumber' options, which mirror their underlying Sublime settings. Here are some related Vim commands:

Command Alias Description
:set number :set nu Enable line numbers.
:set nonumber :set nonu Disable line numbers.
:set number! :set nu! Toggle line numbers.
:set relativenumber :set rnu Enable relative line numbers.
:set norelativenumber :set nornu Disable relative line numbers.
:set relativenumber! :set rnu! Toggle relative line numbers.
yon con Toggle line numbers (Unimpaired plugin).
yor cor Toggle relative line numbers (Unimpaired plugin).

For comprehensive information about available options, please refer to this Neovintageous Options blog post.

License

Released under the GPL-3.0-or-later License.