Re: open a file as readonly

2009-01-29 Thread Nicolas Aggelidis
thanks for the suggestions! best regards, nicolas --~--~-~--~~~---~--~~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---

Re: open a file as readonly

2009-01-28 Thread Ben Fritz
On Jan 28, 8:02 am, StarWing wrote: > just :set nomodifiable > There's also :set readonly, which will allow you to modify the buffer in Vim but will require you to use ! (like :w!) to save the changes to disk. It will also issue a warning the first time you make a change, but it is easy to miss

RE: open a file as readonly

2009-01-28 Thread John Beckett
Nicolas Aggelidis wrote: > sometimes i open some files to view their contents, in the > same time i have open some other files that i edit... > > because alot of times the names are very similar, is there > any way to mark a file temporarily {for the session} as readonly? If you are opening from

Re: open a file as readonly

2009-01-28 Thread Nicolas Aggelidis
On Wed, Jan 28, 2009 at 4:02 PM, StarWing wrote: > > just :set nomodifiable thank you starwing! --~--~-~--~~~---~--~~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--

Re: open a file as readonly

2009-01-28 Thread StarWing
just :set nomodifiable On 1月28日, 下午9时56分, Nicolas Aggelidis wrote: > hi to all, > > sometimes i open some files to view their contents, in the same time i > have open some other files that i edit... > > because alot of times the names are very similar, is there any way to > mark a file temporari