General :: GVIM Hangs When Saving Through GVFS' FTP
May 8, 2011
I loved Gnome's Nautilus and FTP integration and being able to mount a remote FTP directory as a regular bookmark/directory, and double clicking any remote files to open in any unmodified program. I also loved editing text files with GVim.
However, if I double clicked file on Nautilus to open a text file in Gvim, then saving a file will take about 10 seconds and GVim will hang for that amount of time. The major irritant is that I cannot continue editing while the text editor is waiting for the write to finish, this delay interrupted my workflow and thought process and saving becomes a painful process. The other problem is that I don't think simply uploading a file should take that much time.
I'm aware of GVim's internal FTP support, but they are not as well integrated with Nautilus's FTP and it suffers from the same problem.
So a few question:
Is there a way to make GVim or GVFS to save in background while I continue editing?
Why is GVFS so slow? Is there any way to set GVFS to use a single persistent FTP connection instead of creating a new FTP connection each time?
Recently upgraded to F12. K3B can't burn DVDs. Drive was working fine in Fedora 10 before the upgrade, and I've applied all updates.
Here is the output when run from console:
Code:
lsof: WARNING: can't stat() fuse.gvfs-fuse-daemon file system /home/SlowCoder/.gvfs Output information may be incomplete. (K3bDevice::HalConnection) unlock queued for /org/freedesktop/Hal/devices/storage_model_DVD__RW_GA10N First sec data area: 43:41:33 (LBA 196608) (402653184
When I use nautilus open my home directory, everything is OK except that the file contents in the home directory are not presented. It seems that nautilus is still waiting and busy.
After that, I try to enter the user's home directory by the Terminal and succeed. I can use 'ls' to display the file in the home directory, But when I use 'ls -a' to print the hiden files, again the Terminal seem to be lock. the 'ls -a' is locked, I fail to 'kill' it.
At last, I find that everything that connects to the behavior which need to enter, delete or just dsplay the /home/$USER/.gvfs will fail and lock, and without any error message.
hg clone https://vim.googlecode.com/hg/ vim cd vim sudo ./configure --enable-rubyinterp=yes --enable-pythoninterp=yes --enable-gui=gtk2 --prefix=/opt/vim make make install make install clean
So, my VIM's binaries now live under /opt/vim/bin. Here is ls -la of this dir:
I use a terminal with white text on black background (I just like it better), so I wrote the following line in my .vimrc file: set background=dark
However, gvim has black on white text. How do I do either of the following: Set the background of gvim to black Check in .vimrc if I'm using gvim I tried this: I started up gvim, and typed echo &term. The answer was "builtin_gui". So I wrote the following into .vimrc:
if &term == "builtin_gui" set background=light else set background=dark endif
I'm using SSH (with -X specified) from a Ubuntu box to a RHEL4 box and running GVim. It opens as expected in my local X, but the copy and paste via select doesn't work. I cannot select text in GVim and paste in a local window, nor can I select text from a local window and paste in GVim. This works, however, when I SSH (with -X specified) to a different RHEL4 box. Is there something I need to install on the remote machine? I am running Parcellite 0.9.2 on the local box, but closing it doesn't make the problem go away, and it is not interfering with the other box.
I have a Debian testing box with Xfce (no Gnome, no Nautilus). It has all gvfs-related stuff installed, including all backends and fuse interface. But any attempts to gvfs-mount anything (like sftp://... or smb://...) fail with error opening file: Operation not supported, and gigolo shows only 'unix device (file)' in the list of supported protocols.My ~/.gvfs has rwx permissions, and I'm a member of fuse group; other fuse-related stuff works for me.
I want to generate HTML files in batch to show some gvim colorschemes in action. I took my current solution from the script at but this will open open a gvim window for each colorscheme I want to process. So far, the only way I have found to avoid the annoying new windows that pop up every second is to start a VNCserver and set the DISPLAY environment variable to that of the VNCserver so that all gvim windows are sent to the display within the VNC session.However, I would like to know if there is a way I can avoid the whole VNC setup and just run a headless gvim instance that does the conversion and exits, with no windows ever being actually displayed.
Having openSUSE 11.2, Firefox (latest release) is having some issues when comes to "saving image as", it fails to offer "saving window"? Konqueror works normal, what could be the problem with Firefox?
After upgrading Squeeze, Gvim and Vim seems to be broken. So I went back to 7.2 by compiling from source. However I am failing to compile the gui version under Debian. I tried the configure options, apt-get build-dep vim etc but nothing seems to work. Does anyone know a straight way to make it work? Or even a way to find the previous version of vim gtk?
I'm new to vim and gvim, but I feel its power so I want to learn it. I've been searching very long how to use gvim keyboard shortcuts but I simply cannot find out what is for example the vertical splitting command '^Wv'? I've tried (ctrl/super+ a lot of things) (and other combinations, but without success).
In ubuntu 9.10 i installed gvim editor..... if i opened that it shows like following and opened editor and also compiled.... wats this? Anything need to install?
I use ":!shell_command<enter>" OR ":sh<enter>" in gvim to execute shell commands or to get a shell. But I am getting an 'sh' shell. Is there a way to get the 'bash' or 'csh' shell from within gvim?
I have to share gvim binary over the NFS for users on a x64 machine. I can't find it over the internet. Is there anyway I can convert the vim-X11.rpm to .bin? or achieve the same in any other possible way.
I have a minor problem with gvim. My gvim never maximizes. Whenever I try to maxmize it automatically shrinks from right side and bottom. Don't know if anyone else faces this problem, but I have faced this even after re-installing the system It is not a show stopper but surely an irritant.
Is it possible to open text files in gvim in tabs not opening anothe rgvim window for every text file? Just like it is done in gedit: open a file the open another file and it opens in a tab.
my idea is to have gvim working like gedit in ubuntu 11.04: when you open a file thru unity's dash, and if there's already an open editor, it opens the file in a new tab.To make nautilus open more than one selected files in gvim's tabs, i used to change the exec line in /usr/share/applications/gvim.desktop to "Exec=gvim -p --remote-tab-silent %F". This trick is working ok in nautilus and also in unity, just like the way I was planning.
However, when i try to open gvim itself without specifying any files (from unity's dash or a launcher set) it fails. Can anyone please help me with this ?
I'm working on RHEL5 dealing with AS (ActionScript) files in Linux GVIM Editor but everything is in blue color. Can i set color coding for my keywords?
Running Slackware current and KDE4. Every time I start up, gvim autostarts as soon as the KDE desktop shows. There is no command in .kde/Autostart for this. I have ticked always start with an empty session in the session manager. I cannot see why gvim is starting every time. How can I stop this?
I want to save notes against a file on linux... i want to save meta data about a file..because the file names are restricted in max length...So how to save notes or comments about a file on linux so that it gets saved along with the file itself...I used the notes tab in the file properties dialogbox.. but that way the notes stick to the file only on that OS only.. if i open that file in another linux os.. those comments/notes are gone...Way to embedd these notes into the file so that i dont lose them ever..At lease a solution that makes this possible on switching linux distros. if its not portable enough that these notes stick b/w windows and linux its ok for me.. but atleast if i format my linux os.. atleast i shouldnt lose those important notes..and be able to access on newer linux..
And i also have no idea if this notes tab was implemented to be linked with the OS only.. i dont see much use of it.. and a normal user also has noway to know this.. i also came to know on superuser chat from a buddy.. @Sathya ..this thing is more useless especially if u use ubuntu which has 6 months timeline..and crazy people like me who are always eager to upgrade their os as soon a new one is available..and any way i can search these notes from the terminal?
I'm using fedora 11. I want to do some operation like after saving a file (moving ,copying,..) the system need to ask that "DO you want to encrypt?" . If yes I am able to run the crypt module (which I already implemented..). Is it possible to invoke a encrypt module which I implemented in c language.
What would be the best way to install Linux such that I could also on occasion use the Windows XP that came with my new computer? Ubuntu with XP running in Wine? -- so I can use both at the same time? Dual partition to dual boot? I tried putting wubi Ubuntu installed on top of Windows, but have problems with grub crashing and have been told I had best not install Linux on top of Windows. But if I install Linux as the primary OS, how best save the option to do some Windows? I want to do astronomy stuff, so am hoping Ubuntu is good for science, if not, I can use RedHat.
I do not have a Windows XP install disk from the vendor, so if I wipe out the XP install, it might be trouble for me to reinstall windows, so I don't know if I should just copy the hard disk to an external drive. The computer does not have my personal files on it yet.) Is my current idea of running Windows in Wine feasible? Would I need to reinstall Windows by copying back the files from an external hard drive?