linux下有没有能按列选则的编辑器
linux吧
全部回复
仅看楼主
level 1
bay__gulf1066 楼主
linux下有没有能按列选则的编辑器
2008年10月19日 06点10分 1
level 1
bay__gulf1066 楼主
我是说在gui界面下的编辑器,像win 下的ultraedit,editplus一样的
2008年10月19日 08点10分 3
level 0
vi, emacs
2008年10月19日 08点10分 4
level 1
bay__gulf1066 楼主
我也有x11版的vi和emacs,能说说具体怎么操作么
2008年10月19日 08点10分 5
level 14
kwrite,区域选择。
2008年10月19日 10点10分 6
level 0
vi,ctrl+v
2008年10月19日 11点10分 7
学习了, 非常好用!!
2013年05月31日 04点05分
level 0
列编辑在emacs中叫矩形操作(rectangles)。简单的用法是这样:像普通模式一样选择一块区域,然后使用下面的快捷键emacs会自动按照以选择区域的首尾为对角线的矩形区域进行操作。c-x r k剪切一块矩形区域(按住ctrl同时按x,然后松开手,再依次按r和k键)c-x r y粘贴一块矩形区域(按住ctrl同时按x,然后松开手,再依次按r和k键)其他功能请参考emacs自带的文档,这是我搜索rectangles得到的结果:16 Rectangles*************The rectangle commands operate on rectangular areas of the text: allthe characters between a certain pair of columns, in a certain range oflines. Commands are provided to kill rectangles, yank killedrectangles, clear them out, fill them with blanks or text, or deletethem. Rectangle commands are useful with text in multicolumn formats,and for changing text into or out of such formats. When you must specify a rectangle for a command to work on, you do itby putting the mark at one corner and point at the opposite corner. Therectangle thus specified is called the "region-rectangle" because youcontrol it in much the same way as the region is controlled. Butremember that a given combination of point and mark values can beinterpreted either as a region or as a rectangle, depending on thecommand that uses them. If point and the mark are in the same column, the rectangle theydelimit is empty. If they are in the same line, the rectangle is oneline high. This asymmetry between lines and columns comes aboutbecause point (and likewise the mark) is between two columns, but withina line.`C-x r k' Kill the text of the region-rectangle, saving its contents as the "last killed rectangle" (`kill-rectangle').`C-x r d' Delete the text of the region-rectangle (`delete-rectangle').`C-x r y' Yank the last killed rectangle with its upper left corner at point (`yank-rectangle').`C-x r o' Insert blank space to fill the space of the region-rectangle (`open-rectangle'). This pushes the previous contents of the region-rectangle rightward.`C-x r c' Clear the region-rectangle by replacing all of its contents with spaces (`clear-rectangle').`M-x delete-whitespace-rectangle' Delete whitespace in each of the lines on the specified rectangle, starting from the left edge column of the rectangle.`C-x r t STRING
' Replace rectangle contents with STRING on each line (`string-rectangle').`M-x string-insert-rectangle
STRING
' Insert STRING on each line of the rectangle. The rectangle operations fall into two classes: commands fordeleting and inserting rectangles, and commands for blank rectangles. There are two ways to get rid of the text in a rectangle: you candiscard the text (delete it) or save it as the "last killed" rectangle.The commands for these two ways are `C-x r d' (`delete-rectangle') and`C-x r k' (`kill-rectangle'). In either case, the portion of each linethat falls inside the rectangle's boundaries is deleted, causing anyfollowing text on the line to move left into the gap. Note that "killing" a rectangle is not killing in the usual sense;
2008年10月19日 13点10分 8
1