Hacker News new | past | comments | ask | show | jobs | submit login
Reading Manpages with Vim (coderwall.com)
2 points by beghbali on Nov 12, 2012 | hide | past | favorite | 2 comments



The article claims that vim comes with man.vim, but this appears to not be the case on my Ubuntu and Arch systems. It would be helpful if the post listed some information about the package and versions of vim that were used. Also, the function needs a semicolon in order to be correct in bash:

man () { vim -c "Man $*" -c "only"; }


It's located there:

    /usr/share/vim/vim7x/ftplugin/man.vim
and you activate it with this line in your ~/.vimrc:

    runtime ftplugin/man.vim




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: