All Projects → nhooyr → Neoman.vim

nhooyr / Neoman.vim

Licence: apache-2.0
A modern man page plugin for vim

Projects that are alternatives of or similar to Neoman.vim

Graphql Markdown
The easiest way to document your GraphQL schema.
Stars: ✭ 114 (-5.79%)
Mutual labels:  docs
Oceanic Material
Oceanic Material Colorscheme on Vim/NeoVim
Stars: ✭ 117 (-3.31%)
Mutual labels:  neovim
Actualvim
Sublime Text 3 input mode using Neovim. Issues are closed, feel free to submit Pull Requests if you have bug fixes however.
Stars: ✭ 1,541 (+1173.55%)
Mutual labels:  neovim
Nvim Treesitter Context
Show code context
Stars: ✭ 113 (-6.61%)
Mutual labels:  neovim
Docat
Host your docs. Simple. Versioned. Fancy.
Stars: ✭ 115 (-4.96%)
Mutual labels:  docs
Coc Yaml
Yaml language server extension for coc.nvim
Stars: ✭ 119 (-1.65%)
Mutual labels:  neovim
Jpush Docs
JPush docs on official website. 极光推送官方文档。
Stars: ✭ 113 (-6.61%)
Mutual labels:  docs
Vim Ctrlspace
Vim Space Controller
Stars: ✭ 1,621 (+1239.67%)
Mutual labels:  neovim
Futureproof
A live editor for fragment shaders, powered by Neovim, WebGPU, and Zig!
Stars: ✭ 117 (-3.31%)
Mutual labels:  neovim
Notes
let me know if my notes help you :D (it's a mess, I know)
Stars: ✭ 119 (-1.65%)
Mutual labels:  neovim
Pico8 Api
Unofficial PICO-8 API with a lovely design ! ::
Stars: ✭ 115 (-4.96%)
Mutual labels:  docs
Git Blame.nvim
Git Blame plugin for Neovim written in Lua
Stars: ✭ 114 (-5.79%)
Mutual labels:  neovim
Coc Spell Checker
A basic spell checker that works well with camelCase code for (Neo)vim
Stars: ✭ 118 (-2.48%)
Mutual labels:  neovim
Nvim Autopairs
autopairs for neovim written by lua
Stars: ✭ 112 (-7.44%)
Mutual labels:  neovim
Nvim Lspconfig
Quickstart configurations for the Nvim LSP client
Stars: ✭ 3,410 (+2718.18%)
Mutual labels:  neovim
Nvim Ts Rainbow
🌈 Rainbow parentheses for neovim using tree-sitter 🌈
Stars: ✭ 108 (-10.74%)
Mutual labels:  neovim
Blog
人人贷大前端博客中心:打造优质大前端博客,欢迎关注我们
Stars: ✭ 118 (-2.48%)
Mutual labels:  docs
Dotfiles
My dotfiles
Stars: ✭ 121 (+0%)
Mutual labels:  neovim
Lightpack Docs
The most complete Lightpack project documentation
Stars: ✭ 120 (-0.83%)
Mutual labels:  docs
Plantuml Previewer.vim
Vim / Neovim plugin for preview PlantUML
Stars: ✭ 119 (-1.65%)
Mutual labels:  neovim

neoman

Read manpages faster than superman!

note: A much improved version of this plugin is included by default in neovim! see :h man.vim

neoman in action

Features

  • Smart manpage autocompletion
  • Open in a split/vsplit/tabe/current window
  • Control whether or not to jump to closest (above/left) neoman window
  • Open from inside a neovim terminal!
  • Jump to manpages in specific sections through the manpage links
  • Aware of modern manpages, e.g. sections are not just 1-8 anymore
  • zsh/bash/fish support
  • Can open paths to manpages!
  • Support for multiple languages!

Install

Any plugin manager should work fine.

Plug 'nhooyr/neoman.vim' "vim-plug

Usage

Command

The command is as follows:

Nman " display man page for <cWORD>
Nman [sect] page
Nman page[(sect)]
Nman path " if in current directory, start path with ./

Several ways to use it, probably easier to explain with a few examples.

:Nman printf
:Nman 3 printf
:Nman printf(3)
:Nman ./fzf.1 " open manpage in current directory

Nman without any arguments will use the WORD (it strips anything after ')') under the cursor as the page.

For splitting there are the following commands (exact same syntax as Nman)

:Snman 3 printf "horizontal split
:Vnman 3 printf "verical split
:Tnman 3 printf "in a new tab

Mappings

Default Mappings

<C-]> to jump to a manpage under the cursor.
<C-t> to jump back to the previous man page.
q to quit

Here is a global K mapping to take you to the manpage under the cursor.

nnoremap <silent> K :Nman<CR>

Here is a custom mapping for a vertical split man page with the word under the cursor.

nnoremap <silent> <leader>mv :Vnman<CR>

Or perhaps you want to give the name of the manpage?

nnoremap <leader>mv :Vnman<Space>

Command line integration

For vim (or neovim if you do not want terminal integration) you can simply set:

export MANPAGER="nvim -c 'set ft=neoman' -"

To use it with man.

If you want the super cool terminal integration, you will need nvr

Add the correct one to your .zshrc, w.bashrc or config.fish

source /somepath/neoman.vim/scripts/nman.zsh # or bash
source /somepath/neoman.vim/scripts/nman.fish

Now just use nman to open the manpages from within neovim!

Settings

g:neoman_find_window
If this option is set, neoman will first attempt to find the current neoman window before opening a new one. By default this is set.

g:neoman_tab_after
If set, :Tnman will open a tab just after the current one, instead of just before.

g:no_neoman_maps
If set, no mappings are made in neoman buffers. By default it is not set.

Contributing

I'm very open to new ideas, new features. Open up an issue, send me a PR or an email.

TODO:

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].