summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.vimrc10
1 files changed, 10 insertions, 0 deletions
diff --git a/.vimrc b/.vimrc
index 7d54c1b..4eb3c29 100644
--- a/.vimrc
+++ b/.vimrc
@@ -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