NeoVintageous 1.10.0 is out. The highlights in this release include scrolling horizontally, sorting text, and opening files under the cursor.

Scrolling horizontally

Four new scrolling commands have been added. All horizontal scrolling commands only work when 'word_wrap' is off. You can toggle word wrapping with the Unimpaired command cow (mnemonic: “change option wrap”).

command action
zl or z<Right> Move the view on the text [count] characters to the right.
zh or z<Left> Move the view on the text [count] characters to the left.
zL Move the view on the text half a screenwidth to the right.
zH Move the view on the text half a screenwidth to the left.

Sorting text

:sor[t] [i][u]

With [i] case is ignored, and with [u] only the first sequence of identical lines is kept. Note that leading and trailing white space may cause lines to be different.

You can visually select text to sort it, otherwise the entire file will be sorted. For example, useful visual selections commands you might try using are vii, vi], and vi).

Ex commands can be mapped too. Try creating a visual mode unique sort, which makes it easier to uniquely sort blocks e.g. vii,s,vi],s, vi),s:

let mapleader=,
vnoremap <leader>s :sort u<CR>

Opening files under the cursor

The new command gf edits the file whose name is under or after the cursor. (Mnemonic: “goto file”). There is also the gx command, which will open a url in a new page (“tab”) of the default browser.

Further reading

  • :h :sort
  • :h text-objects
  • :h unimpaired