Re: cpp and golang code fold problem

2017-03-29 Thread YZ Xie
Hi Christian, thanks, you're right, fdm was different when file postfix was different, *.cc was syntax, *.cpp was manual, so I need to check my .vimrc. but I have set fdm to syntax, it's strange. Best YZ 2017-03-30 2:12 GMT+08:00 Christian Brabandt : > Hi YZ! > > In both cases please check the ou

Re: cpp and golang code fold problem

2017-03-29 Thread Christian Brabandt
Hi YZ! In both cases please check the output of `:verbose set fdm? fen?` Best, Christian -- -- 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 information, visit http://www.vim.org/maillist.php --- You recei

Re: cpp and golang code fold problem

2017-03-29 Thread Charles E Campbell
YZ Xie wrote: > Hi everyone, > > my .vimrc was > set foldmethod=syntax > filetype plugin indent on " Automatically detect file types. > syntax enable > syntax on > > but it cannot fold code if file was named like *.cpp, but it can work > well if file was name *.c or *.cc.

Re: cpp and golang code fold problem

2017-03-28 Thread YZ Xie
在 2017年3月29日星期三 UTC+8下午1:16:40,YZ Xie写道: > Hi everyone, > > > my .vimrc was  > set foldmethod=syntax  > filetype plugin indent on   " Automatically detect file types. > syntax enable >  syntax on   >                   > but  it cannot fold code if file was named like *.cpp, but it can work well

cpp and golang code fold problem

2017-03-28 Thread YZ Xie
Hi everyone, my .vimrc was set foldmethod=syntax filetype plugin indent on " Automatically detect file types. syntax enable syntax on but it cannot fold code if file was named like *.cpp, but it can work well if file was name *.c or *.cc. golang code failed too. my vim was installed by sour