gVim on windows 7 64 constantly overwrites symbolic and even hard links

 
Thread Tools Search this Thread
Special Forums Windows & DOS: Issues & Discussions gVim on windows 7 64 constantly overwrites symbolic and even hard links
# 1  
Old 11-03-2010
gVim on windows 7 64 constantly overwrites symbolic and even hard links

I use sugarsync to sync my vimrc across computers. I keep the _vimrc file in a syncing folder and in my home folder, I have a symbolic link ~\_vimrc pointing to ~\Synced Docs\_vimrc. On my mac I have a .vimrc symbolic link pointing at the _vimrc file. On the pc side, every time I open the _vimrc link and save it, the link gets overwritten with a new _vimrc file. I don't have this problem on the mac with macvim. The mac always respects the link. On the pc, I have even tried a hard link. That still gets overwritten. It's very frustrating. Is this a known problem with gvim that will be fixed? Or is there a fix I could implement on my own?
# 2  
Old 11-03-2010
You could say '.../.' to force it to see the dir past the link, as a workaround at least. Sometimes even just a trailing / helps.
# 3  
Old 11-03-2010
Thanks for your help, but I don't understand. Am I adding that to the link? If so, how?
# 4  
Old 11-03-2010
Suppose /x/y is a link to /z, then /x/y/. is /z/. is /z

I use this in 'find' in place of '-follow' if only the first dir is a link and I don't want 'find' wandering down other links.

Notation /x/y/ is another way, less intrusive, to tell an app to look for a directory there. Sometimes you end up with /x/y/./.... or /x/y//.... for your trouble! Smilie

It may be they used lstat() where they should have used stat(), or something so trivial, or else the libs under them are flawed for the odd linking of a windows system. In UNIX a real hard link cannot be a directory, so it if is a file, then overwriting is appropriate, but I guess in WinDos they are a lot less hard.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Symbolic links

Soft link,Hard link brief explanation (1 Reply)
Discussion started by: RAJU KAVATI
1 Replies

2. AIX

List all the soft links and hard links

Hi I'm logged in as root in an aix box Which command will list all the soft links and hard links present in the server ? (2 Replies)
Discussion started by: newtoaixos
2 Replies

3. Solaris

Hard Links and Soft or Sym links

When loooking at files in a directory using ls, how can I tell if I have a hard link or soft link? (11 Replies)
Discussion started by: Harleyrci
11 Replies

4. UNIX for Dummies Questions & Answers

Deleting Symbolic and/or Hard links

From what I understand a symbolic link is alot like a shortcut where it points to another file. if the original file is deleted the symbolic link is rendered useless but a symbolic link can be deleted without any problem. A hard link is like a copy of the file itself but pointing to the same... (3 Replies)
Discussion started by: cue
3 Replies

5. UNIX for Dummies Questions & Answers

Permissioning for symbolic links

I've just started using UNIX in a Linux vmplayer. I'm trying to run the command: ln -s `pwd`/$1 `python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()"`/$1 in a script from an online tutorial, but I keep getting an error message: ln: creating symbolic link... (1 Reply)
Discussion started by: ChipT
1 Replies

6. UNIX for Dummies Questions & Answers

Symbolic Links

Hi all, I have scoured the entire forum for this but to no avail unfortunately. Basically, I would like to remove my symbolic link from my folder name i.e. foldername -> /a/b/c/d/f where f is indeed a folder. I have tried rmdir but this does not work and in actual fact deletes the... (4 Replies)
Discussion started by: cyberfrog
4 Replies

7. AIX

Symbolic Links

I am linking a directory as follows: ln -sf /home/xxx/userid/real_files/* /home/xxx/userid/linked_files This gives me symbolic links for all the files in the real_files directory in the linked_files directory. My question is, if I go and remove a file in the real_files directory and then go... (1 Reply)
Discussion started by: rcarnesiii
1 Replies

8. SCO

SCO 5.05 hard drive pulsing constantly

Just recently my hard drive has started to pulse like data is being read or written constantly. Causes? (2 Replies)
Discussion started by: jimser
2 Replies

9. Programming

Ignoring symbolic/hard links while scanning through a directory

Hi, I am writing a unix system utility that is supposed to scan through a directory, collecting information about the files and subdirectories. That part is going well. The tricky part is that some files in the directory are hard links or symbolic links. I am supposed to IGNORE these links.... (4 Replies)
Discussion started by: Yifan_Guo
4 Replies

10. UNIX for Dummies Questions & Answers

links: (soft, hard? symbolic??) inode

Hi, what is link? and soft link? how about hard one and symbolic link. and inode. i get confuse about this links. could anyone help me with full explainsion? thks Gusla (5 Replies)
Discussion started by: gusla
5 Replies
Login or Register to Ask a Question