Skip to content

zoubin/vim-tabstop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

vim-tabstop

Set tabstop option in vim

Usage

If you use Vundle, put this in your .vimrc

Plugin "zoubin/vim-tabstop"

Now you can use the command Tabstop:

:Tabstop 2 " set tabstop to 2
:Tabstop 4 " set tabstop to 4

Or:

: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

" 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"
:Tabstop " set tabstop to 4
:Tabstop " set tabstop to 8
:Tabstop " set tabstop to 2
:Tabstop " set tabstop to 4

About

Switch tagstop option in vim

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published