Put a newline after every 10 lines in vim
Goal is to put a newline after every 10 lines in vim.
Start file
This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line
End file
This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line This a sample line
View Diff
10a11 > 20a22 > 30a33 > 40a44 > 50a55 > 60a66 > 70a77 > 80a88 > 90a99 > 100a110 >
Solutions
The best way to learn is to practice. Below, you will find some of the solutions other golfers have entered. To unlock higher ranked solutions, submit your own entry which does as well or better than the solutions you can currently see - climb the ladder!
Check out these helpful resources to improve your Vim skills... Game on.
Unlock 555 remaining solutions by signing in and submitting your own entry
#556 oleg / @oleg12573505 - Score: 155 - 01/29/22 @ 14:07
Vjjjjjjjjj<Esc><Esc>o<Esc>jVjjjjjjjjjjk<Esc><Esc>o<Esc>jVjjjjjjjjj<Esc><Esc>o<Esc>V<Esc><Esc>jVjjjjjjjjjjjkk<Esc><Esc>o<Esc>jVjjjjjjjjjjjjjkkkk<Esc><Esc>o<Esc>jV10j<Esc><Esc>O<Esc>jV10j<Esc><Esc>O<Esc>jV10j<Esc><Esc>O<Esc>jV10j<Esc><Esc>O<Esc>jVjjjjjjjjjjjjjjjjj<Esc><Esc>o<CR><Esc>:wq<CR>
0 comments