aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiquel Sabaté <mikisabate@gmail.com>2011-11-02 17:50:44 +0100
committerMiquel Sabaté <mikisabate@gmail.com>2011-11-02 17:50:44 +0100
commit75293df445a04686ad422caf53673f76b47df56c (patch)
tree10a846bcc67b71b4704a4a453f7adb3221d47d86
parent67cbcb0e0c8eec26313fbaf70010b2458f36d8f8 (diff)
downloaddotfiles-75293df445a04686ad422caf53673f76b47df56c.tar.gz
dotfiles-75293df445a04686ad422caf53673f76b47df56c.zip
Improved Vim configuration file
-rw-r--r--vimrc37
1 files changed, 31 insertions, 6 deletions
diff --git a/vimrc b/vimrc
index 8b7d976..0627bfd 100644
--- a/vimrc
+++ b/vimrc
@@ -1,7 +1,32 @@
-if has("syntax")
- syntax on
-endif
+" Basics
+set nocompatible
+syntax on
+
+" Vim UI
+set incsearch
+set showmatch
+set showcmd
+set ruler
+
+" Text Formatting/Layout
+set ignorecase
+set smartcase
+
+" Tabs, Indentation
+set textwidth=79
+set tabstop=2
+set shiftwidth=2
+set cindent
+set autoindent
+set smarttab
+set expandtab
+set backspace=indent,eol,start
+
+" Filetypes
+filetype on
+filetype indent on
+filetype plugin on
+
+autocmd FileType ruby set shiftwidth=2
+autocmd FileType c set shiftwidth=4 tabstop=
-if exists('+colorcolumn')
- set colorcolumn=80
-endif