Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zoubin/vim-tabstop
Switch tagstop option in vim
https://github.com/zoubin/vim-tabstop
Last synced: 8 days ago
JSON representation
Switch tagstop option in vim
- Host: GitHub
- URL: https://github.com/zoubin/vim-tabstop
- Owner: zoubin
- Created: 2015-06-17T07:48:42.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-09-17T07:46:40.000Z (about 9 years ago)
- Last Synced: 2024-04-09T16:29:08.115Z (7 months ago)
- Language: VimL
- Size: 141 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# vim-tabstop
Set tabstop option in vim## Usage
If you use [Vundle](https://github.com/gmarik/Vundle.vim), put this in your `.vimrc`
```vim
Plugin "zoubin/vim-tabstop"
```
Now you can use the command `Tabstop`:
```vim
:Tabstop 2 " set tabstop to 2
:Tabstop 4 " set tabstop to 4
```Or:
```vim
:Tabstop " set tabstop to 4
:Tabstop " set tabstop to 2
```If no arguments given, it will iterate `[2, 4]` by default.
You can specify the alternatives in your `.vimrc`
```vim
" Put it before Plugin
" Now tabstop is set to 2 at first, and then 4, 8 for each switch
let g:tabstop_alternatives = [2, 4, 8]
Plugin "zoubin/vim-tabstop"
``````vim
:Tabstop " set tabstop to 4
:Tabstop " set tabstop to 8
:Tabstop " set tabstop to 2
:Tabstop " set tabstop to 4
```