Re: How to fold or hide the comment in vimrc file?

2016-12-22 Thread Zhe Lee
On Tuesday, December 20, 2016 at 12:23:59 AM UTC+8, Gary Johnson wrote: > On 2016-12-19, Zhe Lee wrote: > > On Friday, December 16, 2016 at 10:42:07 PM UTC+8, Gary Johnson wrote: > > > On 2016-12-16, Nikolay Aleksandrovich Pavlov wrote: > > > > 2016-12-16 5:41 GMT+03:00 Zhe Lee > > > > > I want to

Re: How to fold or hide the comment in vimrc file?

2016-12-19 Thread Gary Johnson
On 2016-12-19, Zhe Lee wrote: > On Friday, December 16, 2016 at 10:42:07 PM UTC+8, Gary Johnson wrote: > > On 2016-12-16, Nikolay Aleksandrovich Pavlov wrote: > > > 2016-12-16 5:41 GMT+03:00 Zhe Lee > > > > I want to fold or hide the comment in the vimrc file. > > > > I Google it and find mainly th

Re: How to fold or hide the comment in vimrc file?

2016-12-19 Thread Zhe Lee
On Friday, December 16, 2016 at 12:28:20 PM UTC+8, ZyX wrote: > 2016-12-16 5:41 GMT+03:00 Zhe Lee : > > I want to fold or hide the comment in the vimrc file. > > I Google it and find mainly the 2 solution below but none of them worked. > > > > > > syn match comment "\v(^\s*\".*\n)+" fold > > > > se

Re: How to fold or hide the comment in vimrc file?

2016-12-19 Thread Zhe Lee
On Friday, December 16, 2016 at 12:28:20 PM UTC+8, ZyX wrote: > 2016-12-16 5:41 GMT+03:00 Zhe Lee : > > I want to fold or hide the comment in the vimrc file. > > I Google it and find mainly the 2 solution below but none of them worked. > > > > > > syn match comment "\v(^\s*\".*\n)+" fold > > > > se

Re: How to fold or hide the comment in vimrc file?

2016-12-19 Thread Zhe Lee
On Friday, December 16, 2016 at 10:42:07 PM UTC+8, Gary Johnson wrote: > On 2016-12-16, Nikolay Aleksandrovich Pavlov wrote: > > 2016-12-16 5:41 GMT+03:00 Zhe Lee > > > I want to fold or hide the comment in the vimrc file. > > > I Google it and find mainly the 2 solution below but none of them work

Re: How to fold or hide the comment in vimrc file?

2016-12-16 Thread Nikolay Aleksandrovich Pavlov
2016-12-16 17:43 GMT+03:00 Gary Johnson : > On 2016-12-16, Nikolay Aleksandrovich Pavlov wrote: >> 2016-12-16 5:41 GMT+03:00 Zhe Lee >> > I want to fold or hide the comment in the vimrc file. >> > I Google it and find mainly the 2 solution below but none of them worked. >> > >> > >> > syn match com

Re: How to fold or hide the comment in vimrc file?

2016-12-16 Thread Gary Johnson
On 2016-12-16, Nikolay Aleksandrovich Pavlov wrote: > 2016-12-16 5:41 GMT+03:00 Zhe Lee > > I want to fold or hide the comment in the vimrc file. > > I Google it and find mainly the 2 solution below but none of them worked. > > > > > > syn match comment "\v(^\s*\".*\n)+" fold > > > > set foldmethod

Re: How to fold or hide the comment in vimrc file?

2016-12-15 Thread Nikolay Aleksandrovich Pavlov
2016-12-16 5:41 GMT+03:00 Zhe Lee : > I want to fold or hide the comment in the vimrc file. > I Google it and find mainly the 2 solution below but none of them worked. > > > syn match comment "\v(^\s*\".*\n)+" fold > > set foldmethod=expr foldexpr=getline(v:lnum)=~'^\s*"' > > > My Vimrc file is lik

How to fold or hide the comment in vimrc file?

2016-12-15 Thread Zhe Lee
I want to fold or hide the comment in the vimrc file. I Google it and find mainly the 2 solution below but none of them worked. syn match comment "\v(^\s*\".*\n)+" fold set foldmethod=expr foldexpr=getline(v:lnum)=~'^\s*"' My Vimrc file is like this, when I enter the 2 commands above nothing