如何将VIM配置成适用C语言的IDE

如题所述

VIM默认支持C、C++等语言,无需特别配置 VIM仅能作为代码编辑器,不具有C或C++编译器功能,需要另外选择gcc或g++编译器
温馨提示:内容为网友见解,仅供参考
第1个回答  推荐于2016-08-28
~/.vimrc 里添加一下内容

set autoindent
set cindent
set modeline
set ruler
set showcmd
set showfulltag
set showmode
set smartcase
set smartindent
set imcmdline
set previewwindow
set hlsearch
set number
set ts=4
syntax on

直接用vim进行代码编辑就可以了。
然后使用gcc编译器进行编译。本回答被提问者和网友采纳
相似回答