Re: Why .swp can be generated?

2015-05-05 Thread Gary Johnson
On 2015-05-05, Peng Yu wrote: > Hi, When I open a file, a file like .somefile.swp will be generated. > But why a file .swp (without the filename) can be generated? You will get a file named .swp if you open a new unnamed buffer and enter text into it. For example, start Vim as $ vim and add

Re: Why .swp can be generated?

2015-05-05 Thread Nikolay Pavlov
2015-05-06 6:44 GMT+03:00 Peng Yu : > Hi, When I open a file, a file like .somefile.swp will be generated. > But why a file .swp (without the filename) can be generated? Extension is the part of the filename. File `.swp` does have the filename. This can be generated when you view a directory. >

Why .swp can be generated?

2015-05-05 Thread Peng Yu
Hi, When I open a file, a file like .somefile.swp will be generated. But why a file .swp (without the filename) can be generated? -- Regards, Peng -- -- 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 informat

Re: Strange behavior after insert some shortcuts...

2015-05-05 Thread Raphael Rabelo de Oliveira
yes, this was the problem! I'm trying to organize the vimrc with comments and this broken my configs. I removed the comments and all working now! I didn't know that i can't put the comments in the same line! Thanks On Mon, May 4, 2015 at 12:18 AM, Ben Fritz wrote: > On Saturday, May 2, 2015 at

Re: How to determine whether an option is boolean?

2015-05-05 Thread Paul Isambert
> Some vim options are boolean, i.e. integers with the possible values 0 and 1. > You can, e.g., set `ai` and `noai` or use `let &ai = 1`. Other options are > numeric/integer or string values. > > type(&option) can only be used to distinguish string from bool/int options. > exist('&noai') retur

Re: How to determine whether an option is boolean?

2015-05-05 Thread Christian Brabandt
Am 2015-05-05 11:21, schrieb lith: Hi! Some vim options are boolean, i.e. integers with the possible values 0 and 1. You can, e.g., set `ai` and `noai` or use `let &ai = 1`. Other options are numeric/integer or string values. type(&option) can only be used to distinguish string from bool/int op

How to determine whether an option is boolean?

2015-05-05 Thread lith
Hi! Some vim options are boolean, i.e. integers with the possible values 0 and 1. You can, e.g., set `ai` and `noai` or use `let &ai = 1`. Other options are numeric/integer or string values. type(&option) can only be used to distinguish string from bool/int options. exist('&noai') returns 0, s