- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- vim screw-up
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-01-2005 12:07 AM
тАО11-01-2005 12:07 AM
vim screw-up
Yesterday, I was editing away in vim, and I inadvertently hit some keystrokes that are causing me a headache. Now, whenever I enter ":w" to save changes, I get prompted with the following:
WARNING: The file has been changed since reading it!!!
Do you really want to write to it (y/n)? y
Hit ENTER or type command to continue
The file being edited is write-enabled.
I think I may have been trying to do a search for "set", and inadvertently entered a set sequence that is causing the problem. But I'm clueless as to what it may be.
If I enter ":set" now, this is what the options are set to:
--- Options ---
backspace=2 helplang=en ruler viminfo='20,"50
cscopetag history=50 ttyfast t_Sb=^[[4%dm
cscopeverbose hlsearch ttymouse=xterm t_Sf=^[[3%dm
cscopeprg=/usr/bin/cscope
fileencoding=utf-8
fileencodings=utf-8,latin1
formatoptions=tcql
Does anyone have a clue as to what is causing me to get prompted everytime I try to save changes in a file?
TIA,
Tom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-01-2005 12:43 AM
тАО11-01-2005 12:43 AM
Re: vim screw-up
Is it possible someone else is trying to edit the file?
Perhaps copy the vim settings back in from another machine where it functions correctly.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-01-2005 01:30 AM
тАО11-01-2005 01:30 AM
Re: vim screw-up
Thanks!
There are no *.swp files. No one else is editing the file(s).
I have another Linux machine at home. I'll get the "set options" from it tonight and try to load them tomorrow.
Thanks,
Tom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-01-2005 02:31 AM
тАО11-01-2005 02:31 AM
Re: vim screw-up
I implemented the Windoze fix. I rebooted and everything is back to normal.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-01-2005 02:33 AM
тАО11-01-2005 02:33 AM