mirror of
https://github.com/jbranchaud/til
synced 2026-01-08 01:28:02 +00:00
Add Opening Man Pages In Vim as a vim til.
This commit is contained in:
@@ -286,6 +286,7 @@ smart people at [Hashrocket](http://hashrocket.com/).
|
||||
- [Next Modified Buffer](vim/next-modified-buffer.md)
|
||||
- [Open an Unnamed Buffer](vim/open-an-unnamed-buffer.md)
|
||||
- [Opening a URL](vim/opening-a-url.md)
|
||||
- [Opening Man Pages In Vim](vim/opening-man-pages-in-vim.md)
|
||||
- [Preventing Typos with Abbreviations](vim/preventing-typos-with-abbreviations.md)
|
||||
- [Previous Buffer](vim/previous-buffer.md)
|
||||
- [Previous Visual Selection](vim/previous-visual-selection.md)
|
||||
|
||||
22
vim/opening-man-pages-in-vim.md
Normal file
22
vim/opening-man-pages-in-vim.md
Normal file
@@ -0,0 +1,22 @@
|
||||
# Opening Man Pages In Vim
|
||||
|
||||
In [Quick Man Pages](vim/quick-man-pages.md), I explained how the
|
||||
`ft-man-plugin` allows you to quickly open man pages with `K`. For times
|
||||
when the particular command isn't in the buffer or the command contains a
|
||||
hyphen, you can instead use `:Man`. With the `ft-man-plugin` enabled, you
|
||||
can use `:Man` with the name of any command that has a manual page and the
|
||||
respective man page will be opened in a split buffer. For example, check out
|
||||
`git log` with:
|
||||
|
||||
```
|
||||
:Man git-log
|
||||
```
|
||||
|
||||
If you don't want the first manual entry, provide a specific number. For
|
||||
instance, you can open the `echo(3)` man page with:
|
||||
|
||||
```
|
||||
:Man 3 echo
|
||||
```
|
||||
|
||||
See `:h :Man` for more details.
|
||||
Reference in New Issue
Block a user