Comments (5)
It looks very useful!
from caw.vim.
Thanks for suggestion!
Currently comment string setting is constant.
So I would like to make it variable to specify Funcref, like this.
" In after/ftplugin/vim/caw.vim
let b:caw_oneline_comment = {lnum -> matchstr(getline(lnum), '^\s*\\') ? '"' : '" '}
What do you think about this?
from caw.vim.
Okay :)
I will implement it!
from caw.vim.
I forgot about caw_blank_sp
(spaces after comment), not caw_oneline_comment
.
I implemented this in #87, would you try it?
Settings exists in after/ftplugin/vim/caw.vim already,
let b:caw_hatpos_sp = {lnum -> getline(lnum) =~# '^\s*\\' ? "" : " "}
let b:caw_zeropos_sp = b:caw_hatpos_sp
So line continuation comment should work without configuration.
In line 1, gcc
results in " echo {
.
but in line continuation (starting \
), gcc
results in "\ 'foo': 42,
(no spaces after comment)
echo {
\ 'foo': 42,
\ 'bar': 666,
\}
from caw.vim.
Merged.
Please reopen if it does not work.
from caw.vim.
Related Issues (20)
- JSON "comments"
- Toggle does not work when using nvim-tree-sitter
- Comments in vue file inconsistent after first template element HOT 1
- Can't comment blank line with default configuration g:caw_hatpos_skip_blank_line = 0
- Doesn't comment current line when lazy loading it and set remembering last cursor location
- how can i use it? HOT 1
- toggle caw error HOT 2
- Join undo history when inserting comment
- Join repeat history when inserting comment
- weird case with context filetype
- fileType=dosbatchの時、トグルとコメント解除が動作しない
- "Press Enter or type command to continue" prompt at uncomment multi lines
- Use `#` instead of `"` in Vim9 script HOT 2
- Incorrect comments for 'typesriptreact'
- uncomment work unexpectly when single line has multi warp comment
- E117: Unknown function: caw#keymapping_stub
- [feature] b:caw_dollarpos_sp_left HOT 1
- caw.vim can't works well with treesitter HOT 1
- Error on uncomment HOT 1
- caw.vim can't works well in markdown file
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 caw.vim.