From df5d4efd3327c6d8345a45013f66f735682c03ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robin=20Ob=C5=AFrka?= Date: Thu, 20 Mar 2014 12:42:04 +0100 Subject: Add line numbering switch function --- .vimrc | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to '.vimrc') diff --git a/.vimrc b/.vimrc index 7d54c1b..4eb3c29 100644 --- a/.vimrc +++ b/.vimrc @@ -49,4 +49,14 @@ imap 2Ff/pF map :set textwidth=80 map :set textwidth=0 " ======================================================================= +function! NumberToggle() + if(&relativenumber == 1) + set number + else + set relativenumber + endif +endfunc + +nnoremap :call NumberToggle() +" ======================================================================= source ~/.vim/hicursorwords.vim -- cgit v1.2.3