diff --git a/doc/unimpaired.txt b/doc/unimpaired.txt index b03f42f..e6bf362 100644 --- a/doc/unimpaired.txt +++ b/doc/unimpaired.txt @@ -91,6 +91,7 @@ On Off Toggle Option *[ov* *]ov* *yov* 'virtualedit' *[ow* *]ow* *yow* 'wrap' *[ox* *]ox* *yox* 'cursorline' 'cursorcolumn' (x as in crosshairs) +*[oy* *]oy* *yoy* 'number' 'relativenumber' The mnemonic for y is that if you tilt it a bit it looks like a switch. diff --git a/plugin/unimpaired.vim b/plugin/unimpaired.vim index 81e19a4..d255086 100644 --- a/plugin/unimpaired.vim +++ b/plugin/unimpaired.vim @@ -311,6 +311,10 @@ function! s:CursorOptions() abort return &cursorline && &cursorcolumn ? 'nocursorline nocursorcolumn' : 'cursorline cursorcolumn' endfunction +function! s:NumberOptions() abort + return &number && &relativenumber ? 'nonumber norelativenumber' : 'number relativenumber' +endfunction + function! s:option_map(letter, option, mode) abort exe 'nmap