Changeset 391 for python/trunk/Misc/Vim/vimrc
- Timestamp:
- Mar 19, 2014, 11:31:01 PM (11 years ago)
- Location:
- python/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
python/trunk
-
Property svn:mergeinfo
set to
/python/vendor/Python-2.7.6 merged eligible /python/vendor/current merged eligible
-
Property svn:mergeinfo
set to
-
python/trunk/Misc/Vim/vimrc
r2 r391 16 16 " Some suggested options are listed but commented out at the end of this file. 17 17 18 " Number of spaces that a pre-existing tab is equal to. 19 " For the amount of space used for a new tab use shiftwidth. 20 au BufRead,BufNewFile *py,*pyw,*.c,*.h set tabstop=8 18 21 19 " Number of spacesto use for an indent.22 " What to use for an indent. 20 23 " This will affect Ctrl-T and 'autoindent'. 21 24 " Python: 4 spaces 22 " C: 8 spaces (pre-existing files) or 4 spaces (new files)25 " C: tabs (pre-existing files) or 4 spaces (new files) 23 26 au BufRead,BufNewFile *.py,*pyw set shiftwidth=4 24 au BufRead *.c,*.h set shiftwidth=825 au BufNewFile *.c,*.h set shiftwidth=426 27 " Number of spaces that a pre-existing tab is equal to.28 " For the amount of space used for a new tab use shiftwidth.29 " Python: 830 " C: 831 au BufRead,BufNewFile *py,*pyw,*.c,*.h set tabstop=832 33 " Replace tabs with the equivalent number of spaces.34 " Also have an autocmd for Makefiles since they require hard tabs.35 " Python: yes36 " C: no37 " Makefile: no38 27 au BufRead,BufNewFile *.py,*.pyw set expandtab 39 au BufRead,BufNewFile *.c,*.h set noexpandtab 28 fu Select_c_style() 29 if search('^\t', 'n', 150) 30 set shiftwidth=8 31 set noexpandtab 32 el 33 set shiftwidth=4 34 set expandtab 35 en 36 endf 37 au BufRead,BufNewFile *.c,*.h call Select_c_style() 40 38 au BufRead,BufNewFile Makefile* set noexpandtab 41 39 42 " Use the below highlight group when displaying bad whitespace is desired 40 " Use the below highlight group when displaying bad whitespace is desired. 43 41 highlight BadWhitespace ctermbg=red guibg=red 44 42
Note:
See TracChangeset
for help on using the changeset viewer.