projects
/
shutils.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vimrc: add detectindent
[shutils.git]
/
dotfiles
/
vim
/
.vimrc
diff --git
a/dotfiles/vim/.vimrc
b/dotfiles/vim/.vimrc
index 54f8399206dde4032abbd029163835e246a12d2b..ecb9f004faa9463fb45525d6643331f657fba8f1 100644
(file)
--- a/
dotfiles/vim/.vimrc
+++ b/
dotfiles/vim/.vimrc
@@
-8,16
+8,18
@@
"option and setting.
"option and setting.
+" Pathogen runtime path manipulation
+"call pathogen#infect() "Using the infect method breaks ft detection
+call pathogen#runtime_append_all_bundles()
+
+"Activate syntax highlighting
+syntax on
"Activate filetype plugins: syntax highlighting, indentation, and more
"Activate filetype plugins: syntax highlighting, indentation, and more
-filetype plugin on
-filetype indent on
-filetype on
+filetype plugin indent on
set modeline
set modeline
-
set autoindent
set autoindent
-"set tabstop=4
set number
set bs=2
set number
set bs=2
@@
-39,9
+41,6
@@
set incsearch
set hlsearch
set hlsearch
-"Activate syntax highlighting
-syntax on
-
"Power saving tip: powertop-homepage
let &guicursor = &guicursor . ",a:blinkon0"
"According to vim help -- enable mouse in xterm...
"Power saving tip: powertop-homepage
let &guicursor = &guicursor . ",a:blinkon0"
"According to vim help -- enable mouse in xterm...
@@
-62,9
+61,9
@@
au Filetype python,tex,c,cpp,cs,objc,java syn match BadWhitespace /\s\+$/ contai
" set list to activate
set listchars=tab:»,trail:·,eol:$
" set list to activate
set listchars=tab:»,trail:·,eol:$
-
-"
Pathogen runtime path manipulation
-call pathogen#infect()
+au Filetype python,tex,c,cpp,cs,objc,java :DetectIndent
+"
let g:detectindent_preferred_expandtab = 1
+"let g:detectindent_preferred_indent = 4
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""