Git Product home page Git Product logo

.dotfiles's Introduction

Dotfiles

Configs for vim, git, tmux and Alacritty.

Install

  1. Clone this repo to a directory in your root.
git clone [email protected]:estrattonbailey/.dotfiles.git ~/.dotfiles
  1. 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
  1. 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/
  1. 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
  1. 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
  1. 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
  1. 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.

  1. Use it:
vim <filename>

Usage

  • , - LEADER
  • h - move left
  • j - move down
  • k - move up
  • l - move right
  • i - enter insert mode
  • a - move to next character and enter insert mode
  • A - go to end of line in insert mode
  • v - enter visual selection mode
  • V - select whole line
  • e - go to end of next word
  • b - go to beginning of last word
  • $ - go to end of line
  • 0 - go to beginning of line
  • o - add line above
  • O - add line below
  • H - go to top of window
  • L - go to bottom of window
  • Ctrl+d - move down by half a window
  • Ctrl+u - move up by half a window
  • y - copy to system clipboard
  • p - paste from system clipboard
  • u - undo
  • Ctrl+r - redo
  • dd - delete whole line
  • x - delete character under cursor
  • r - replace character under cursor i.e. press r then press the char you want to insert
  • viw - with cursor over word, select the entire word in visual mode
  • vit - with cursor over tag, select the contents of the tag in visual mode
  • diw - with cursor over word, select and delete the entire word
  • dit - with cursor over tag, select and delete the contents of the tag
  • ciw - with cursor over word, select and delete the entire word, then enter insert mode
  • cit - with cursor over tag, select and delete the contents of the tag, then enter insert mode
  • gc - comment out multiple lines, with multiple lines selected in visual mode
  • gcc - comment out single line from normal mode
  • / - begin search
  • // - clear last search

tmux

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.