# Comment out block of lines
Change the 10 & 100 to the appropriate line numbers, in this example lines 10-100 will have a # placed at the beginning of each line
```
<ESC>
:10,100s/^/#/
```
**Remove comments**
```
<ESC>
:10,100s/^#//
```
# Write with Sudo
This is for writing out with sudo if you opened as an unprivileged user.
````
:w !sudo tee %
````