Wednesday, August 7, 2013

vim vs nano on editing system files

Hi, I have a system configuration file that belongs to root. I can edit this file in nano using the command sudo nano, but I can't edit it using sudo vim - it's always read-only in vim, unless it is opened by root. Does anyone know why is this? Is there an option in vim that would allow the file to be edited via sudo vim, just like in nano? Thanks!

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment