LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-17-2016, 06:38 AM   #16
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513

You should be able to edit the file unless the filesystem it is on is mounted read-only.
 
Old 10-17-2016, 07:31 AM   #17
P.G.Krish
Member
 
Registered: Jun 2016
Distribution: Ubuntu
Posts: 64

Original Poster
Rep: Reputation: Disabled
Smile

Quote:
Originally Posted by keefaz View Post
Maybe vim opens the file as read only if a swap file is present and option v:swapchoice = "o" is set in vimrc
You can use ' :set noro ' to exit read only mode in vim
Hai keefaz,
It solved readonly problem, Afterthat i replace
Quote:
:%s/xxA/..\//g
I save it using
Quote:
x!
.

After reopening it have no change , Its have only one it original content, There is no change happen in this zip file

Thanks for valuable help
 
Old 10-17-2016, 07:34 AM   #18
P.G.Krish
Member
 
Registered: Jun 2016
Distribution: Ubuntu
Posts: 64

Original Poster
Rep: Reputation: Disabled
Talking

Quote:
Originally Posted by jpollard View Post
You should be able to edit the file unless the filesystem it is on is mounted read-only.
Hai Jpollard,
How to solve this?
 
Old 10-17-2016, 07:57 AM   #19
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,326

Rep: Reputation: 919Reputation: 919Reputation: 919Reputation: 919Reputation: 919Reputation: 919Reputation: 919Reputation: 919
Quote:
Originally Posted by P.G.Krish View Post
Hai Jpollard,
How to solve this?
you already did, n'est pas ?
Quote:
Originally Posted by P.G.Krish View Post
Hai keefaz,
It solved readonly problem, Afterthat i replace
I save it using .
...
 
Old 10-17-2016, 08:04 AM   #20
urbanwks
Member
 
Registered: Sep 2003
Distribution: Slackware64-Current, FreeBSD 12.1, Alpine 5.4, Manjaro 19, Alpine on WSL [Win10]
Posts: 194

Rep: Reputation: 213Reputation: 213Reputation: 213
The article you reference deals with essentially creating a trojan in a very specific environment: one that automatically decompresses zip files when uploaded.

If your purpose isn't this, what is your ultimate purpose? Perhaps there's a better way to do it.

http://xyproblem.info/
_
 
Old 10-17-2016, 12:49 PM   #21
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Quote:
Originally Posted by P.G.Krish View Post

After reopening it have no change , Its have only one it original content, There is no change happen in this zip file
Maybe there is no ' xxA ' in the file?

BTW how can you edit a zip file in vim, I tried opening a zip file and vim asks me which file to edit from a list of files contained in the archive. When I choose the file, I get the file text content...
 
  


Reply

Tags
vim


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to edit a .spec file in vim (E212: Can't open files for writing) subharaj Linux - Software 1 02-14-2012 03:14 AM
VIM: Split open same file and edit only 1 window encore4444 Programming 8 05-14-2011 10:40 PM
LXer: vimdiff - Edit two or Three versions of a file with Vim and show differences LXer Syndicated Linux News 0 04-09-2009 12:21 AM
mc(midnight commander) - using vim to edit does not change the file on ftp rlee923 Linux - Software 2 10-18-2007 05:08 AM
How to edit UTF-8 file in VIM ? naihe2010 Programming 6 09-28-2006 01:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration