Skip to content

Instantly share code, notes, and snippets.

@txus
txus / numlock.vim
Created September 23, 2010 08:04 — forked from oriolgual/numlock.vim
" Add it to your local vimrc
" Toggle it with <F4> in normal mode
let g:numberlock = 0
let g:numberlock_layout = 'us'
nnoremap <silent><F4> :call NumberLock()<CR>
function! NumberLock()
if g:numberlock
let g:numberlock = 0