From 6fe91d603f12868b48b1150a08911d9e1a45376f Mon Sep 17 00:00:00 2001 From: Brandon Rozek Date: Mon, 23 Mar 2020 23:06:49 -0400 Subject: [PATCH] New Posts on neovim --- content/blog/neovimplugins.md | 39 +++++++++++++++++++++++++++++ content/blog/uninstallvimplugins.md | 13 ++++++++++ 2 files changed, 52 insertions(+) create mode 100644 content/blog/neovimplugins.md create mode 100644 content/blog/uninstallvimplugins.md diff --git a/content/blog/neovimplugins.md b/content/blog/neovimplugins.md new file mode 100644 index 0000000..790dbe6 --- /dev/null +++ b/content/blog/neovimplugins.md @@ -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 :NERDTreeToggle +``` + +Finally, enter `vim` and type `:PlugInstall` to install all the plugins listed. diff --git a/content/blog/uninstallvimplugins.md b/content/blog/uninstallvimplugins.md new file mode 100644 index 0000000..6c7fed0 --- /dev/null +++ b/content/blog/uninstallvimplugins.md @@ -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` +