From 55b917297263b4d6820bde46c2f5b0f07577daf5 Mon Sep 17 00:00:00 2001 From: ben Date: Sun, 31 Jan 2010 01:08:13 +0100 Subject: vimrc: set tabstop to 8 spaces & nonumber for man --- .vimrc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to '.vimrc') diff --git a/.vimrc b/.vimrc index 81d40f5..16805fa 100644 --- a/.vimrc +++ b/.vimrc @@ -14,8 +14,8 @@ set fileformat=unix " force unix-style line breaks set tabpagemax=30 " maximum number of tabs " tabs and indenting "set expandtab " insert spaces instead of tab chars -set tabstop=4 " a n-space tab width -set shiftwidth=4 " allows the use of < and > for VISUAL indenting +set tabstop=8 " a n-space tab width +set shiftwidth=8 " allows the use of < and > for VISUAL indenting set softtabstop=0 " counts n spaces when DELETE or BCKSPCE is used set fileencoding=utf-8 @@ -39,6 +39,7 @@ set laststatus=1 " occasions to show status line, 2=always. set ruler " ruler display in status line set showmode " show mode at bottom of screen set showcmd " display some infos (in visual) + set number " show line numbers set nobackup " disable backup files (filename~) set showmatch " show matching brackets (),{},[] @@ -80,4 +81,7 @@ vnoremap ; : map M :%s/ $//g " mutt rules -au BufRead /tmp/mutt-* set tw=72 spell +autocmd BufRead /tmp/mutt-* set tw=72 spell + +" disable line numbers when using vim als manpager +autocmd FileType man set nonumber -- cgit