dotfiles

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

commit 3d2ef36486f82b951cdbcb7a7fbe5ef30ccd6212
parent 9741d8f5a13c70d422321d1b3e72ba76cd3d2bba
Author: Chris Bracken <chris@bracken.jp>
Date:   Wed,  6 Mar 2013 17:00:39 -0800

Default to relative numbering, but support toggling via <C-n>.

Diffstat:
M.vim/.vimrc | 12+++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/.vim/.vimrc b/.vim/.vimrc @@ -16,11 +16,21 @@ unlet s:cpo_save set incsearch " Turn on incrememental searching set hlsearch " Highlight search set visualbell " Less noise -set nu " Line numbering +set relativenumber " Relative line numbering set ruler " Show row/col in status set showmatch " Flash matching paren set history=50 " 50 lines of cmdline history +" Toggle relative numbering +function! RelNumToggle() + if (&relativenumber == 1) + set number + else + set relativenumber + endif +endfunc +nnoremap <C-n> :call RelNumToggle()<CR> + " Indentation/tabulation set autoindent set smartindent