Loading ...
Sorry, an error occurred while loading the content.
 

Re: how to repl. word under the cursor with foowordbar?

Expand Messages
  • Kontra, Gergely
    ... A little off, but I hope it helps: Advertisement: Use mu-marks: http://vim.sourceforge.net/scripts/script.php?script_id=243 And type in your
    Message 1 of 6 , Apr 3, 2002
      >> How to replace a word under the cursor (say: junk) with another
      >> foojunkbar? when i am reading a paragraph, some of the word i
      >> want to change as \texttt{word}. i.e. the word under the
      >> cursor should come inside { }. how to do that in vim?

      A little off, but I hope it helps:
      Advertisement: Use mu-marks:
      http://vim.sourceforge.net/scripts/script.php?script_id=243

      And type in your ftplugin/tex.vim
      MarkMapB tt \texttt{Ťť}ŤĄť

      Then you can select the word visually, and press <C-Space>tt<CR>
      BTW: You can hack it, and use Ątt! in visual mode (if you want to bind
      to another keymap).
      You can use it in insertmode too.
      Type tt<C-Space>word<C-J>.

      Gergo

      +-[Kontra, Gergely @ Budapest University of Technology and Economics]-+
      | Email: kgergely@..., kgergely@... |
      | URL: turul.eet.bme.hu/~kgergely Mobile: (+36 20) 356 9656 |
      +-------"Olyan langesz vagyok, hogy poroltoval kellene jarnom!"-------+
      .
      Magyar php mirror es magyar php dokumentacio: http://hu.php.net
    Your message has been successfully submitted and would be delivered to recipients shortly.