6

What is the appropriate way to make shortcuts for phrases like ‘on the other hand’? I tried imap otoh on the other hand, but that produces an undesireable lag after all os.

8

Take a look at :help abbreviations:

iabbrev otoh on the other hand
2

You can use UltiSnips generic snippet plugin. In this you can do something like.

snippet otoh "Some description" b
on the other hand
endsnippet
2
  • This is like using a ballistic missile to kill a mouse. Vim has builtin support for abbreviations. Sep 30 '15 at 12:06
  • No harm done when you atleast know that you kill a mouse a by that :)
    – CodeYogi
    Sep 30 '15 at 12:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.