Re: How to make a local option global?

2014-09-30 Thread Bee
On Monday, September 29, 2014 7:36:49 PM UTC-7, andalou wrote: On 28/09/2014 03:26 p.m., Ben Fritz wrote: On Sunday, September 28, 2014 10:53:48 AM UTC-5, andalou wrote: set again: 'set comments+=n:' How can I have the same setting for all files? Add the line to your .vimrc: set

Re: How to make a local option global?

2014-09-30 Thread Cesar Romani
On 30/09/2014 09:43 a.m., Bee wrote: On Monday, September 29, 2014 7:36:49 PM UTC-7, andalou wrote: On 28/09/2014 03:26 p.m., Ben Fritz wrote: On Sunday, September 28, 2014 10:53:48 AM UTC-5, andalou wrote: set again: 'set comments+=n:' How can I have the same setting for all files? Add

Re: How to make a local option global?

2014-09-30 Thread Ben Fritz
On Tuesday, September 30, 2014 10:32:59 AM UTC-5, andalou wrote: But I don't want to modify my .vimrc for only this task. Before, I could set 'set comments+=n:' and it worked fine, but it was changed, I don't know why and when! Then, you must have either had it in your .vimrc at that

Re: How to make a local option global?

2014-09-30 Thread Matteo Cavalleri
Il giorno martedì 30 settembre 2014 17:32:59 UTC+2, andalou ha scritto: How can I have the same setting for all files? But I don't want to modify my .vimrc for only this task. how about bufdo? http://vim.wikia.com/wiki/Run_a_command_in_multiple_buffers -- -- You received this message

Re: How to make a local option global?

2014-09-30 Thread Gary Johnson
On 2014-09-30, Cesar Romani wrote: On 30/09/2014 09:43 a.m., Bee wrote: On Monday, September 29, 2014 7:36:49 PM UTC-7, andalou wrote: On 28/09/2014 03:26 p.m., Ben Fritz wrote: On Sunday, September 28, 2014 10:53:48 AM UTC-5, andalou wrote: set again: 'set comments+=n:' How can I

Re: How to make a local option global?

2014-09-29 Thread Cesar Romani
On 28/09/2014 03:26 p.m., Ben Fritz wrote: On Sunday, September 28, 2014 10:53:48 AM UTC-5, andalou wrote: I'm using vim 7.4.461 on Windows. How can I make an option global for the current session? For example, I notices that comments is set as a local option. How can I make it global when

Re: How to make a local option global?

2014-09-28 Thread Ben Fritz
On Sunday, September 28, 2014 10:53:48 AM UTC-5, andalou wrote: I'm using vim 7.4.461 on Windows. How can I make an option global for the current session? For example, I notices that comments is set as a local option. How can I make it global when editing a bunch of files? You

RE: How to make a local option global?

2014-09-28 Thread John Beckett
Cesar Romani wrote: How can I make an option global for the current session? For example, I notices that comments is set as a local option. How can I make it global when editing a bunch of files? As Ben mentioned, settings like that should be set via filetype. If you have several open files