ToggleLineNumberMode : Switch between
| script karma |
Rating 271/74,
Downloaded by 1559 |
Comments, bugs, improvements
|
Vim wiki
|
| created by |
| aj3423 |
| |
| script type |
| utility |
| |
| description |
switch between "Relative" and "Absolute" line number is easy with command
''':set nornu'''
and
''':set rnu'''
it could be more easier by a vim script:
function! g:ToggleNuMode()
if(&rnu == 1)
set nornu
else
set rnu
endif
endfunc
and a Ctrl+L key map
nnoremap <C-L> :call g:ToggleNuMode()<cr>
this is exactly what the script does, you can just put the code into your vimrc if you don't want install a plugin :) |
| |
| install details |
| put it into your vimfiles/plugin |
| |
script versions (upload new version)
Click on the package to download.
ip used for rating: 216.73.216.4
|