Coder Social home page Coder Social logo

vim-bling's Introduction

BLING

What it does?

This plugin blinks search result after jumping to it (think of n, N, * and #)

Documentation

View vimdoc online.

Installation

Bundles, Vundles and Pathogens.

You know the drill.

MacVim

There is known bug with redraw, which causes cursor to jump strangely.

Read more: issue #3.

vim-bling's People

Contributors

ivyl avatar hoelzro avatar glennie avatar durandj avatar obreitwi avatar ratheesh avatar unc0 avatar

Stargazers

Chris avatar Igor Kriklivetc avatar Jesse Claven avatar Daniel Tabellion avatar  avatar  avatar George Sofianos avatar  avatar ptruser avatar  avatar  avatar Wenxuan avatar  avatar Alex avatar Rodrigo Stuchi avatar Hisayuki Mima avatar Yevhen Malov avatar  avatar Robert Audi avatar Noisy Not avatar Mike Funk avatar Gareth Jones avatar Phong V. Cao avatar Adelar da Silva Queiróz avatar Jonathan Barratt avatar Anton Beloglazov avatar  avatar John Krueger avatar Philipp Schmitt avatar  avatar Steve Vermeulen avatar Michael Yockey avatar Jeremy Mack avatar Michael Robinson avatar hq1 avatar Suraj N. Kurapati avatar Nogweii avatar  avatar  avatar Benjamin Medicke avatar yuan avatar Flynn Wang avatar  avatar Zsolt Botykai avatar Matthew Boehm avatar Vasili Sviridov avatar James W Mann avatar  avatar

Watchers

 avatar  avatar  avatar James Cloos avatar

vim-bling's Issues

Plugin bugs when Noice is installed

I tried to use Noice where it shown a bug everytime I started to save the file, after a longer investigation it was found that the cause of the issue was vim-bling plugin, by disabling it the bug doesn't happens anymore

The problem lies in the line

cnoremap <silent> <expr> <enter> BlingExpressionHighlight()

The full details of what's happening are included on this thread: folke/noice.nvim#463

Temporary disable bling

Thanks for a great little plugin!

I have one issue though:
I have some mappings that jumps in the code using searches. These mappings are being slowed down as bling will highlight the search. I need to temporarily turn off bling and reenable it after the jump.

And here lies the problem.. I have to do this using count or time. This way I now need to specify it several places and if I change some setting, it's easy to forget to change all mappings.

bling_disable and bling_enable would let me do this without changing the configuration for bling.

Blinking does not happen when using a search offset

Hello,

If I use for example:

  • /function/e => will set the cursor's position to the end of the matched pattern
  • /function/s+2 => will set the cursor's position 2 characters away from the beginning of the matched pattern

There is no blinking.

Regards,
Yann

Matches due to ignore/smartcase won't blink.

If you have ignore/smartcase on, there will unfortunately be some disconnect between what gets matched with / and what that same pattern matches with matchadd. So, things that match only with matchadd won't blink.

Emulating ignorecase is easy (use \c). Emulating smartcase is quite a bit more annoying, unfortunately.

Errors when searching using /\v

It seems there's a bug when a match is found or there are no search string. That is using /\vsearchstring rather than /searchstring.

Error detected while processing function BlingHighight:
line   19:
E53: Unmatched %(
E475: Invalid argument: \%1l\%1c\%(\v\)\c
line   23:
E802: Invalid ID: -1 (must be greater than or equal to 1)
line   19:
E53: Unmatched %(
E475: Invalid argument: \%1l\%1c\%(\v\)\c
line   23:
E802: Invalid ID: -1 (must be greater than or equal to 1)

Cursor moves when blinking

When I press n (or N), the cursor moves to the first column of the buffer (in the gutter, if it's visible, ie: line numbers or git gutter) and then when the blinking stops the cursor moves back to the first character of the next match.

The normal behavior would be that the cursor moves to the first character of the next match while the match is blinking.

Automatically disable Bling when running macros

The plugin is really great. The only thing I currently find lacking is a simple way to have Bling automatically disable itself when running macros...
If I run a macro multiple times, It's a lot longer to run if every times it finds a pattern (with N or n), it blinks.
A flag (say let g:BlingDisableOnMacro=1) would be great implementation for this!

<CR> Mapping Lost While Blinking

Reproduced By

  1. Open NERDTree
  2. Search for a word in NERDTree
  3. Press enter while word is blinking

Expected: open file or expand folder
Actual: goes to next line

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.