Vim: How To Comment Multiple Lines

preview_player
Показать описание
Vim has a visual block mode which lets you do multiline comments easily.
In this video I show you how to comment out a function block using the visual block mode relatively quickly with minimal typing.

==== Awesome Links ====
Рекомендации по теме
Комментарии
Автор

thak you bro. we need more vim tutorials :)

fernandodejesuslucart
Автор

you are saving world. you are doing god's work.

gormsep
Автор

Thank you so much, was struggling with that for so long, but this video really helped me to manage it. Kudos to you!!

artemcodes
Автор

Mark the Lines (v oder V)

Comment:
:norm i#
:norm i//

Uncomment:
:norm x
:norm xx


Sample:

V5j:norm i#

Done

carstenschlegel
Автор

No offence but I really wonder why you'd still prefer vim to code, here you'd just need to select the lines with shift+down then ctrl + / . I don't know if it's just me but it sounds so much more intuitive and less like you need to learn tricks each time you want to do something like in vim

eloihonnet