jbgutierrez / vim-better-comments Goto Github PK
View Code? Open in Web Editor NEWEasily highlight human-friendly comments in your code!
License: MIT License
Easily highlight human-friendly comments in your code!
License: MIT License
This plugin does not work together with https://github.com/pangloss/vim-javascript. Is this something that's possible to solve? I know that vim-javascript
handles the syntax in a very intricate way.
In such cases, you can overcome the mismatch providing a dictionary of aliases:
let g:bettercomments_language_aliases = { 'javascript': 'js' }
I am new to vim and trying to figure out how to add this or where I need to add it. Could you elaborate a bit more on what I need to do to get this working?
Thanks!
If the plugin is installed and :FZF the plugin throws 2 errors:
pattern uses more memory than 'maxmempattern'
Removing the plugin also removes the error.
The example code is
if str == "":
do something
With this plugin, everything after ""
will also be highlighted.
After installing this plugin, I noticed it disables syntax highlighting in certain filetypes. I've only noticed this with PHP so far but I assume there could be other languages that are also impacted.
Setting :set syntax=on
with a PHP file open, works so it is not preventing it altogether.
If you want to use this plugin without needing to re-enable the highlighting every time, you can add the following to the .vimrc
file, as a workaround:
"autocmd BufEnter *.php :set syntax=PHP
.
When I uninstall this plugin and remove the above workaround, syntax highlighting works as expected.
First of all, THANKS!
I'm coming from VSCode, where I used this plugin and it's awesome to see this plugin in Vim as well!
But I cannot find how to make this work with the C language... I tried to look through the readme but I cannot figure it out LOL
I'm studying college now and we use C all the time, so this would be an awesome thing to have.
Hello, I think this question may sound strange since I am new to vim, but I was able to customize this system that I used in sublime text and vs code (marks, colors).
What files do I need to change if I want to be able to use and customize in Python?
I've installed better comments like this in my init.vim (using neovim):
Plug 'jbgutierrez/vim-better-comments'
but if I run :hi the better-comments highlighting is not listed.
The same applies if I try to set the colors in init:
highlight TodoBetterComments cterm=reverse ctermfg=214 ctermbg=235 gui=reverse guifg=#fabd2f guibg=#282828
Is there anything I'm doing wrong?
Hi! As you asked me I'm writing this here.
Terminal: urxvt
Vim version: 8.1.26 (just updated)
Colorscheme: Gruvbox Dark
Example code:
`/**
#include <stdio.h>
int main(int argc, char *argv[]){
if(argc != 2){
printf("Blahblahblah...");
}
return 0;
}
`
Screenshot: Here
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.