diff options
Diffstat (limited to '.vimrc')
-rw-r--r-- | .vimrc | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -49,4 +49,14 @@ imap <C-D> </><Esc>2F<lywf>f/pF<i<Enter><Enter><Up><Tab> map <F12> :set textwidth=80<Enter> map <S-F12> :set textwidth=0<Enter> " ======================================================================= +function! NumberToggle() + if(&relativenumber == 1) + set number + else + set relativenumber + endif +endfunc + +nnoremap <C-n> :call NumberToggle()<cr> +" ======================================================================= source ~/.vim/hicursorwords.vim |