02-28-2008
gVim creates and leaves strange tilde ~ files in Windows
Hey folks,
I have used gVim in Windows for many years but I have never found an answer to a very simple question I am going to ask you guys...
My question is if there is a way to eliminate the creation of those ~ files that gVim creates in Windows. If you have ever used gVim in Windows you probably noticed that gVim creates a file with the same name as the one you were editing except tacks a tilde (sp?) "~" to the end...
Meaning if I were to edit the file "example.txt" gVim creates a file "example.txt~" and puts it in the same directory (as the original). I would not mind this if the file were deleted after I close gVim, but the file remains even after I close gVim. (I can open these "tilde files" and the appear to be just like the originals.)
Anyone know how to prevent the file from being created or how to have gVim automatically delete it when the editing is done?
Thanks a million!
9 More Discussions You Might Find Interesting
1. News, Links, Events and Announcements
NEWS:
Flaw leaves Linux computers vulnerable
http://news.com.com/2100-1001-857265.html
A flaw in a software-compression library used in all versions of Linux could leave the lion's share of systems based on the open-source operating system open to attack, said sources in the security... (3 Replies)
Discussion started by: killerserv
3 Replies
2. UNIX for Advanced & Expert Users
I have set up a samba share on my Linux server. I have a gigabit switch, gigabit NICs in each machine.
I have set up the /etc/samba/smb.conf to support no delay, 8192 send/receive buffers, etc. This helped the rate for Samba go from about 4MB/S to about 10MB/S, but I expect to see about... (1 Reply)
Discussion started by: perspectx
1 Replies
3. Windows & DOS: Issues & Discussions
Have you used gVim editor on Windows (xp)? I am talking about the GUI version of vim that you can click the icon on desktop and the gVim editor pops-up and you can create/edit files.
Here's my problem: When I use vim editor on cygwin to create/edit files the file creation mask is set to a... (3 Replies)
Discussion started by: milhan
3 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I've searched and read, and searched and read some more; but I'm still not connecting the dots or understanding what I need to change.
I have a script that creates a file. If I run it as root, the file gets created with 644 permissions like I want. That seems to make sense (at least I... (2 Replies)
Discussion started by: 65bit
2 Replies
5. UNIX for Dummies Questions & Answers
Hi,
This is my first time on this forum..
I searched the previous answers, but didn't find the answer I was looking for at first glance.
csplit works beautifully for me, except for one thing. My file looks like this:
ad|name1|asdf...(several pages)..asdf ...
ad|name2|asdf...(several... (8 Replies)
Discussion started by: juliette salexa
8 Replies
6. Windows & DOS: Issues & Discussions
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... (3 Replies)
Discussion started by: dp88
3 Replies
7. Windows & DOS: Issues & Discussions
A strange situation: i have configured a piranha lvs router(two load balancer and two real servers),
the virtual ip is 192.168.3.252.
Linux and windows clients are on a different subnet (192.168.3.0) and i use route
route add -net 192.168.3.0/24 dev eth0on linux
for /F "tokens=2 delims=:"... (3 Replies)
Discussion started by: Linusolaradm1
3 Replies
8. UNIX for Advanced & Expert Users
In our project we have several unix scripts that trigger different processes. These scripts write logs to a particular folder 'sesslogs', create output data files in a separate directory called 'datafiles' etc. Usually L1 support team re-run these scripts . We donot want L1 support team to have... (14 Replies)
Discussion started by: waavman
14 Replies
9. Shell Programming and Scripting
I want to crop an image and am using convert
convert mountain.png -crop 3000x4500 +repage -format png mountain--cr.png
The problem is that convert is creating 4 files
mountain--cr-0.png
mountain--cr-1.png
mountain--cr-2.png
mountain--cr-3.png
The first is what I need, the other... (10 Replies)
Discussion started by: Kangol
10 Replies
LEARN ABOUT OPENSOLARIS
smbfs
smbfs(7FS) File Systems smbfs(7FS)
NAME
smbfs - CIFS/SMB file system
DESCRIPTION
The smbfs file system allows you to mount CIFS shares that are exported from Windows or compatible systems. SMB is the historical name for
the CIFS protocol, which stands for Server Message Block and is more commonly used in technical contexts.
The smbfs file system permits ordinary UNIX applications to change directory into an smbfs mount and perform simple file and directory
operations. Supported operations include open, close, read, write, rename, delete, mkdir, rmdir and ls.
Limitations
Some local UNIX file systems (for example UFS) have features that are not supported by smbfs. These include:
o A server disconnect is not automatically reconnected.
o No mapped-file access because mmap(2) returns ENOSYS.
o Locking is local only and is not sent to the server.
The following are limitations in the CIFS protocol:
o unlink() or rename() of open files returns EBUSY.
o rename() of extended attribute files returns EINVAL.
o Creation of files with any of the following illegal characters returns EINVAL: colon (:), backslash (), slash (/), asterisk
(*), question mark (?), double quote ("), less than (<), greater than (>), and vertical bar (|).
o chmod and chown settings are silently discarded.
o Links are not supported.
o Symbolic links are not supported.
o mknod is not supported. (Only file and directory objects are supported.)
The current smbfs implementation does not support multi-user mounts. Instead, each Unix user needs to make their own private mount points.
Currently, all access through an smbfs mount point uses the Windows credentials established by the user that ran the mount command. Nor-
mally, permissions on smbfs mount points should be 0700 to prevent Unix users from using each others' Windows credentials. See the diperms
option to mount_smbfs(1M) for details regarding how to control smbfs mount point permissions.
An important implication of this limitation is that system-wide mounts, such as those made using /etc/vfstab or automount maps are only
useful in cases where access control is not a concern, such as for public read-only resources.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-------------------------+---------------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-------------------------+---------------------------------+
|Availability | SUNWsmbfsu |
+-------------------------+---------------------------------+
|Interface Stability | Uncommitted |
+-------------------------+---------------------------------+
SEE ALSO
smbutil(1), mount_smbfs(1M), nsmbrc(4), attributes(5)
SunOS 5.11 3 Feb 2009 smbfs(7FS)