如何设置我的 GVim 感觉像 IDE? [英] How to set my GVim to be feel like IDE?

查看:36
本文介绍了如何设置我的 GVim 感觉像 IDE?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前,我使用 GEdit 作为我的文本编辑器来编辑 Ruby 和 Javascript 源代码.我想尝试让 GVim 成为我的编辑选择.我试图遵循 https://github.com/akitaonrails/vimfiles 和其他一些说明,但我运气不好,当我获取 ~/.vimrc 时,我总是得到:

Currently, I'm using GEdit as my text editor for editing Ruby and Javascript source codes. I would like to give GVim a try to be my editor choice. I have tried to follow https://github.com/akitaonrails/vimfiles and few others instructions, but I don't get any luck, when I source ~/.vimrc, then I always get:

bash: /home/samnang/.vimrc: line 5: syntax error near unexpected token (' 
bash: /home/samnang/.vimrc: line 5:call pathogen#runtime_append_all_bundles()'

你能给我指点一下获取说明或配置的地方吗?

Could you point me somewhere to get the instruction or configuration?

环境:Ubuntu 10.10

Environment: Ubuntu 10.10

如果我不提供它,当我输入 vim 或 gvim 时,我得到:

If I don't source it, when I type vim or gvim, then I got:

Vim: Caught deadly signal SEGV
Vim: Finished.
Segmentation fault

推荐答案

~/.vimrc 是vim的配置文件,vim启动时会自动读取,以了解如何你想要它设置.您可以添加非图形 vim 命令,例如键映射、~/.vimrc/ 的缩写.在 ~/.gvimrc 中你可以添加命令来设置你的颜色方案,启动时显示的默认列数和行数等.

~/.vimrc is the configuration file for vim, and will automatically be read by vim when it launches in order to know how you want it set up. You can add your non-graphical vim commands, such as key mappings, abbreviations to ~/.vimrc/. In ~/.gvimrc you can add commands to set your colorscheme, the default number of columns and rows displayed at startup, etc.

如果您不熟悉 vim 本身,请在命令行输入 vimtutor 并阅读教程.

If you aren't familiar with vim itself type vimtutor at the command-line and go through the tutorial.

要启动 gvim,请在命令行输入 gvim.要编辑文件,您可以打开 gvim,然后在 comman-mode 中使用 :e file/to/load,或者在命令中执行 gvim file/to/load -线.gvim 和 vim 一样支持多个窗口和选项卡,因此请研究这些内容以充分利用它们.

To start gvim, type gvim at the command-line. To edit a file you can either open gvim, then use :e file/to/load in comman-mode, or do gvim file/to/load at the command-line. gvim supports multiple windows and tabs as does vim, so study those things to make the most use of them.

这篇关于如何设置我的 GVim 感觉像 IDE?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆