aserebryakov / filestyle

filestyle is a Vim plugin that highlights unwanted whitespace and characters.
http://www.vim.org/scripts/script.php?script_id=5065
Apache License 2.0
30 stars 5 forks source link

[FEATURE]: Style fixing #15

Closed aserebryakov closed 9 years ago

aserebryakov commented 9 years ago

Requirements:

  1. User should be able to fix style errors with a command
  2. Trailing spaces should be removed
  3. Tabs should be replaced by spaces dependently on expandtab option set
  4. Spaces in the beginning of the line should be replaces by tabs if noexpandtab option is set
  5. In case of control symbols in the file, user should be asked if they will be removed
aserebryakov commented 9 years ago

There is an issue with fixing indentation with spaces in case of noexpandtab option.

%redab! also can replace sequences of spaces in the middle of line with \t, that actually doesn't fit the required functionality.

aserebryakov commented 9 years ago

Implemented and commited to branch 0.7.0-dev