如何在终端中使用vim? [英] How to use vim in the terminal?
本文介绍了如何在终端中使用vim?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在OS X的终端中设置并开始使用vim?
How does one setup and start using vim in the terminal on OS X?
我想开始在终端而不是单独的文本编辑器中使用vim编写C代码.如何开始呢?
I want to start writing my C code using vim in the terminal rather than a separate text editor. How does one get started on this?
基础知识包括:使用vim通过终端打开,创建,保存文件,以及使用vim编写代码.另外,是否可以在终端中直接使用vim进行编译?
The basics like: opening, creating, saving files via terminal using vim and writing code using vim. Also, does one compile directly using vim in the terminal?
推荐答案
从终端运行vim
.对于基础知识,建议您运行命令vimtutor
.
Run vim
from the terminal. For the basics, you're advised to run the command vimtutor
.
# On your terminal command line:
$ vim
如果您要编辑特定文件,请将其作为参数传递.
If you have a specific file to edit, pass it as an argument.
$ vim yourfile.cpp
同样,启动教程
$ vimtutor
这篇关于如何在终端中使用vim?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文