Friday, October 3, 2008

vim tips ctrp+p/n

Insert mode completion: Ctrl + N
Ctrl + P to the original.

1 comment:

  1. *i_CTRL-N*
    CTRL-N Find next match for words that start with the
    keyword in front of the cursor, looking in places
    specified with the 'complete' option. The found
    keyword is inserted in front of the cursor.


    *i_CTRL-P*
    CTRL-P Find previous match for words that start with the
    keyword in front of the cursor, looking in places
    specified with the 'complete' option. The found
    keyword is inserted in front of the cursor.

    CTRL-N Search forward for next matching keyword. This
    keyword replaces the previous matching keyword.

    CTRL-P Search backwards for next matching keyword. This
    keyword replaces the previous matching keyword.

    ReplyDelete