It can’t hurt to share some of you current helpers. Either someone else might get inspired by or in some cases you get suggestions how to make it better. Bash, Zsh, Fish or whatever shell script, command or alias (or abbreviation) you have, share here. Always fun to do so! I share mine in the comments, just like everybody else.

  • n0p1lls@piefed.zip
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    12 hours ago

    It’s for manual pages. You can navigate them as if you were in vim. IIRC, you should add this line to your vimrc and it should work:

    runtime! ftplugin/man.vim
    

    Plus, you need to pass a command as an arg to ‘viman’. Example: viman ls

    Edit: Sorry, I forgot an important detail. I also have a file in my autoload vim folder with this code:

    fun! library#manual_argv ()
            let argv = argv()
            let arguments = join(argv, ' ')
            exe 'Man' arguments
            only
    endfun
    

    I think I got the idea from someone on Github, or maybe Distrotube (the youtuber).