https://github.com/ephbaum/.vim
My Vim Files
https://github.com/ephbaum/.vim
Last synced: 4 months ago
JSON representation
My Vim Files
- Host: GitHub
- URL: https://github.com/ephbaum/.vim
- Owner: ephbaum
- Created: 2015-07-09T16:55:30.000Z (almost 11 years ago)
- Default Branch: main
- Last Pushed: 2025-02-25T06:24:59.000Z (over 1 year ago)
- Last Synced: 2025-04-14T09:53:04.796Z (about 1 year ago)
- Language: Vim Script
- Homepage:
- Size: 907 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# .vim (`.vimrc` in `$HOME/.config/nvim/`)
I'm tired of constantly having to remember how to set up and configure vim.
Updated: 2023-01-01 - I have made some adjustments to try switching to a Lua config. I'm taking small steps and instead of using my `.vimrc` as `init.vim`, I'm linking to `legacy.vim` for the time being, with the plan of gradually bringing the configuration over. I have also added lazy.nvim and gen.nvim.
This document will just assuming I'm rolling forward forever, check the git history for older configurations. Good luck.
This installation is taking place on Ubuntu 20.04 WSL. I wish it was possible to use Arch under Windows instead :fingers-crossed:
For this iteration, I plan to relocate everything to live within the `$HOME/.config/nvim` folder as it's been long enough that I've put off dealing with this. (I anticipate a file path update will be necessary along with an update to the `README.md`.)
Next, I may attempt to automate this process. :rolling-eyes:
## Initial Commands
1. Create a new config directory and navigate into it:
```bash
mkdir -p $HOME/.config/nvim && cd $HOME/.config/nvim
```
2. Clone the repository:
```bash
git clone git@github.com:ephbaum/.vim.git gitnvim
```
3. Create necessary directories:
```bash
mkdir swapfiles backups
```
4. Symlink your `.vimrc` file:
```bash
ln -s ~/.config/nvim/gitnvim/.vimrc ~/.config/nvim/legacy.vim
```
5. Symlink your `init.lua` file:
```bash
ln -s ~/.config/nvim/gitnvim/lua/init.lua ~/.config/nvim/init.lua
```
## Plugins
Then, follow the Neovim instructions to use [Vim Plug](https://github.com/junegunn/vim-plug):
```bash
sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
```
After launching `nvim`:
```vim
:PlugInstall
```
## After Care
You will want to install [Exuberant CTags](http://ctags.sourceforge.net/) for improved tagging functionality. Under Ubuntu, that's straightforward:
```bash
sudo apt install exuberant-ctags
```
Additionally, consider installing Node.js if needed. Other platforms may vary.
## Powerline Font
Currently, I prefer [FiraCode](https://github.com/tonsky/FiraCode). However, that preference might change later.
Under WSL2, adding this font is now simple using the Microsoft Terminal. It looks particularly impressive with transparency and scanlines enabled:
