Advertisement
Guest User

Untitled

a guest
Jul 20th, 2019
315
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. " F12 to add line numbers to the selected lines
  2. vnoremap <F12> :s/^/=line(".").". "
  3. " The same as above but numbers from 1 to n
  4. "vnoremap <F12> :s/^/=line(".")+1-line("'<").". "
  5.  
  6. " Shift-F12 to remove any numbers from the beginning of selected lines
  7. vnoremap <S-F12> :s/^d. /
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement