LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-10-2011, 06:26 PM   #1
gvanto
Member
 
Registered: Oct 2009
Posts: 40

Rep: Reputation: 0
Question RHEL5 (Centos): getting gvim to work with mswin.vim


in my vimrc I am sourcing the following:
source $VIMRUNTIME/mswin.vim

At first this file was missing, so I downloaded it from:
http://ftp.twaren.net/vim/runtime/mswin.vim

However when I try and open gvim I get:
My first thoughts of the cause are:
- version of mswin.vim incorrect?
- version of vim incorrect?

Quote:
[09:12:05][root@host:/home]# gvim deploy.sh
Error detected while processing /usr/share/vim/mswin.vim:
line 46:
E121: Undefined variable: paste
E15: Invalid expression: paste#paste_cmd['i']
line 47:
E121: Undefined variable: paste
E15: Invalid expression: paste#paste_cmd['v']
line 86:
E492: Not an editor command: snoremap <C-A> <C-C>gggH<C-O>G
line 87:
E492: Not an editor command: xnoremap <C-A> <C-C>ggVG
I have googled it and come across:
http://help.lockergnome.com/linux/Bu...ict494599.html
(no responses)

and another couple of threads, with no responses either.


I am using Linux:
Linux version 2.6.18-028stab064.8-ent (root@rh5-build-x64) (gcc version 4.1.2 20071124 (Red Hat 4.1.2-42)) #1 SMP Sat Oct 31 08:34:51 MSK 2009

vim --version:
Quote:
[09:28:53][root@host:/home]# vim --version
VIM - Vi IMproved 6.3 (2004 June 7, compiled Jun 1 2009 11:12:29)
Included patches: 1-21, 23-24, 26, 28-34, 36-37, 39-40, 42-43, 45-46, 59, 81-82
Modified by <bugzilla@redhat.com>
Compiled by <bugzilla@redhat.com>
Huge version without GUI. Features included (+) or not (-):
+arabic +autocmd -balloon_eval -browse ++builtin_terms +byte_offset +cindent
-clientserver -clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments
+cryptv +cscope +dialog_con +diff +digraphs -dnd -ebcdic +emacs_tags +eval
+ex_extra +extra_search +farsi +file_in_path +find_in_path +folding -footer
+fork() +gettext -hangul_input +iconv +insert_expand +jumplist +keymap +langmap
+libcall +linebreak +lispindent +listcmds +localmap +menu +mksession
+modify_fname +mouse -mouseshape +mouse_dec +mouse_gpm -mouse_jsbterm
+mouse_netterm +mouse_xterm +multi_byte +multi_lang -netbeans_intg -osfiletype
+path_extra +perl +postscript +printer +python +quickfix +rightleft -ruby
+scrollbind +signs +smartindent -sniff +statusline -sun_workshop +syntax
+tag_binary +tag_old_static -tag_any_white -tcl +terminfo +termresponse
+textobjects +title -toolbar +user_commands +vertsplit +virtualedit +visual
+visualextra +viminfo +vreplace +wildignore +wildmenu +windows +writebackup
-X11 -xfontset -xim -xsmp -xterm_clipboard -xterm_save
system vimrc file: "/etc/vimrc"
user vimrc file: "$HOME/.vimrc"
user exrc file: "$HOME/.exrc"
fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -O2 -g -pipe -m32 -march=i386 -mtune=pentium4 -D_GNU_SOUR CE -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_GNU_SOURCE -DDEBUGGING -pipe -I/usr/local/include -D_LARGEFILE_S OURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -I/usr/lib/perl5/5.8.5/i386-linux-thread-multi/CORE -I/usr /include/python2.3 -pthread
Linking: gcc -Wl,-E -Wl,-rpath,/usr/lib/perl5/5.8.5/i386-linux-thread-multi/CORE -L/usr/local/lib -o vim -lncurses -lselinux -lacl -lgpm -Wl,-E -Wl,-rpath,/usr/lib/perl5/5.8.5/i386-linux-thread-multi/CORE -L/usr/local/lib /usr/lib/perl5/5.8.5/i386-linux-thread-multi/auto/DynaLoader/DynaLoader.a -L/usr/lib/perl5/5 .8.5/i386-linux-thread-multi/CORE -lperl -lresolv -lutil -lc -L/usr/lib/python2.3/config -lpython2.3 -lutil - lm -Xlinker -export-dynamic

Any help would be much appreciated
gvanto

Last edited by gvanto; 05-10-2011 at 06:30 PM.
 
Old 05-10-2011, 07:41 PM   #2
gvanto
Member
 
Registered: Oct 2009
Posts: 40

Original Poster
Rep: Reputation: 0
OK I've installed (built from source) vim 7.2:

but when I try and run gvim I get error:
Quote:
E484: Can't open file /usr/share/vim/vim62/syntax/syntax.vim
I cannot understand why it is looking for this syntax file because
I have explicitly set the run time path as follows, in .bashrc:

Quote:
[10:36:44][root@host:~]# cat .bashrc
# .bashrc
export VIMRUNTIME=/usr/share/vim/vim72
Before I added in this export runtime line in .bashrc, I got an error when in .vimrc I had
"runtime mswin.vim" because the mswin.vim file was not being found in vim62 folder. This problem was solved tho,
suggesting that the new path was OK for finding mswin.vim but still has issues finding the syntax?

Any help much appreciated
gvanto
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get gvim color in vim? cola Slackware 1 03-26-2010 04:19 AM
Vi/Vim/gVim vs Kate Diego Torquemada Linux - Newbie 7 04-01-2009 08:19 AM
gvim or vim? Abomb Programming 28 12-14-2006 11:27 PM
vim or gvim raees Linux - General 7 03-17-2004 05:02 PM
vim / gvim Shak Linux - Software 4 04-03-2003 09:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration