diff options
author | Martin Liska <mliska@suse.cz> | 2017-01-05 09:54:58 +0100 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2017-01-05 08:54:58 +0000 |
commit | 6438c2f40fb3c678fb37e7e57f8c93aad2ecaae1 (patch) | |
tree | 357b29321e812eb0c50f637f9cd9e955dc536e7a /contrib | |
parent | d80c6d02fdf0c37596e51392ade43414a350373a (diff) | |
download | gcc-6438c2f40fb3c678fb37e7e57f8c93aad2ecaae1.zip gcc-6438c2f40fb3c678fb37e7e57f8c93aad2ecaae1.tar.gz gcc-6438c2f40fb3c678fb37e7e57f8c93aad2ecaae1.tar.bz2 |
vimrc: fix TAB settings
2017-01-05 Martin Liska <mliska@suse.cz>
* vimrc: Update indentation definition.
From-SVN: r244094
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/ChangeLog | 5 | ||||
-rw-r--r-- | contrib/vimrc | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/contrib/ChangeLog b/contrib/ChangeLog index 3dfd0e1..7068525 100644 --- a/contrib/ChangeLog +++ b/contrib/ChangeLog @@ -1,3 +1,8 @@ + +2017-01-05 Martin Liska <mliska@suse.cz> + + * vimrc: Update indentation definition. + 2017-01-04 Jakub Jelinek <jakub@redhat.com> * update-copyright.py (GCCCmdLine): Add include, libcc1, libiberty, diff --git a/contrib/vimrc b/contrib/vimrc index 34e8f35..7c0c587 100644 --- a/contrib/vimrc +++ b/contrib/vimrc @@ -35,7 +35,10 @@ function! SetStyle() let l:c_exts = ['c', 'h', 'cpp', 'cc', 'C', 'H', 'def', 'java'] if index(l:c_exts, l:ext) != -1 setlocal cindent + setlocal tabstop=8 setlocal softtabstop=2 + setlocal shiftwidth=2 + setlocal noexpandtab setlocal cinoptions=>4,n-2,{2,^-2,:2,=2,g0,f0,h2,p4,t0,+2,(0,u0,w1,m0 setlocal textwidth=80 setlocal formatoptions-=ro formatoptions+=cqlt |