View on GitHub

dotfiles

My configuration files

Dotfiles

This repository contains my configuration files and scripts for my development environment. I use Neovim and VSCode as my text editors, Zsh as my shell, and Git as my version control system. I also use GitHub Copilot as my AI pair programmer.

Neovim

Most of the configuration files here are for Neovim, but they work fine with regular vim too. You can find a detailed explanation of how to set up Neovim below.

Neovim set up instructions:

Install the latest version of neovim with homebrew:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
brew install neovim

I recommend you to install iterm2, tmux, zsh, and oh-my-zsh as well:

brew install --cask iterm2
brew install tmux
brew install zsh
chsh -s $(which zsh)
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

Download vim-plug:

curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
    https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim

Download this repository and copy the contents to your home folder

git clone https://github.com/danilofreire/dotfiles
cd vimrc/
mv .vimrc /Users/username/

Create a ~/.config/nvim/init.vim file with the following content:

set runtimepath^=/.vim runtimepath+=~/.vim/after
let &packpath = &runtimepath
source ~/.vimrc

… or just copy the init.vim file above.

Open .vimrc and type :PlugInstall. From the command line:

nvim .vimrc +PlugInstall +qall

To use the arrow keys in normal mode, delete the following lines in the .vimrc file:

" Deactivate arrow keys
noremap <Up> <Nop>
noremap <Down> <Nop>
noremap <Left> <Nop>
noremap <Right> <Nop>

If you want to make your lightline toolbar and vim-devicons look nice, please download Nerd fonts. I use Fira Code.

brew tap homebrew/cask-fonts
brew install --cask font-fira-code

To install the iTerm2 Gruvbox Theme, download the gruvbox.itermcolors file and import it in iTerm2.

And this is how the editor looks like with the default configurations:

I hope you enjoy using Neovim! :)