Save and Exit Gvim


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Save and Exit Gvim
# 1  
Old 02-27-2013
Save and Exit Gvim

Hi, Dummy here!

I have a file in my directory named "jest". I wonder why I couldn't save change by using Shift + z + z which I used to do. But it work fine with :wq! command.

The second thing is, after several time of accessing the file, I notice my directory appears many files named jest~, jesx~, jesy~, jesz~. It never happens before, so what should I do?

Hope some pros can help on this issue.

Thanks in advance!

Smilie
# 2  
Old 02-28-2013
These files with ~ characters are created because you have set the backup option. So gvim creates a backup file when saving the original file.

You can stop gvim from creating the backup file, by clearing the option:
Code:
:set nobackup

For further reference check vim faqs
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Executing GVIM From Within A Live Script

Hey all, I work in a group environment where multiple people may end up editing the same file. We have measures in place so no two people can edit the same file at once. I have a script that does the following: call: script file The script will backup the file, Moves the file to a... (2 Replies)
Discussion started by: Brusimm
2 Replies

2. UNIX for Dummies Questions & Answers

Issue with selecting the text in gvim

Hi, I wanted to select the text in gvim using mouse for coping. some times it works fine and full text will be selected and copied to clipboard if it is like shown in first fig. Paste of the copied text can be done by clicking the middle mouse button. But some times the text will be selected as... (2 Replies)
Discussion started by: twistedpair
2 Replies

3. Shell Programming and Scripting

Save value from output of Corestat and save in a list for each core

I am trying to modify the "corestat v1.1" code which is in Perl.The typical output of this code is below: Core Utilization CoreId %Usr %Sys %Total ------ ----- ----- ------ 5 4.91 0.01 4.92 6 0.06 ... (0 Replies)
Discussion started by: Zam_1234
0 Replies

4. UNIX and Linux Applications

GVIM with tabs

Hi People, Does gvim latest versions support tabs. I would like to open different files in tabs rather than new windows or split windows. I would like to whether the current version supports it, if it doesn't then how to add such feature. Thanks, :) (2 Replies)
Discussion started by: rimser9
2 Replies

5. UNIX and Linux Applications

Gvim doesn't work properly

Hello All, I am using gvim ( redhat linux machine). backspace doesnot work properly. can some boby suggest a solution ? i have checked with older version. backspace works in it. Thanks Shiv (1 Reply)
Discussion started by: shiv.emf
1 Replies

6. Shell Programming and Scripting

GVIM keyboard shortcuts

Hi all, I am new to linux, can anybody send any link for "GVIM" keyboard shortcuts. (1 Reply)
Discussion started by: balaramaiah.t
1 Replies

7. Windows & DOS: Issues & Discussions

Unix format in gVim

I need to be very careful to keep ^M characters out of files. In gVim, I can change the file format to Unix easily enough, but is there any way to make Unix the default format? I can see "startup options" in the menu, but this takes me to some meaningless config file. I believe my config value... (1 Reply)
Discussion started by: 68ST0X20
1 Replies

8. Solaris

how to add gvim in solaris 5.8

Hi, can someone help me out how to load gvim? I am using solaris 5.8 . (1 Reply)
Discussion started by: adityam
1 Replies

9. Windows & DOS: Issues & Discussions

gVim on Windows

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

10. Red Hat

Need to get Gvim on Linux enterprise

I have a linux Enterprise Server Version 3 (ES) . It does not have Gvim on it. Can someone tell me how I can get Gvim on it please. I have spent a fair bit of time researching this and have not figured it out. I am probably missing something simple. Frank (1 Reply)
Discussion started by: frankkahle
1 Replies
Login or Register to Ask a Question