Shorts. by Jeff Kreeftmeijer

Vim: Indentation in rust.vim

While playing around with Rust, one of the things I noticed was that rust.vim changed my tabstop, shiftwidth and softtabstop settings to use 4 spaces instead of 2, as per the Rust style guide:

Use 4 spaces for indentation, not tabs.

If, for some reason, you want to ignore the style guide and get your global settings back, simply turn the g:rust_recommended_style option off in your ~/.vimrc:

let g:rust_recommended_style = 0