3 Comments

  1. Update: newer version of `ocp-indent` changes the location of the ocp-indent.vim script. Updated the .vimrc config to reflect this change.

  2. Hello, Could you explain the third part in more detail? Specifically:

    (* I’m not clear on what the significance of this instruction is *)
    “You can use == to format the code selected or the current line now.”

    (* how do you “add” the script? *)
    “Third, to make ocp-indent be automatically invoked by autoindent, add the ocp-indent-vim script. This ensures that ocp-indent will indent the current line after you input Enter, “if”, “else”, etc. You can use tools like pathogen to manage the installed plugins in Vim.”

    Kindly,
    John

    1. > About “You can use == to format the code selected or the current line now.”

      Pressing `=` twice in command mode will make Vim help us indent the code (if it was not indented correctly).

      > About “add”ing the script:

      Pathogen is a Vim plugin manager. Now with latest Vim, I suggest to use Vim’s built-in package management instead: `:help packages`.

Leave a Reply

Your email address will not be published. Required fields are marked *