Giter VIP home page Giter VIP logo

indentline's Introduction

indentLine

This plugin is used for displaying thin vertical lines at each indentation level for code indented with spaces. For code indented with tabs I think there is no need to support it, because you can use :set list lcs=tab:\|\ (here is a space).

Requirements

This plugin takes advantage of the newly provided conceal feature in Vim 7.3, so this plugin will not work with lower versions of Vim.

Installation

To install the plugin just put the plugin files in your ~/.vim (Linux) or ~/vimfiles (Windows).

If you use a plugin manager you can put the whole directory into your ~/.vim/bundle/ directory (Pathogen) or add the line Bundle 'Yggdroot/indentLine' to your .vimrc (Vundle).

Customization

You can change the color of indentLines:
for Vim, set g:indentLine_color_term in your .vimrc, e.g. let g:indentLine_color_term = 239,
for GVim, set g:indentLine_color_gui in your .vimrc, e.g. let g:indentLine_color_gui = '#A4E57E'

You can also change the indentLine char:
for both Vim and GVim, set let g:indentLine_char = 'c' where 'c' can be any ASCII character. You can also use one of ¦, or to display more beautiful lines. However, these characters will only work with files whose encoding is UTF-8.

Self promotion

If you think this script is helpful, follow the GitHub repository, and don't forget to vote for it on Vim.org! (vimscript #4354).

Screenshots

Screenshot

indentline's People

Contributors

frace avatar padde avatar ppwwyyxx avatar stardiviner avatar yggdroot avatar

Watchers

 avatar  avatar

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.