[Matplotlib-devel] matplotlib limitations and design flaws
Joe Kington
joferkington at gmail.com
Wed Feb 10 11:41:19 EST 2016
> Ctrl + / should comment out a chunk of text on most editors that I've
> used (Save for e.g., vim).
>
And it's pretty trivial to set up in vim (note that you'd tupically
customize comment marker on a per-language basis through an autocmd
function). This maps commenting out a block to "-" and uncommenting to "_":
" Clear all comment markers (one rule for all languages)
map _ :s/^\/\/\\|^--\\|^> \\|^[#"%!;]//<CR>:nohlsearch<CR>
"Insert comment markers (assumes # unless overridden)
map - :s/^/#/<CR>:nohlsearch<CR>
There are also smarter options through various plugins, as well.
At any rate, block commenting isn't something I've ever missed or felt was
a limitation in any way, though that's just my $0.02.
Cheers,
-Joe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/matplotlib-devel/attachments/20160210/9f324905/attachment.html>
More information about the Matplotlib-devel
mailing list