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?
Environment: Ubuntu 10.10
Edit: If I don’t source it, when I type vim or gvim, then I got:
Vim: Caught deadly signal SEGV
Vim: Finished.
Segmentation fault
~/.vimrcis 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~/.gvimrcyou can add commands to set your colorscheme, the default number of columns and rows displayed at startup, etc.If you aren’t familiar with vim itself type
vimtutorat the command-line and go through the tutorial.To start gvim, type
gvimat the command-line. To edit a file you can either open gvim, then use:e file/to/loadin comman-mode, or dogvim file/to/loadat the command-line. gvim supports multiple windows and tabs as does vim, so study those things to make the most use of them.