Giter Club home page Giter Club logo

vim-please-dont's Introduction

please-dont is a vim plugin that "indents" code in a way that you please shouldn't indent it in.

demo.jpg

Usage

Please don't.

Here's what the plugin can do though:

  • By default, the plugin is disabled. Typing :PleaseDont in normal mode enables it.
  • To disable it, type :PleaseDo
  • By default, your brackets and semicolons will land on column 80. If you want to change that to some other value, you can add let g:pleasedont_indent_col = <NUMBER> to your .vimrc.

Installation

  • On Arch Linux: pacaur -S vim-please-dont-git
  • On vanilla vim:
git clone https://github.com/PawkyPenguin/vim-please-dont.git
cp vim-please-dont/please-dont/please-dont.vim ~/.vim/plugin
  • On a system with some kind of vim plugin management installed (such as Vundle or pathogen), you hopefully already know what to do ;)

TODO

  • The indentation settings are not restored correctly when working with multiple buffers.
  • Opening a new buffer also causes some problems with indentation settings.
  • For-loops are fairly broken right now.

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.