Skip to content

Commit

Permalink
vim: set Rust tab conventions
Browse files Browse the repository at this point in the history
  • Loading branch information
lilyball committed Jul 4, 2014
1 parent 935da07 commit 4c1fdd0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/etc/vim/ftplugin/rust.vim
Expand Up @@ -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')

Expand Down

5 comments on commit 4c1fdd0

@bors
Copy link
Contributor

@bors bors commented on 4c1fdd0 Jul 5, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from pcwalton
at lilyball@4c1fdd0

@bors
Copy link
Contributor

@bors bors commented on 4c1fdd0 Jul 5, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging kballard/rust/vim_tab_conventions = 4c1fdd0 into auto

@bors
Copy link
Contributor

@bors bors commented on 4c1fdd0 Jul 5, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kballard/rust/vim_tab_conventions = 4c1fdd0 merged ok, testing candidate = aaff4e0

@bors
Copy link
Contributor

@bors bors commented on 4c1fdd0 Jul 5, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = aaff4e0

Please sign in to comment.