Skip to content

Use user configured textwidth if it is set #286

Closed

Description

@phansch

rust.vim version: rewritten-indent branch (unrelated to the issue)

Steps to reproduce:

  1. Create a .vimrc which sets textwidth=80
  2. Open a Rust file
  3. Run :set textwidth -> it's at 99

Expected vs. actual behavior:

I expected the textwidth not to be changed by rust.vim.

It seems to be set here:

setlocal textwidth=99

I think it makes more sense to only set it, if it is not already set.

Activity

  1. chris-morgan commented on Dec 6, 2018

    @chris-morgan
    Member

    See the g:rust_recommended_style variable. Set it to zero if you don’t want this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions