4259 links
  • Arnaud's links
  • Home
  • RSS Feed
  • Tag cloud
  • Login
search: tag:macro — newest first
  • Vi and Vim Macro Tutorial: How To Record and Play

    J'avais une ligne de conf à dupliquer X fois en incrémentant seulement un chiffre à chaque fois... m'a fait gagné du temps ;)

    qa (on commence le record dans le register a)
    yy (là j'enchaine les actions à repéter)
    p
    ^
    se déplacer jusqu'au chiffre en question puis c^a
    q (pour stop record)

    puis on rejoue 15 fois : 15@a

    June 11, 2014 - permalink - http://www.thegeekstuff.com/2009/01/vi-and-vim-macro-tutorial-how-to-record-and-play/
    macro record vim