diff options
| author | Kevin Ballard <kevin@sb.org> | 2014-07-04 14:09:47 -0700 |
|---|---|---|
| committer | Kevin Ballard <kevin@sb.org> | 2014-07-04 14:09:47 -0700 |
| commit | 4c1fdd065b28b85d879a01870525e2f0699262e9 (patch) | |
| tree | 934841ede14e769fd214a243af49975167f897e8 | |
| parent | 935da0739e71c5581e5e6abb564e18f894e0ec04 (diff) | |
| download | rust-4c1fdd065b28b85d879a01870525e2f0699262e9.tar.gz rust-4c1fdd065b28b85d879a01870525e2f0699262e9.zip | |
vim: set Rust tab conventions
| -rw-r--r-- | src/etc/vim/ftplugin/rust.vim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/etc/vim/ftplugin/rust.vim b/src/etc/vim/ftplugin/rust.vim index 65f9f4105ad..16ed43415c3 100644 --- a/src/etc/vim/ftplugin/rust.vim +++ b/src/etc/vim/ftplugin/rust.vim @@ -31,6 +31,12 @@ setlocal formatoptions-=t formatoptions+=croqnl " j was only added in 7.3.541, so stop complaints about its nonexistence silent! setlocal formatoptions+=j +" smartindent will be overridden by indentexpr if filetype indent is on, but +" otherwise it's better than nothing. +setlocal smartindent nocindent + +setlocal tabstop=4 shiftwidth=4 expandtab + " This includeexpr isn't perfect, but it's a good start setlocal includeexpr=substitute(v:fname,'::','/','g') |
