On Saturday, July 14, 2012 4:37:00 AM UTC-5, JC Jackson wrote:
> A session set of GVIM Ubuntu files function well in GVIM Ubuntu, they show all editing colors and indentation appropriate file type, save and open fully, and all functions seem normal. But when the entire set of session files is copied to a Windows machine, and the GVIM on Windows appears to open the files when one opens the session, but there is no display of any text in the files. Opening the same files in Notepad++ Windows does display the text, but no means of opening any of the files in GVIM Windows seem to display the text. Am I missing some simple setting please?
When you say "session" are you talking about the vim script file created with the :mksession command, which allows you to resume editing the same group of files?
If so, I would not expect Windows Vim to be able to correctly load your session file. Windows Vim can certainly edit the FILES created by your Ubuntu Vim, but the SESSION file contains the paths as they exist on your Ubuntu filesystem. Windows will not be able to understand those. Windows needs paths like C:\Documents and Settings\userfloobyflarb\My Documents\Shared Files\myAwesomeFile.txt instead of /home/userflooblyflarb/shared/myAwesomeFile.txt.
I suspect this is your problem, because you say that Vim "appears to open the files" but there is no text in the files. This is probably because Vim creates buffers for NEW files (without actually creating the files until you save) in the Windows filesystem which loosely match the paths as they would be on your Linux filesystem.
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
No comments:
Post a Comment