mirror of
https://github.com/Brandon-Rozek/website.git
synced 2024-11-25 01:26:30 -05:00
New Posts on neovim
This commit is contained in:
parent
0ed8813dd7
commit
6fe91d603f
2 changed files with 52 additions and 0 deletions
39
content/blog/neovimplugins.md
Normal file
39
content/blog/neovimplugins.md
Normal file
|
@ -0,0 +1,39 @@
|
|||
---
|
||||
title: "Neovim Plugins"
|
||||
date: 2020-03-23T22:52:19-04:00
|
||||
draft: false
|
||||
tags: []
|
||||
---
|
||||
|
||||
I decided to switch to [`neovim`](https://neovim.io/) recently and that resulted in having to redo my setup. This post will describe how to setup plugins with `vim-plug`.
|
||||
|
||||
First install neovim
|
||||
|
||||
```bash
|
||||
sudo apt install neovim
|
||||
```
|
||||
|
||||
Next, setup the `vim-plug` manager
|
||||
|
||||
```bash
|
||||
curl \
|
||||
-fLo ~/.local/share/nvim/site/autoload/plug.vim \
|
||||
--create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
|
||||
```
|
||||
|
||||
Then, you can load your favorite plugins inside of `~/.config/nvim/init.vim`
|
||||
|
||||
```vim
|
||||
"" Plugins Section
|
||||
call plug#begin()
|
||||
Plug 'airblade/vim-gitgutter' " Git Integration
|
||||
Plug 'junegunn/fzf' " Fuzzy Finder
|
||||
Plug 'vim-airline/vim-airline' " Status Line
|
||||
Plug 'dense-analysis/ale' " Async Lint
|
||||
Plug 'scrooloose/nerdtree' " Directory Tree
|
||||
call plug#end()
|
||||
|
||||
map <C-o> :NERDTreeToggle<CR>
|
||||
```
|
||||
|
||||
Finally, enter `vim` and type `:PlugInstall` to install all the plugins listed.
|
13
content/blog/uninstallvimplugins.md
Normal file
13
content/blog/uninstallvimplugins.md
Normal file
|
@ -0,0 +1,13 @@
|
|||
---
|
||||
title: "Uninstall Vim Plugins"
|
||||
date: 2020-03-23T23:00:00-04:00
|
||||
draft: false
|
||||
tags: []
|
||||
---
|
||||
|
||||
Assuming you're using `vim-plug` you might come to the point where you want to uninstall a plugin. Googling around will land you at [a GitHub issue](https://github.com/junegunn/vim-plug/issues/121) where a contributor named Andrea Cedraro states a workaround instead.
|
||||
|
||||
- Delete Plug line from `.vimrc` or `~/.config/nvim/init.vim`
|
||||
- Source the file. e.g `:so .vimrc`
|
||||
- Call `:PlugClean`
|
||||
|
Loading…
Reference in a new issue