Giter Site home page Giter Site logo

Comments (4)

LucHermitte avatar LucHermitte commented on June 10, 2024

In your vimrc, you have first to be sure that the plugin has been loaded by your plugin manager. Then, the command :Brackets should be available.

You're right about > behaviour for markdown, I'll see to fix it.

Regarding :noremap ,bx <Plug>DeleteBrackets, it cannot work, you have to use nmap without the nore part. Anyway, you'll have to use something like:

let g:cb_want_mode = 0
map        ,bx         <Plug>DeleteBrackets
map        ,b<del>     <Plug>DeleteBrackets
map        ,b(         <Plug>ChangeToRoundBrackets
map        ,b[         <Plug>ChangeToSquareBrackets
map        ,b{         <Plug>ChangeToCurlyBrackets
map        ,b<         <Plug>ChangeToAngleBrackets
map        ,b\         <Plug>ToggleBackslash

And this time, this has to be done before lh-brackets is loaded with your plugin manager.

I have to fix the documentation on this topic, and have the <Plug> mapping always defined.

from lh-brackets.

LucHermitte avatar LucHermitte commented on June 10, 2024

You should not need to add :Bracket in your vimrc now. However, if you which for < and > behave as in C++, you should do it in $HOME/.vim/markdown/your_brackets.vim -- and don't bang :Bracket call, you don't want the definition global.

If you want the definition global, there you have to use :Bracket! from your .vimrc, after lh-brackets has been loaded by your plugin manager.

from lh-brackets.

pnth avatar pnth commented on June 10, 2024

Thanks a lot for your fix and information. I will wait for when the mapping always defined since I do not know how to define the mapping before lh-brackets is loaded. I use junegunn/vim-plug.

from lh-brackets.

LucHermitte avatar LucHermitte commented on June 10, 2024

In your .vimrc, you certainly have added a line that starts vim-plug. Overriding <plug> mappings, setting the global leader key, ... all shall be done there.

According to vim-plug web site, I suspect the line before which you need to tune your plugins is:
call plug#begin('~/.vim/plugged').

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.