dotfiles

Personal dotfiles
git clone https://git.bracken.jp/dotfiles.git
Log | Files | Refs | LICENSE

commit 55a92a367eae9b8b0645962331e15f7fccf9040f
parent 7180bce4345e790cc6f2d91e8dce839217be788f
Author: Chris Bracken <chris@bracken.jp>
Date:   Wed, 24 Aug 2016 22:21:31 -0700

C-n cycles through regular, relative, no numbering

Diffstat:
M.vim/vimrc | 9++++++---
1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/.vim/vimrc b/.vim/vimrc @@ -63,10 +63,13 @@ set completeopt+=longest " Toggle relative numbering function! ToggleNumbering() - if (&relativenumber == 1) - set norelativenumber - else + if (&number == 0) + set number + elseif (&relativenumber == 0) set relativenumber + else + set norelativenumber + set nonumber endif endfunc nmap <C-n> :call ToggleNumbering()<CR>