On 09/25/12 10:51, Deepak adhikari wrote: > How to remove 2nd line form a CSV file? note: I do know the line > no. as well as the contents of it. I am new to vim? saw the wiki > but seems it will be easier to follow, though I will continue > with wiki at leisure times.
You can navigate to the 2nd line with 2G and just type dd You can use the Ex mode command :2d to delete the second line. However, this is such a trivial/basic task that I wonder if you have some other more complex task in your head, such as iterating over a large number of files and deleting the 2nd line on each of them. This could be done with :set hidden :argdo 2d you can then review the changes and issue :wall to save them all, or you can :qa! to abandon those changes. -tim -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
