vim-silicon
vim-silicon copied to clipboard
[feature] Auto-remove ident when running Silicon on range
I often have code like this
class SomeClass:
def some_method(self):
if condition:
do_interesting_thing()
do_something_else()
If I want to screenshot the lines inside if
, I need to:
- Select them
-
3<
-
gv
-
:Silicon
-
u
It would be cool, if something like this would be possible with single command.
You can do:
command! -range SiliconUnindent :'<,'>le|'<,'>Silicon
Thanks, didn't know about :le
.
Ah.. it does not seem to work like I thought, this:
if condition:
do_interesting_thing()
do_something_else()
becomes:
if condition:
do_interesting_thing()
do_something_else()
I'm not sure how but there should be a fix