Horje
vim insert text at the the beginning of multiple lines Code Example
vim insert text at the the beginning of multiple lines
# Basic syntax:
# Insert text in front of every line in the file:
:%s!^!text_to_insert!

# Insert text in front of specific lines (e.g. for commenting out code):
1. Press ESC to ensure youre in command mode
2. Use CTRL+v to enter visual block mode
3. Move Up / Down to select the rows you want to prepend text to
4. Press SHIFT+i and type the text you want to insert (it will only
	show up on the current row for now)
5. Press ESC, wait ~1 second and the inserted text will appear on
	every line




Shell

Related
git find merge conflicts Code Example git find merge conflicts Code Example
uncommit last commit in local Code Example uncommit last commit in local Code Example
git reset last commit keep changes Code Example git reset last commit keep changes Code Example
git revert commit but keep changes Code Example git revert commit but keep changes Code Example
install seaborn Code Example install seaborn Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11