Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • 2
    Or :echo getbufinfo({'bufmodified': 1})->map({ _, b -> b.bufnr })->join(',') Commented Jun 4, 2020 at 22:36
  • @D.BenKnoble Is that supposed to work as is? It's getting me an "using List as String" error. Commented Feb 23, 2021 at 16:28
  • @D.BenKnoble I can get echo join(map(getbufinfo({'bufmodified': 1}), { _,b -> b.bufnr }),",") to work, but not with the -> syntax. Commented Feb 23, 2021 at 16:36
  • 2
    @PSkocik it works for me; perhaps your vim is a little older and you don't have method syntax. In either case, it's syntax sugar for what you wrote. Commented Feb 23, 2021 at 17:09