Skip to content

bdhammel/dotfiles

Repository files navigation

Dotfiles set up

Set up at new location

one-line command

cd ~ && ./dotfiles/makesymlinks.sh

import individual file

$ cd ~
$ ln -s dotfiles/vim .vim

Setting up Git

https://help.github.com/articles/checking-for-existing-ssh-keys/

See http://stackoverflow.com/questions/7773181/git-keeps-prompting-me-for-password

Make sure you are cloning your repos using ssh:

ssh://git@github.com/username/repo.git If you use https or git, you will always be asked for username/password:

https://github.com/username/repo.git git://github.com/username/repo.git

Misc info

Mapping caps -> esc

Mac OSX

system preferences > keyboard > keyboard > modifier keys

Ubuntu

dconf write /org/gnome/desktop/input-sources/xkb-options "['caps:escape']"

Very basic VIM

Download the very basic vimrc for using on other peoples computer

wget https://raw.githubusercontent.com/bdhammel/dotfiles/master/basic_vimrc -O ~/.vimrc

VIM buffer reference

Switch between buffers :bn and :bp

list buffers :ls

open new file in buffer :e <filename>

delete buffer :db

Splits

horizontal split :sp <filename>

vertical split :vs <filename>

Use Neovim as a git difftool Just paste this into your ~/.gitconfig

[difftool]
    prompt = true
[diff]
    tool = nvimdiff
[difftool "nvimdiff"]
    cmd = "nvim -d \"$LOCAL\" \"$REMOTE\""

Copy Pase

https://github.com/tmux/tmux/wiki/Clipboard#quick-summary

Setting up without sudo?

install to location /home/<user>/bin

cite: https://medium.com/thelinux/the-correct-way-to-install-the-neovim-42f3076f9b88

cd /home/$(whoami)/bin
curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim.appimage
chmod u+x nvim.appimage

to get tmux: cite: https://github.com/nelsonenzo/tmux-appimage

curl -s https://api.github.com/repos/nelsonenzo/tmux-appimage/releases/latest \
| grep "browser_download_url.*appimage" \
| cut -d : -f 2,3 \
| tr -d \" \
| wget -qi - \
&& chmod +x tmux.appimage