Skip to content

A few more changes for Vim - #15476

Merged
bors merged 3 commits into
rust-lang:masterfrom
lilyball:more_vim_tweaks
Jul 16, 2014
Merged

A few more changes for Vim#15476
bors merged 3 commits into
rust-lang:masterfrom
lilyball:more_vim_tweaks

Conversation

@lilyball

@lilyball lilyball commented Jul 6, 2014

Copy link
Copy Markdown
Contributor

Tweak the text editing settings (softtabstop, textwidth, etc).

Add some settings to turn on folding and colorcolumn.

Add the undo_ftplugin changes that my previous patch forgot.

@lilyball

lilyball commented Jul 6, 2014

Copy link
Copy Markdown
Contributor Author

/cc @chris-morgan This overlaps with some of what #15450 does as well.

Comment thread src/etc/vim/ftplugin/rust.vim Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

ccu< is only appropriate if exists('g:rust_colorcolumn').

@lilyball

lilyball commented Jul 6, 2014

Copy link
Copy Markdown
Contributor Author

Updated

lilyball added 3 commits July 7, 2014 22:18
g:rust_fold allows folding to be enabled. This lets the user turn on
folding without having to define autocommands.
Setting softtabstop makes <Del> delete 4 spaces as if it were a tab.

Setting textwidth allows comments to be wrapped automatically. It's set
at 80, which is the recommended line length for Rust programs. There are
suggestions that it should be 79, but our current style guide says 80 so
that's what we're matching.

A new setting g:rust_colorcolumn sets colorcolumn as well, to +1,101.
This indicates both the textwidth and the second stricter line length of
100 that our style guide lists.
The latest change to aturon/rust-guidelines states that lines must not
exceed 99 characters. This gets rid of the 80/100 split, so we don't
need to customize colorcolumn amymore.
@lilyball

lilyball commented Jul 8, 2014

Copy link
Copy Markdown
Contributor Author

Updated again, with the latest rust guidelines it appears our line length is just going to be 99.

@lilyball

Copy link
Copy Markdown
Contributor Author

r? @chris-morgan

@chris-morgan

Copy link
Copy Markdown
Member

LGTM.

bors added a commit that referenced this pull request Jul 16, 2014
Tweak the text editing settings (softtabstop, textwidth, etc).

Add some settings to turn on folding and colorcolumn.

Add the undo_ftplugin changes that my previous patch forgot.
@bors bors closed this Jul 16, 2014
@bors
bors merged commit 9dc667d into rust-lang:master Jul 16, 2014
@lilyball
lilyball deleted the more_vim_tweaks branch August 13, 2014 23:42
bors added a commit to rust-lang-ci/rust that referenced this pull request Feb 18, 2024
Substitute $saved_file in custom check commands

If the custom command has a $saved_file placeholder, and we know the file being saved, replace the placeholder and run a check command.

If there's a placeholder and we don't know the saved file, do nothing.

This is a simplified version of rust-lang#15381, which I hope is easier to review.
flip1995 pushed a commit to flip1995/rust that referenced this pull request Sep 4, 2025
…ed (rust-lang#15476)

Closes rust-lang/rust-clippy#15388

changelog: [`semicolon_inside_block`] fix FP when attribute over expr is
not enabled
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants