How to use vim in the terminal?

前端 未结 4 1412
遥遥无期
遥遥无期 2020-12-12 10:20

How does one setup and start using vim in the terminal on OS X?

I want to start writing my C code using vim in the terminal rather than a separate text editor. How d

4条回答
  •  感情败类
    2020-12-12 11:07

    You can definetely build your code from Vim, that's what the :make command does.

    However, you need to go through the basics first : type vimtutor in your terminal and follow the instructions to the end.

    After you have completed it a few times, open an existing (non-important) text file and try out all the things you learned from vimtutor: entering/leaving insert mode, undoing changes, quitting/saving, yanking/putting, moving and so on.

    For a while you won't be productive at all with Vim and will probably be tempted to go back to your previous IDE/editor. Do that, but keep up with Vim a little bit every day. You'll probably be stopped by very weird and unexpected things but it will happen less and less.

    In a few months you'll find yourself hitting o, v and i all the time in every textfield everywhere.

    Have fun!

提交回复
热议问题