Code Monkey home page Code Monkey logo

indentline's People

Contributors

alefpereira avatar alex-shamshurin avatar andyearnshaw avatar cdonovick avatar chirvo avatar faceleg avatar frace avatar frelind avatar gerrard00 avatar haya14busa avatar icymind avatar junegunn avatar justinmk avatar kaorudev avatar konfekt avatar lubergalexander avatar marabesi avatar mike325 avatar mluts avatar nixprime avatar nunoh avatar padde avatar pesarkhobeee avatar pspencil avatar rbtnn avatar stardiviner avatar tek avatar wincent avatar xinleibird avatar yggdroot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

indentline's Issues

Character size, or image?

Any idea if adding an image is possible or in the future, or if making the char size small is feasible. I am trying to get it as close to sublime text 2 indent line feature as possible. They use period characters and are very small.

sublime text image

Is there any option to make the sign '|' not copied

hi, I got a problem, when I use mouse select and copy the code in the terminal, and paste to another file, the indent sign '|' was copied & pasted too.(use yy&p is fine)
I wander if it is possible to avoid that.
thx

Using TABs and spaces not consistent.

When I use tabs and spaces mixed, the color of the guides does not seem to be the same for both those options.

For one thing, it seems the character used need to be specified using both the following lines:

let g:indentLine_char = '┆'
set list lcs=tab:\┆\

otherwise it does not get consistently set. What am I missing?

set conceallevel=1 causes many problems

Hi,
I'm a indentLine user and in there is a line set conceallevel=1 and set concealcursor=inc in indentLine.vim, making some characters always invisible when i'm editing vimwiki or LaTeX file.

Broken slim and haml syntax

Removing line exec 'syn match IndentLine /\%(^\)\@! \{'.(space-1).'}\zs / containedin=ALL contained conceal cchar=' . g:indentLine_char in this e31f896 commit breaks slim and haml syntax.
Maybe it breaks syntax highlighting for other types as well, I didn't heck.

syntax broken in .css.scss file

Have not tried other file yet, all default setting for indentLine and it broken .css.scss file syntax highligh

with indentLine
screen shot 2013-12-11 at 10 28 52 am

Manually removed indentLine char
screen shot 2013-12-11 at 10 29 18 am

More screen capture
screen shot 2013-12-11 at 11 08 44 am

The indent line disappears after switching files

How to replicate:

Assume we have 2 files (a.rb and b.rb)

  1. Open a.rb, the indent line is shown.
  2. Open b.rb, the indent line is shown.
  3. Switch back to a.rb (I use bufexplorer), the indent line disappears.
  4. When you open a new file, the indent line appears, but after switching to another file and switching back, the line disappears.

Indent line color overriden by the color theme

I use the base16-vim railscasts theme. It defines a color for the Conceal group, which overrides the highlighting that indentLine defines. The only way I found to fix that problem is to fork the theme and hardcode the color I want in it.

Isn't there a way to prevent the theme from overriding the indent lines color?

Update examples in Readme

It would be nice to have some example configurations shown in the Readme along with screenshots. I'll do that when i have spare some time ;-)

Request: Highlight possibility?

Firstly, thought I should let you know I really enjoy the plugin. I used sublime text at one point and thought these unobtrusive indent lines were a great feature. I'm glad I have them in vim!

You currently have the variables g:indentLine_color_term and g:indentLine_color_gui to set the foreground color of indentLine's character. You also allow the cursorline to appear over the indentLine character with the variable g:indentLine_noConcealCursor.

Is it possible, with g:indentLine_noConcealCursor=0, to simply change the background color of the indentLine symbol on the cursorline to the CursorLine color group? It would be a cleaner look.

unexpected behavior with tex syntax file

Minimal example:

echo "syntax on" > foo
vim -u path/to/some/texfile

Now source the plugin, go into insert mode and type:

$\le

Results in one empty char and a less-equal sign allthough the typed char are still existent and can be deleted.
Observed on Archlinux with Vim 7.3.875

edit echo instead of cat

Why set `conceallevel` and `concealcursor`?

These two lines overrides my setting in vimrc.
I am not so familiar with vim. Is it necessary for this plugin?
Could you remove these two lines or change them to optional settings?
Thank you.

IndentLine only on the line begginning

Is there any way to turn of this behavior:
snapshot5

I want indentLine to be enabled only for whitespaces from start of the line. Is there any way to do this?

Thank you!

should not change 'conceallevel' in 'help' buffers

setting conceallevel=1 in help buffers makes the concealedchars take up space--but they should be hidden. I don't think anyone needs to see indent levels in help buffers, so indentLine should ignore help buffers.

Effective shiftwidth value is not handled correctly on vim >= 7.3.629

Vim patch 7.3.629 introduces new feature: shiftwidth follows tabstop value if set to 0. Patch 7.3.694 adds shiftwidth() function to get effective shiftwidth value.
As SetIndentLine() uses l:shiftwidth value (0 in my case), error E726 ("Stride is zero") is caught after vim buffer is loaded. Minimal vimrc to reproduce (I use Vim 7.4):

set expandtab
set tabstop=4
if v:version < 703 || (v:version == 703 && !has('patch629'))
  set shiftwidth=4
else
  set shiftwidth=0
endif

Simple solution: use (sw==0 ? ts : sw) logic.
Complex solution: found here (somewhat overblown).
I'm not familiar with vimscript to fix it.

Show first indentation level

When you use set listchars=tab:│\ in order to show tabs along indentLine, the result is not very pretty. This is because indentLine does not show the first indentation level:

screenshot

In general, i think it is good not to show the first indentation level, but listchars doesn't seem to provide this option. (Please correct me if i'm wrong). So i'd like to either be able to display the first indentation level with spaces, or to not display the first indentation level with tabs.

I can think of a few possibilities to address this issue:

  1. Provide an option to set if the first indent level is shown, e.g. g:indentLine_showFirstIndentLevel, default 0
  2. Provide an option to set the minimum indent level, e.g. g:indentLine_minimumIndentLevel, default 1
  3. Extend indentLines to show tabs, too. I admit this is my favourite option, as all indentation visualization would then be handled in one place, and there would be no need for showing the fist indentation level at all. Could be combined with (1) or (2)

:hi Conceal do not stick.

I have

hi Conceal ctermfg=black ctermbg=NONE

in my .vimrc but the indentation lines always comes up in white. From looking at the code you have this line:

https://github.com/Yggdroot/indentLine/blob/master/after/plugin/indentLine.vim#L54

Which overrides the highlight (and it seems that this highlight overrides what I have in my vimrc.)

So either your README is wrong in suggesting the usage of hi Conceal to select color which will be overridden instead of setting the g:indentLine_color_term variable, which will simply be overridden or you should not override the Conceal color at line 54 there.

I don't know enough vim-script to be sure. I guess this might've been a trivial fix for you so...

Set List and line breaking

Dear Yggdroot,

Set List, for example to show indentation lines for the tab character, renders the Set Linebreak option invalid. Thence it could be useful to have the indentation lines for the tab character as well.

The plugin also renders my Set NoList option invalid, even if invoked by an autocmd VimEnter. If explicitly setting Set List lcs=... though, these values are accepted.

Best regards and keep up the good work

EPNGH

filetype support

I think it's a good idea that make the plugin enable/disable when a file is some filetype :D

Broken syntax highlighting

I'm having problem with syntax highlighting in my .scss files. With indentLine plugin it looks like this:
screen shot 2014-03-06 at 9 21 06 am

and without it it looks like this:
screen shot 2014-03-06 at 9 21 55 am

On the first indent level its not happening, only if i go 2 levels deep.

mess up syntax highlighting

I like this plugin. BTW, this plugin mess up my vim syntax highlight after updating.

To fix it, I modified SetIndentLine() from

execute 'syntax match IndentLineSpace /^\s\+/ containedin=ALL contains=IndentLine'
execute 'syntax match IndentLine / \{'.(space-1).'}\zs / contained conceal cchar=' . g:indentLine_char
execute 'syntax match IndentLine /\t\zs / contained conceal cchar=' . g:indentLine_char

to

let pattern = line('$') < g:indentLine_maxLines ? 'v' : 'c'
for i in range(space+1, space * g:indentLine_indentLevel + 1, space)
    exec 'syn match IndentLine /\%(^\s\+\)\@<=\%'.i.pattern.' / containedin=ALL conceal cchar=' . g:indentLine_char
endfor

like the past version then every thing works correctly. Could you set a flag to select the one of them, or fix bug?

Thanks,

Highlighting empty lines

Unfortunately, empty lines in between properly indented and highlighted lines are not highlighted. I'll let the screenshot speak for itself (see lines 116, 120, 124):

2- Default

Can't load plugin in 7.4, MacVim and terminal.

I've installed the plugin using vundle, however none of the commands are available.

I added the following to my .vimrc with no luck:

let g:indentLine_enabled = 1
let g:indentLine_loaded = 1
let g:indentLine_char = '┊'

poor performance

            <img data-src="holder.js/260x120" alt="260x120" style="width: 260px; height: 120px;" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQQAAAB4CAYAAAAUn4wEAAAGQElEQVR4Xu3aPUsdWxQG4LEwKiSFTbQTsUwsRfDvp7KRVBFrEVIEsREJ+HHvHJjDODrH96ghQ9aT5nLD8rjXs/Z+3TNx5fLy8qHxhwABAv8LrAgE+4AAgU5AINgLBAjMBQSCzUCAgECwBwgQeCrghmBXECDghmAPECDghmAPECCwQMAjg+1BgIBHBnuAAAGPDPYAAQIeGewBAgQSAe8QEiU1BIoICIQig9YmgURAICRKaggUERAIRQatTQKJgEBIlNQQKCIgEIoMWpsEEgGBkCipIVBEQCAUGbQ2CSQCAiFRUkOgiIBAKDJobRJIBARCoqSGQBEBgVBk0NokkAgIhERJDYEiAgKhyKC1SSAREAiJkhoCRQQEQpFBa5NAIiAQEiU1BIoICIQig9YmgURAICRKaggUERAIRQatTQKJgEBIlNQQKCIgEIoMWpsEEgGBkCipIVBEQCAUGbQ2CSQCAiFRUkOgiIBAKDJobRJIBARCoqSGQBEBgVBk0NokkAgIhERJDYEiAgKhyKC1SSAREAiJkhoCRQQEQpFBa5NAIiAQEiU1BIoICIQig9YmgURAICRKaggUERAIRQatTQKJgEBIlNQQKCIgEIoMWpsEEgGBkCipIVBEQCAUGbQ2CSQCAiFRUkOgiIBAmOCgT09Pm4uLi/nKPn361BweHj5a6eXlZfP9+/fm/v5+9vfP1ZyfnzdnZ2fzr9vd3W329vZe3fHJyUnTft+tra1mf3//0ecka37v9by6EV84KiAQJrY5ukM3XFb/wA/DoKvtH9Th4etqX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CEUGrU0CiYBASJTUECgiIBCKDFqbBBIBgZAoqSFQREAgFBm0NgkkAgIhUVJDoIiAQCgyaG0SSAQEQqKkhkARAYFQZNDaJJAICIRESQ2BIgICocigtUkgERAIiZIaAkUEBEKRQWuTQCIgEBIlNQSKCAiEIoPWJoFEQCAkSmoIFBEQCEUGrU0CiYBASJTUECgiIBCKDFqbBBIBgZAoqSFQREAgFBm0NgkkAgIhUVJDoIiAQCgyaG0SSAQEQqKkhkARAYFQZNDaJJAI/AcghRH8/bWtmwAAAABJRU5ErkJggg==">

indentLine not appearing

I am using Vim 7.4 and have this in my .vimrc

Bundle 'Yggdroot/indentLine'

When I :BundleInstall and restart I see nothing?

Performance issues

While I really like your plugin, it makes vim unusably slow.

How to reproduce

wget https://raw.github.com/Yggdroot/indentLine/42cf0572926b9c415d2275e040bdcc60c33f9096/after/plugin/indentLine.vim
vim -N -u NONE -S indentLine.vim \
  -c 'syntax on|help grep|wincmd L|set relativenumber|norm 60G'

Then navigate up and down using j and k.

Result

Vim maxes out my 2GHz CPU and becomes unusably slow.

Expected result

A slight impact on performance but definitely not maxing out the CPU and slowing vim down that much.

Version

  • indentLine: 42cf057
  • vim: 7.4b BETA, Included patches: 1-15

Draw indentation on empty lines

Just a low priority, but cool, feature request:

How about drawing indentation on empty lines? They could inherited from the previous one.

screenshot

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.