https://gist.github.com/ichizok/8d016c1e4c791499d092
And added test.
https://gist.github.com/ichizok/aa54ecfe8aa7c94ce6711b940de16453
* which requires https://groups.google.com/forum/#!topic/vim_dev/tzNKP7EDWYI
Sorry for lack of a description about 'cursorlinenr=0'. I have fixed it.
That is, 'cursorlinenr' is set to:
1: highlighting the line number
0: no highlighting
-1: highlighting depends on 'cursorline' or 'relativenumber'
(this is current behavior.)
In the previous patch, type of 'cursorlinenr' was boolean.
But it must set default value to other than 'on' and 'off', i.e. 'unset' (-1) for the
compatibility with current behavior, and I was not sure whether 'unset' can be
permitted.
(and changing value 'unset' to 'on' or 'off' is irreversible)
Thank you.
I have tried making out 'cursorlineopt' patch.
https://gist.github.com/ichizok/691aa7e848afd4aa8229c7a51aec895b
And test (also requires https://groups.google.com/forum/#!topic/vim_dev/tzNKP7EDWYI).
https://gist.github.com/ichizok/698abaef579911ec5157ba2be138739c
Thank you.
Change: test_cursorline.vim requires only view.vim of https://groups.google.com/forum/#!topic/vim_dev/tzNKP7EDWYI .