[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: text editors



On 29.03.19 17:26, Erik Christiansen wrote:
> " Toggle relative line numbering.
> function! NList_toggle()
>     if &rnu == 1
>      set nornu                " For absolute, elide the 'r'.
>   else
>      set rnu                  " For absolute, elide the 'r'.
>   endif
> endfun

Apologies. There's almost always something omitted when pasting from
elsewhere. Let's include the connection to the F1 key:

noremap <F1> :call NList_toggle()

A more meaningful function name would be better, too.
(but important here is only the connection, and the toggling, for the
moment.)

Erik


Reply to: