https://github.com/dongweiming/vary.vim
A script to converting tabs to spaces and auto save with remove spaces in end of line
https://github.com/dongweiming/vary.vim
Last synced: 9 months ago
JSON representation
A script to converting tabs to spaces and auto save with remove spaces in end of line
- Host: GitHub
- URL: https://github.com/dongweiming/vary.vim
- Owner: dongweiming
- License: apache-2.0
- Created: 2013-09-07T07:08:44.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2016-07-07T15:01:01.000Z (over 9 years ago)
- Last Synced: 2025-02-15T01:28:06.748Z (10 months ago)
- Language: VimL
- Homepage:
- Size: 113 KB
- Stars: 4
- Watchers: 3
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
vary.vim
========
A script to converting tabs to spaces and auto save with remove spaces in end of line
####Install
Note: I recommend using Tim Pope's pathogen plugin to install this.
See [vim-pathogen](https://github.com/tpope/vim-pathogen). If you've installed
pathogen properly you can install Vary with the following commands.
```
$ cd ~/.vim/bundle
$ git clone https://github.com/dongweiming/vary.vim
```
If you do not use some kind of plug-in management tools, you can use the following
methods to install.
```
$ mkdir ~/.vim/{plugin,doc} -p
$ git clone https://github.com/dongweiming/vary.vim
$ mv vary.vim/doc/vary.txt ~/.vim/doc
```
####Usage
You need to set the following two types of variables to ~/.vimrc:
```
set tabstop=4 # inserts 4 spaces
let g:auto_striptrail = "python,ruby" # Set want to automatically remove
#trailing spaces language types, the default is 'python'
let g:auto_striptab = "python,ruby,cpp" # Set automatically converted
#into spaces type of language
```