The window to be chosen for quickfix

2014-12-02 Thread neknekneknek . kyoto
Hi, I've encountered a weird behaviour of quickfix so let me ask a few questions. When I open a quickfix window with :copen, the quickfix window is opened at the bottom right and the corresponding source code is opened at the just upper window. The source code window seems to be opened at the

Re: syntax highlighting on files with no extension ?

2014-12-02 Thread Ben Fritz
On Monday, December 1, 2014 8:59:29 PM UTC-6, Alexander Chow wrote: There is nothing I can do about it, I've made hundreds attempts without any luck. How on earth can I set highlight on files that have no extension, say /etc/hosts file. I would like to set highlight on comments. that's it!!!

Re: syntax highlighting on files with no extension ?

2014-12-02 Thread Ben Fritz
On Tuesday, December 2, 2014 7:05:10 AM UTC-6, Ben Fritz wrote: On Monday, December 1, 2014 8:59:29 PM UTC-6, Alexander Chow wrote: There is nothing I can do about it, I've made hundreds attempts without any luck. How on earth can I set highlight on files that have no extension, say

Expanding a variable

2014-12-02 Thread David Fishburn
Trying to get this to work, not sure how. Vim 7.4.491 Assume the net result is I have this: let test_newline = '\n' Note, that is not: let test_newline = \n As this value is getting assigned from some other place. What I want to do is be able to convert it back into the equivalent of: \n I

RE: Expanding a variable

2014-12-02 Thread John Beckett
David Fishburn wrote: Assume the net result is I have this: let test_newline = '\n' Is this what you mean? :let x = '\n' :let x = substitute(x, '\\n', '\n', 'g') :echo char2nr(x) The first line puts a string of two characters (a backslash and n) into x. The second line changes