summaryrefslogtreecommitdiff
path: root/.vimrc
diff options
context:
space:
mode:
authorben <benjaminfranzke@gmail.com>2010-01-31 01:08:13 +0100
committerben <benjaminfranzke@gmail.com>2010-01-31 01:10:17 +0100
commit55b917297263b4d6820bde46c2f5b0f07577daf5 (patch)
treee2d70f89fdf8effdfd5e1618b2217351e295dbea /.vimrc
parent3eedbc3a1e955b2db5f38927dd929cde8007835a (diff)
downloaddotfiles-55b917297263b4d6820bde46c2f5b0f07577daf5.tar.gz
dotfiles-55b917297263b4d6820bde46c2f5b0f07577daf5.tar.bz2
dotfiles-55b917297263b4d6820bde46c2f5b0f07577daf5.zip
vimrc: set tabstop to 8 spaces & nonumber for man
Diffstat (limited to '.vimrc')
-rw-r--r--.vimrc10
1 files changed, 7 insertions, 3 deletions
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