Correct misleading formatting of several ifs followed by two statements without braces.
[oota-llvm.git] / utils / vim / vimrc
index 6f6441b913367fda0cee80d3681279ef0387aae2..fd87d767d6f414adde0356b4dd77611af894b7ce 100644 (file)
@@ -85,6 +85,13 @@ augroup filetype
   au! BufRead,BufNewFile *.td     set filetype=tablegen
 augroup END
 
+" Enable syntax highlighting for reStructuredText files. To use, copy
+" rest.vim (http://www.vim.org/scripts/script.php?script_id=973)
+" to ~/.vim/syntax .
+augroup filetype
+ au! BufRead,BufNewFile *.rst     set filetype=rest
+augroup END
+
 " Additional vim features to optionally uncomment.
 "set showcmd
 "set showmatch
@@ -92,11 +99,7 @@ augroup END
 "set incsearch
 "set ruler
 
-" Clang code-completion support. This is highly experimental!
-
-" TODO: code-completing on
-"          cast_cast<
-" turns up some peculiarities -- "asm("? 
+" Clang code-completion support. This is somewhat experimental!
 
 " A path to a clang executable.
 let g:clang_path = "clang++"
@@ -162,7 +165,7 @@ function! ClangComplete(findstart, base)
            let l:value = l:value[:l:hidden-1]
         endif
 
-        " Handle Pattern. TODO: Make clang less weird.
+        " Handle "Pattern". TODO: Make clang less weird.
         if l:value == "Pattern"
            let l:value = l:menu
            let l:pound = stridx(l:value, "#")
@@ -220,5 +223,6 @@ function! ClangComplete(findstart, base)
    return []
 endfunction ClangComplete
 
-" Uncomment this to enable the highly-broken autocompletion support.
-"set omnifunc=ClangComplete
+" This to enables the somewhat-experimental clang-based
+" autocompletion support.
+set omnifunc=ClangComplete