8000 GitHub - Pinaki82/indent-code: A Vim plugin to indent code.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Pinaki82/indent-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

indent-code

A Vim plugin to indent code. Indents code while saving a file.

Write the following lines to your .vimrc for convenience.

filetype plugin indent on
set autoindent
set smartindent
set copyindent                  " copy the previous indentation on autoindenting
set preserveindent              " save as much indent structure as possible
set tabstop=2                   " a tab is two spaces
set shiftwidth=2                " number of spaces to use for autoindenting
set softtabstop=2

Vim can indent lines of codes from the Normal mode with a key sequence.

In Normal mode:

Type

gg

Then type

=G

To indent code from the Command mode using this plugin, type:

:IndentCode

Or access it from the menu bar option.

About

A Vim plugin to indent code.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0