Skip to content

Commit

Permalink
Added new section on vim and some other related changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasbn committed Jul 13, 2024
1 parent ae38738 commit 64191ee
Show file tree
Hide file tree
Showing 4 changed files with 75 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@
- [tokei - language statistics - fast](#tokei---language-statistics---fast)
- [Ubuntu - a Linux distribution based on Debian](#ubuntu---a-linux-distribution-based-on-debian)
- [ufw - Uncomplicated Firewall](#ufw---uncomplicated-firewall)
- [vim - a text editor](#vim---a-text-editor)
- [VSCode / Visual Studio Code](#vscode--visual-studio-code)
- [VMware Fusion - a virtualization tool for macOS](#vmware-fusion---a-virtualization-tool-for-macos)
- [Vue - a JavaScript framework](#vue---a-javascript-framework)
Expand Down Expand Up @@ -919,6 +920,12 @@
- [Allow HTTPS](ufw/allow_https.md)
- [Allow HTTP on another port](ufw/allow_ssh_on_another_port.md)

<a id="vim"></a>
### vim - a text editor

- [Use vim-plug](vim/use_vim-plug.md)
- [Cannot install vim plugin](vim/cannot_install_vim_plugin.md)

<a id="visual-studio-code"></a>
### VSCode / Visual Studio Code

Expand Down
11 changes: 11 additions & 0 deletions itermapp/use_cool_themes.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,23 @@ There is also a `Nord` theme for `tmux`, which I use.

- [GitHub: nordtheme/tmux][tmux]

Does require **tpm** for use, see my TIL on [how to use tpm](../tmux/use_tpm.md).

And one for `Vim`, which I also use.

- [GitHub: nordtheme/vim][vim]

Does require **vim-plug** for use, see my TIL on [how to use vim-plug](../vim/use_vimplug.md) and do note I ran into [a problem](../vim/cannot_install_vim_plugin.md) with the repository name.

## References

- [GitHub: mbadolato/iTerm2-Color-Schemes][themes]
- [GitHub: nordtheme/dircolors][dircolors]
- [GitHub: nordtheme/tmux][tmux]
- [GitHub: nordtheme/vim][vim]

[themes]: https://github.com/mbadolato/iTerm2-Color-Schemes
[dircolors]: https://github.com/nordtheme/dircolors
[tmux]: https://github.com/nordtheme/tmux
[vim]: https://github.com/nordtheme/vim

46 changes: 46 additions & 0 deletions vim/cannot_install_vim_plugin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Cannot install vim plugin

When running the following command in `vim`:

```bash
:PlugInstall
```

And you observe an error resembling this:

```
Cloning into '...'
fatal: could not read Username for 'https://github.com': terminal prompts disabled
```

1. Check that you Git is working.
1. Check that you spelled the plugin name correctly.

I experiences this issue with the Nord theme, where the documentation states:

```bash
Plug 'arcticstudio/nord-vim'
```

But the GtiHub repository is called `nordtheme/vim`.

So my `.vimrc` ended up looking like this:

```bash
call plug#begin()

" List your plugins here
" Nord colour theme
" Plug 'arcticstudio/nord-vim'
Plug 'nordtheme/vim'
call plug#end()
colorscheme nord
```
## Resources and References
- [StackExchange: Cannot install vim plugin due to git problem](https://vi.stackexchange.com/questions/38067/cannot-install-vim-plugin-due-to-git-problem)
- [Nord theme website: vim installation and activation](https://www.nordtheme.com/docs/ports/vim/installation)
- [GitHub: nordtheme/vim](https://github.com/nordtheme/vim)
11 changes: 11 additions & 0 deletions vim/use_vimplug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Use vim-plug

`vim-plug` is a minimalist Vim plugin manager.

I have just started using it, and it is very easy to use.

I ran into a [single problem](../vim/cannot_install_vim_plugin.md) when installing the Nord theme, but that was due to a challenge with the plugin.

## Resources and References

- [GitHub: junegunn/vim-plug](https://github.com/junegunn/vim-plug)

0 comments on commit 64191ee

Please sign in to comment.