Coder Social home page Coder Social logo

indent-detector.vim's Introduction

Indent Detector

这里有中文说明

features

  • detect mixed indent(indent with both spaces and tabs) and echo warnning on bufEnter and bufWrite automatically.
  • switch setting about indenting to fit the current indenting style automatically.
  • detecting time is limited, so you don't need to worry about opening huge files.

note

  • the options decided by this plugin are expandtab smarttab tabstop shiftwidth softtabstop, and is setted via setlocal.
  • your own setting about indenting is also used as default when the indenting style is not decided. (when you create an empty file or enter a file which occurs no leading spaces or tabs)
  • this plugin will do nothing when you open an readonly file (:echo &readonly to check that), so that you can open help files without warnning.

install

via Vundle:

Bundle 'luochen1990/indent-detector.vim'

manually

put indentdetector.vim to directory ~/.vim/plugin or vimfiles/plugin

remenber to restart your vim after installation

settings

  • let g:indent_detector_tabstop= - set tabstop, default is global tabstop settings
  • let g:indent_detector_shiftwidth= - set shiftwidth, default is global shiftwidth settings
  • let g:indent_detector_softtabstop= - set softtabstop, default is global softtabstop settings
  • let g:indent_detector_echolevel_enter= - default is 3
  • let g:indent_detector_echolevel_write= - default is 2

echolevel: 0 - none; 1 - error; 2 - warnning; 3 - info (all)

indent-detector.vim's People

Stargazers

 avatar

Watchers

 avatar

Forkers

gdh1995

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.