summaryrefslogtreecommitdiff
path: root/utils/vim
diff options
context:
space:
mode:
authorMisha Brukman <brukman+llvm@gmail.com>2005-05-12 21:41:48 +0000
committerMisha Brukman <brukman+llvm@gmail.com>2005-05-12 21:41:48 +0000
commit2bb550864dc84ca1795091b858ee9158119a15aa (patch)
tree264223fb48502673c8050cbf3e30b0a6d1954162 /utils/vim
parentf1dc555329be85fafb94f0f6096ebb6adcc59b77 (diff)
downloadllvm-2bb550864dc84ca1795091b858ee9158119a15aa.tar.gz
llvm-2bb550864dc84ca1795091b858ee9158119a15aa.tar.bz2
llvm-2bb550864dc84ca1795091b858ee9158119a15aa.tar.xz
* Fix wording of the warning
* Add autoindent, smartindent, and smarttab options to the file git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21905 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/vim')
-rw-r--r--utils/vim/vimrc10
1 files changed, 8 insertions, 2 deletions
diff --git a/utils/vim/vimrc b/utils/vim/vimrc
index 6efd59c305..3c872d9862 100644
--- a/utils/vim/vimrc
+++ b/utils/vim/vimrc
@@ -2,8 +2,7 @@
" Maintainer: LLVM Team, http://llvm.cs.uiuc.edu
" Updated: 2005-04-24
" WARNING: Read before you source in all these commands and macros! Some
-" of them may change VIM behavior that you depend on and the
-" settings here may depend on other settings that you may have.
+" of them may change VIM behavior that you depend on.
" Wrap text at 80 cols
set textwidth=80
@@ -13,6 +12,13 @@ set tabstop=2
set shiftwidth=2
set expandtab
+" Optional
+" C/C++ programming helpers
+set autoindent
+set smartindent
+" Add and delete spaces in increments of `shiftwidth' for tabs
+set smarttab
+
" Enable filetype detection
filetype on