diff --git a/.vim/plugin/indent_finder.py b/.vim/indent_finder/indent_finder.py similarity index 100% rename from .vim/plugin/indent_finder.py rename to .vim/indent_finder/indent_finder.py diff --git a/.vim/plugin/indent_finder.vim b/.vim/indent_finder/indent_finder.vim similarity index 100% rename from .vim/plugin/indent_finder.vim rename to .vim/indent_finder/indent_finder.vim diff --git a/.vim/plugin/indent_finder.pyc b/.vim/plugin/indent_finder.pyc deleted file mode 100644 index b63046d..0000000 Binary files a/.vim/plugin/indent_finder.pyc and /dev/null differ diff --git a/.vimrc b/.vimrc index 4fb5d6d..da494f6 100644 --- a/.vimrc +++ b/.vimrc @@ -85,19 +85,27 @@ set statusline=%<%f\ %h%w%m%r%3.(\ %)%{fugitive#statusline()}%=%([%{Tlist_Get_Ta " always display status line set laststatus=2 +" show bad white spaces +let c_space_errors = 1 +let python_space_error_highlight = 1 +highlight link cSpaceError SpaceError +highlight link pythonSpaceError SpaceError +highlight SpaceError ctermfg=235 cterm=reverse + """"""""""""""" " INDENTATION " """"""""""""""" " use tabs at the start of a line, spaces elsewhere " set smarttab -set smartindent -set autoindent +" set smartindent +" set autoindent " tab=4 set tabstop=4 set softtabstop=4 set shiftwidth=4 " real tabs set noexpandtab +set smarttab if has("autocmd") " python @@ -115,9 +123,9 @@ endif if has("autocmd") " enable file type detection and do language-dependent indenting - filetype plugin indent on + " filetype plugin indent on " detect indentation see http://www.freehackers.org/Indent_Finder - autocmd BufReadPost * execute system ('python2 ~/.vim/plugin/indent_finder.py --vim-output "' . expand('%') . '"' ) + autocmd BufReadPost * execute system ('python2 ~/.vim/indent_finder/indent_finder.py --vim-output "' . expand('%') . '"' ) else " auto-indent @@ -378,9 +386,6 @@ set tags=./tags " in file directory set tags+=tags " in current directory "for when programming in build dir set tags+=../tags -set tags+=~/.vim/qttags -set tags+=~/.vim/qtembedded -set tags+=~/.vim/tags/linux-sh4-ST-2.6.23.17 """""""""""""""""""""""""""""""""""""""""""""""""" "Poser une marque visible avec F7