Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
The line("."), command gets the line in the current buffer. Whats the command to get line in an arbitrary buffer, using buffer numbers?
The getbufinfo() returns a list of dictionaries. One of the dictionary key is lnum - line number. One other key is bufn - buffer number.
Required, but never shown