Tuesday, March 28, 2017

Re: cpp and golang code fold problem

在 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 if file was name *.c or *.cc.  golang code failed too.
>
>
> my vim was installed by source code from github,runtime director is /usr/share/vim/vim80. 
>
>
> I have export VIMRUNTIMEDIR= /usr/share/vim/vim80 in /etc/profile and source it.
>
>
> vim version was 8.0.439. 
>
>
> how can I fix this problem?
> thanks

when zc it show E490 no fold found, but rename source file from *.cpp to *.c or *.cc, it works well

--
--
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 received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: