The Archives

  • 25.Jul.11
    Edit a file using vi in read-only mode cmd | rafacas | (0)
    $ vi -R filename Edits filename in read-only mode. I use it more often than the more or less commands to read code because of vi's syntax highlighting.
  • 01.Nov.09
    Vim. Editing multiple files shell | fernape | (1)
    In previous issues, we have edited one file at a time. We did this because there were other points of interest at that time. However, Vim can handle more than one file at a time using several different techniques including buffers, viewports and tabs last one, since Vim 7. In this issue we take a look at these handy mechanisms that will speed up your work. Buffers We can think of a buffer as a place inside Vim where a file is loaded. In the following example, I will use a couple of files: $ cat file1 file2 This is file 1 This is ...