Comments (4)
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.
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.
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.
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)
- How make some brackets be completed even in string literals? HOT 4
- Second bracket not deleted for new bracket pairs. HOT 1
- deprecated methods from lh-vim-lib HOT 1
- Opening bracket on indented line moves cursor to first column HOT 1
- Improve context analysis of `;` mapping
- E705: Variable name conflicts with an existing function: Close HOT 1
- Disable normal mode default bracket mappings HOT 5
- Adding a semicolon before another semicolon or between two brackets throws an error with a C++ file HOT 1
- Move `lh#map#*` and `lh#marker#*` to lh-vim-lib
- It's unclear how to jump to placeholders HOT 21
- After setting g:cb_no_default_brackets to 1, backspace goes to start of line
- After installing the plugin, vim reports several errors, like 'lh#mapping#plug[34]..lh#mapping#define' HOT 1
- Using lh-brackets with Go HOT 11
- Opt-out / Disable Default Mappings HOT 1
- Weird behaviour when using Latex-suite HOT 7
- Weird behaviour when there are an unequal amount of opening/closing braces. HOT 4
- cd_disable_default disables additional brackets HOT 2
- Neovim bug with lh-brackets HOT 21
- How can I change default mapping in lh-brackets? HOT 3
- lh-brackets won't work in nvim HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lh-brackets.