diff options
author | Robin Obůrka <robin.oburka@nic.cz> | 2014-03-20 12:42:04 +0100 |
---|---|---|
committer | Robin Obůrka <robin.oburka@nic.cz> | 2014-03-20 12:42:04 +0100 |
commit | df5d4efd3327c6d8345a45013f66f735682c03ea (patch) | |
tree | 1754c639665fc32ed4d8d4ce3fa3751141fb305a /.vimrc | |
parent | New mapping of reformat keys (diff) | |
download | vim_sync-df5d4efd3327c6d8345a45013f66f735682c03ea.tar.xz |
Add line numbering switch function
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 |