diff --git a/README.md b/README.md index 9a09ae2..7c82b13 100644 --- a/README.md +++ b/README.md @@ -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) @@ -919,6 +920,12 @@ - [Allow HTTPS](ufw/allow_https.md) - [Allow HTTP on another port](ufw/allow_ssh_on_another_port.md) + +### vim - a text editor + +- [Use vim-plug](vim/use_vim-plug.md) +- [Cannot install vim plugin](vim/cannot_install_vim_plugin.md) + ### VSCode / Visual Studio Code diff --git a/itermapp/use_cool_themes.md b/itermapp/use_cool_themes.md index e4d89ad..98f00e3 100644 --- a/itermapp/use_cool_themes.md +++ b/itermapp/use_cool_themes.md @@ -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 + diff --git a/vim/cannot_install_vim_plugin.md b/vim/cannot_install_vim_plugin.md new file mode 100644 index 0000000..d40cbf2 --- /dev/null +++ b/vim/cannot_install_vim_plugin.md @@ -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) diff --git a/vim/use_vimplug.md b/vim/use_vimplug.md new file mode 100644 index 0000000..101c9bb --- /dev/null +++ b/vim/use_vimplug.md @@ -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)