请教用vim编写c语言的详细方法

Vim、Emacs配置和使用
回复
头像
fangel16
帖子: 75
注册时间: 2010-07-21 14:51
联系:

请教用vim编写c语言的详细方法

#1

帖子 fangel16 » 2010-07-24 11:21

刚接触linux系统,可以用emacs编写c语言了,也想试试vim,但网上找不到详细的方法,能多打些字说的详细点吗,谢谢了。
头像
adam8157
帖子: 2794
注册时间: 2009-03-05 16:31
联系:

Re: 请教用vim编写c语言的详细方法

#3

帖子 adam8157 » 2010-07-24 11:32

研究下我的vim配置? :em04
头像
HuaChong
帖子: 493
注册时间: 2006-09-12 17:10

Re: 请教用vim编写c语言的详细方法

#4

帖子 HuaChong » 2010-07-24 16:17

去vim官方网站上下个c support插件吧,用的很爽的说
dshbusiness
帖子: 1831
注册时间: 2009-04-03 15:10

Re: 请教用vim编写c语言的详细方法

#5

帖子 dshbusiness » 2010-07-24 16:50

既然用了emacs就一直用emacs吧,再用vim会让你无所适从的
头像
fangel16
帖子: 75
注册时间: 2010-07-21 14:51
联系:

Re: 请教用vim编写c语言的详细方法

#6

帖子 fangel16 » 2010-07-24 22:10

那问下你们是怎么学emacs的,找本书?看help?找贴子?


还有,用emacs编译好c程序了,怎么直接在里面运行?我都是退出来重新运行终端的。。。望指教
头像
fangel16
帖子: 75
注册时间: 2010-07-21 14:51
联系:

Re: 请教用vim编写c语言的详细方法

#7

帖子 fangel16 » 2010-07-24 22:16

回3楼,修改vim配置文件是不是在终端里打 vim ~/.vimrc
头像
fangel16
帖子: 75
注册时间: 2010-07-21 14:51
联系:

Re: 请教用vim编写c语言的详细方法

#8

帖子 fangel16 » 2010-07-24 22:18

回4楼。怎么安装插件。。。

问下,你们都是从哪里知道这么多东西的?
头像
lilydjwg
论坛版主
帖子: 4258
注册时间: 2009-04-11 23:46
系统: Arch Linux
联系:

Re: 请教用vim编写c语言的详细方法

#9

帖子 lilydjwg » 2010-07-24 22:34

fangel16 写了:回4楼。怎么安装插件。。。

问下,你们都是从哪里知道这么多东西的?
Google, vim.org, here, etc.
头像
fangel16
帖子: 75
注册时间: 2010-07-21 14:51
联系:

Re: 请教用vim编写c语言的详细方法

#10

帖子 fangel16 » 2010-07-25 8:56

回答简洁,明了,易懂 :em11
头像
fangel16
帖子: 75
注册时间: 2010-07-21 14:51
联系:

Re: 请教用vim编写c语言的详细方法

#11

帖子 fangel16 » 2010-07-25 9:27

Put the script into your Vim 'colors' directory (eg ~/.vim/colors),
and load it with the command :colorscheme wombat256 or :colorscheme wombat256mod

问:第一行是不是输入vim ~/.vim/colors 进入

第二行写的怎么进入不知道。
头像
lilydjwg
论坛版主
帖子: 4258
注册时间: 2009-04-11 23:46
系统: Arch Linux
联系:

Re: 请教用vim编写c语言的详细方法

#12

帖子 lilydjwg » 2010-07-25 13:00

fangel16 写了:Put the script into your Vim 'colors' directory (eg ~/.vim/colors),
and load it with the command :colorscheme wombat256 or :colorscheme wombat256mod

问:第一行是不是输入vim ~/.vim/colors 进入

第二行写的怎么进入不知道。
一、

代码: 全选

mkdir -p ~/.vim/colors #确保这个目录存在
mv 下回来的东东.vim ~/.vim/colors
二、
打开你的 Vim,键入命令并回车

代码: 全选

:colorscheme wombat256
把这行放到 ~/.vimrc 里,每次启动自动加载。
头像
underline_1
帖子: 63
注册时间: 2010-07-16 0:17

Re: 请教用vim编写c语言的详细方法

#13

帖子 underline_1 » 2010-07-31 2:44

mark
头像
fanhe
帖子: 2357
注册时间: 2007-03-24 23:45

Re: 请教用vim编写c语言的详细方法

#14

帖子 fanhe » 2010-08-03 0:41

不好用
还是ide+vi插件现实点
回复