Fork me on GitHub
#vim
<
2019-11-04
>
martinklepsch10:11:43

thanks for the fugitive and fireplace help @dominicm @hybas3 @roelants.sam — I guess I should learn a bit more about the vim-sexp text objects…

martinklepsch10:11:14

$ cat ftplugin/vim.vim
autocmd FileType vim setlocal foldmethod=marker
I tried using an ftplugin file as described here (https://vimways.org/2018/from-vimrc-to-vim/) but when I open a vim file and try to fold anything it says “no folds found”. The file above is listed in :scriptnames and doing :set ft=vim folds everything — does that make sense to anyone?

dominicm10:11:11

Get rid of the autocmd prefix

dominicm10:11:21

Only setlocal ...

dominicm10:11:52

You're creating a autocmd every time you open a file there

martinklepsch11:11:29

sweet, thanks!

martinklepsch11:11:13

Here’s the tree-sitter StrangeLoop talk btw: https://www.youtube.com/watch?v=Jes3bD6P0To — pretty cool stuff!