Skip to content

Commit

Permalink
Wrap installation blurbs in expandable summary/detail blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
natesire authored and alerque committed Apr 13, 2021
1 parent 6d0ab7d commit d4855b2
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,33 +8,55 @@ Comment functions so powerful—no comment necessary.

### Via Plugin Manager (Recommended)

<details>
<summary>Vim Plug</summary>

#### [Vim-Plug](https://github.com/junegunn/vim-plug)

1. Add `Plug 'preservim/nerdcommenter'` to your vimrc file.
2. Reload your vimrc or restart
3. Run `:PlugInstall`

</details>

<details>
<summary>Vundle</summary>

#### [Vundle](https://github.com/VundleVim/Vundle.vim) or similar

1. Add `Plugin 'preservim/nerdcommenter'` to your vimrc file.
2. Reload your vimrc or restart
3. Run `:BundleInstall`

</details>

<details>
<summary>NeoBundle</summary>

#### [NeoBundle](https://github.com/Shougo/neobundle.vim)

1. Add `NeoBundle 'preservim/nerdcommenter'` to your vimrc file.
2. Reload your vimrc or restart
3. Run `:NeoUpdate`

</details>

<details>
<summary>Pathogen</summary>

#### [Pathogen](https://github.com/tpope/vim-pathogen)

```sh
cd ~/.vim/bundle
git clone https://github.com/preservim/nerdcommenter.git
```
</details>

### Manual Installation

<details>
<summary>Unix</summary>

#### Unix

(For Neovim, change `~/.vim/` to `~/.config/nvim/`.)
Expand All @@ -45,7 +67,10 @@ curl -fLo ~/.vim/plugin/NERD_Commenter.vim --create-dirs \
curl -fLo ~/.vim/doc/NERD_Commenter.txt --create-dirs \
https://raw.githubusercontent.com/preservim/nerdcommenter/master/doc/NERD_commenter.txt
```
</details>

<details>
<summary>Windows</summary>
#### Windows (PowerShell)

```powershell
Expand All @@ -56,6 +81,7 @@ $docsuri = 'https://raw.githubusercontent.com/preservim/nerdcommenter/master/doc
(New-Object Net.WebClient).DownloadFile($pluguri, $ExecutionContext.SessionState.Path.GetUnresolvedProviderPathFromPSPath("~\vimfiles\plugin\NERD_commenter.vim"))
(New-Object Net.WebClient).DownloadFile($docsuri, $ExecutionContext.SessionState.Path.GetUnresolvedProviderPathFromPSPath("~\vimfiles\doc\NERD_commenter.txt"))
```
</details>

### Post Installation

Expand Down

0 comments on commit d4855b2

Please sign in to comment.