Re: How can I toggle line numbers?



Russell Hoover wrote:
I'd like to be able to toggle line numbers on and off in vim.

I tried:

map <F0> :set invnumber number?<CR>

but this didn't work. Anyone have tips?


map <F10> :set invnumber<cr>

Two things: a proper function key number (well, that was probably a typo), and don't put that question mark in. That just queries vim as to what the current setting is.

Dart
.