Giter Site home page Giter Site logo

Comments (6)

LucHermitte avatar LucHermitte commented on June 10, 2024

Hello

Lately I've tried to fix an issue when the pair of brackets inserted (plus the placeholder) was expanded after the column equal to &textwidth.

Could it be that you are not typing just void foo, but something quite long and that the column of the cursor is within 4 columns to the one specified by &textwidth when you hit the ( key ? (In that case I can reproduce your problem)

from lh-brackets.

galou avatar galou commented on June 10, 2024

I'm afraid not. void foo was the only text present on the line. What can also be is an incompatibility with another plugin (I think of YouCompleteMe for example). My vim configuration is on http://github/galou/dotvim.git. I'll try to test without any other plugin.

from lh-brackets.

LucHermitte avatar LucHermitte commented on June 10, 2024

You can try to instrument autoload/lh/brackets.vim line 360.
If I'm not mistaken, you enter this case. You can try to save the various local variables (line, open and close in g:globalvariables or to print them along with &tw to see how lh-brackets interprets your context.

from lh-brackets.

galou avatar galou commented on June 10, 2024

I tried without other plugins (except NeoBundle and lh-brackets dependencies). I had the same behavior. Interestingly, on my "minimal" installation, I had the line-insertion behavior also on Python files, whereas on my production configuration, no line break was inserted in the middle of the line on Python files.
I'd be glad to help with testing but I have no idea how to do what you suggest (saving in g:globalvariables or printing).

from lh-brackets.

LucHermitte avatar LucHermitte commented on June 10, 2024

from lh-brackets.

galou avatar galou commented on June 10, 2024

Bravo Luc !

Indeed, tw == 80 with Python and tw == 0 with C++, what explains the behavior.

Thank your your quick fix ! I just tested it positively.

from lh-brackets.

Related Issues (20)

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.