Configs for vim, git, tmux and Alacritty.
- Clone this repo to a directory in your root.
git clone [email protected]:estrattonbailey/.dotfiles.git ~/.dotfiles
- Install or update vim. Autocompletion requires that it be installed with Lua, and that's optional of course.
brew install vim --with-lua
brew upgrade vim
- Install Alacritty
# clone and init
git clone https://github.com/jwilm/alacritty.git
cd alacritty
rustup override set stable
rustup update stable
# compile rust
cargo build --release
# package for applications
make app
# copy to applications folder
cp -r target/release/osx/Alacritty.app /Applications/
- Create symlinks:
ln -s ~/.dotfiles/vimrc ~/.vimrc
ln -s ~/.dotfiles/gitconfig ~/.gitconfig
ln -s ~/.dotfiles/gitignore_global ~/.gitignore_global
ln -s ~/.dotfiles/bashrc ~/.bashrc # might need to delete or copy the old one
ln -s ~/.dotfiles/bash_profile ~/.bash_profile # might need to delete or copy the old one
# remove the installed config and symlink this one
rm ~/.config/alacritty/alacritty.yml && ln -s ~/.dotfiles/alacritty.yml ~/.config/alacritty/alacritty.yml
ln -s ~/.dotfiles/tmux.conf ~/.tmux.conf
- Install Vim Plug: For more info, check out the repo, otherwise just use the CURL below.
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
- Install
ctags
Head to the universal-ctags homepage and install using Homebrew. As of writing this looks like:
brew install --HEAD universal-ctags/universal-ctags/universal-ctags
- Install plugins:
vim +PlugInstall +qa
5.1 For Tern, you'll need to cd
into ~/.dotfiles/vim/plugged/tern_for_vim
and run npm install
for that to run.
5.1 For ack, you'll need to brew install ack
.
- Use it:
vim <filename>
,
- LEADERh
- move leftj
- move downk
- move upl
- move righti
- enter insert modea
- move to next character and enter insert modeA
- go to end of line in insert modev
- enter visual selection modeV
- select whole linee
- go to end of next wordb
- go to beginning of last word$
- go to end of line0
- go to beginning of lineo
- add line aboveO
- add line belowH
- go to top of windowL
- go to bottom of windowCtrl+d
- move down by half a windowCtrl+u
- move up by half a windowy
- copy to system clipboardp
- paste from system clipboardu
- undoCtrl+r
- redodd
- delete whole linex
- delete character under cursorr
- replace character under cursor i.e. pressr
then press the char you want to insertviw
- with cursor over word, select the entire word in visual modevit
- with cursor over tag, select the contents of the tag in visual modediw
- with cursor over word, select and delete the entire worddit
- with cursor over tag, select and delete the contents of the tagciw
- with cursor over word, select and delete the entire word, then enter insert modecit
- with cursor over tag, select and delete the contents of the tag, then enter insert modegc
- comment out multiple lines, with multiple lines selected in visual modegcc
- comment out single line from normal mode/
- begin search//
- clear last search
Notable changes:
- uses
C-a
as prefix - uses pane splitting shortcuts similar to vim
See
tmux.conf
for these, there's only a few overrides.
MIT License