Skip to content

Latest commit

 

History

History
56 lines (39 loc) · 2.07 KB

README.md

File metadata and controls

56 lines (39 loc) · 2.07 KB

Deno 1.45.0+ Vim 9.0.1499+ Neovim 0.8.0+ MIT License test

vim-detect-indent

A Vim/Neovim plugin to detect indentation options automatically powered by denops.vim.

Usage

Once you install this plugin, indentation options will be detected automatically.

If you want to customize its behavior, see the documentation.

Similar Plugins / Algorithm

There are great existing similar plugins. For example:

vim-detect-indent uses simpler algorithm: what majority of indented lines are indented with. If indented with the hard tab, noexpandtab will be set. If indented with spaces, expandtab and shiftwidth={n} will be set. vim-detect-indent’s behavior is easy to expect due to its simple algorithm. vim-detect-indent doesn’t cover all indentation cases but aims to work nice in many common cases.

Installation

For dein.vim users:

call dein#add("kg8m/vim-detect-indent")

For vim-plug users:

Plug 'kg8m/vim-detect-indent'

Requirements

  • Deno
  • denops.vim
  • Vim or Neovim

Supported version of Deno, Vim, and Neovim depends on denops.vim. Please see denops.vim’s README.