An open API service indexing awesome lists of open source software.

https://github.com/hrsh7th/vim-gindent

General indentexpr plugin for vim and nvim.
https://github.com/hrsh7th/vim-gindent

Last synced: 5 months ago
JSON representation

General indentexpr plugin for vim and nvim.

Awesome Lists containing this project

README

          

# vim-gindent

General indentexpr plugin for vim and nvim.

# Usage

I don't recommend enabling `vim-gindent` on all filetypes.

You should specify only for filetypes that the indentation doesn't work properly.

```
let g:gindent = {}
let g:gindent.enabled = { -> index(['vim', 'php', ...], &filetype) != -1 }
```

# Note

- This plugin provides very basic indentexpr.
- This plugin supports `vim` filetype and the general language that uses `{}` / `()` / `[]` / `<>` for indentation.