I've an ASCII file contains a two dimensional array of size 360X720, with all 1's & 0's. I want to double the 开发者_开发百科size of that array horizontally like 720X720. By repeating the same content. How can I do that from notepad or notepad++? Suggest me if there is any macro in the notepad++.
Rectangular selection FTW
- rectangularly select your array (holding alt key)
- copy
- move caret at the end of first line
- paste
Mmmm not sure you can.
In gvim (download):
you'd do:
ggC-q$GyP
gg
(go to first line)C-q
-- start visual block select mode (assumesbehave mswin
; if you havebehave xterm
(default except on windows) use C-v instead)$
extend block selection to end of lineG
extend block selection to last line (if you have empty trailing lines, move cursor back up or do }k$ instead)y
- yank selection into default registerP
- paste (put) yanked selection before cursor in blockwise mode
All done
精彩评论