itmammoth / doorboy.vim Goto Github PK
View Code? Open in Web Editor NEWVim plugin for auto closing brackets ( => (|) and quotations " => "|" , and more
Home Page: https://github.com/itmammoth/doorboy.vim
Vim plugin for auto closing brackets ( => (|) and quotations " => "|" , and more
Home Page: https://github.com/itmammoth/doorboy.vim
Open a ruby file, then open a NOT ruby file, finally open an another ruby file.
doorboy doesn't work the last opened buffer.
When: /t|/
Press: (
Then: /t(|/
Expected: /t(|)/
When: |独自
Press: '
Then: '|'独自
Better: '|独自
It seems that Japanese characters aren't considered as word.
When: "|"
Press: '
Then: '|'
That's be nicer, me think.
When: ... target=|
Type: "
Then: ... target="|
Expected: ... target="|"
Expected:
When: execute 'inoremp' |<expr>
Press: '
Then: execute 'inoremp' '|'<expr>
Expected is execute 'inoremp' '|<expr>
Is there a nice way?
Once set filetype=ruby
then change filetype to javascript with set filetype=javascript
command on the same buffer, you will see |
quotations get not to work.
In Ruby syntax (# is the cursor)
When: /(.#)/
Type: |
Then: /(.|#|)/
Expected: /(.|#)/
|
has special meaning in regular expressions.
It's should be enabled only in ruby.
It's better not to put "" when the cursor is at the beginning of a line in vim file.
Perl, Python, Javascript...
When you have the following situation:
|
(
you get (|)
< enter >
resulting :
(
|)
Can you turn on the "newline jump" when you press enter, so that the closing bracket is on a newline?
|
(
(|)
< enter >
(
|
)
In slim file, (# is the cursor)
When: - @posts.each do #
Type: |
Then: - @posts.each do |#
Expected: - @posts.each do |#|
This'll be nicer isn't it?
Should check mapping with maparg('<BS>', 'i')
before define mapping.
on slim filetype
When: "|"
Press: #
Expected: "#{|}"
Like |
in ruby file.
When: t|,
Type: (
Then: t(|,
Expected: t(|),
When: let @/ = substitute|@z
Pressing: (
Expected: let @/ = substitute(|@z
But: let @/ = substitute(|)@z
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.