How do you add line numbers to visually selected lines?
:'<,'>!nl -ba
Select lines visually, then run :'!nl -ba to pipe through the nl command which prepends line numbers to each selected line.
:'<,'>!nl -ba
Select lines visually, then run :'!nl -ba to pipe through the nl command which prepends line numbers to each selected line.
:b3
Use :b followed by the buffer number.
:bd 3
Use :bd (bdelete) followed by the buffer number.
qa{jI## Section \n<Esc>}q
Record a macro that goes to the start of each paragraph and inserts a section header.