/dot-files

Just my dot files

Primary LanguageVim Script

dot-files

Contains my dot-files for easy usage across different OSs.

theme preview

Theme Preview

contains

  • VIM Config files and bundles
  • VIM alternative icons in /assets/vim_icons

set-up ssh keys

usage

git clone git@github.com:marianposaceanu/dot-files.git

Submodules and bundles

update the bundles

git submodule update --init

fully update all bundles

git submodule foreach git pull origin master

install deps:

  • FZF: brew update; brew reinstall fzf
  • FZF+: brew install fzf bat ripgrep the_silver_searcher perl universal-ctags

cleanly remove a module

git submodule deinit asubmodule
git rm asubmodule

remove a broken module mapping

git rm --cached <path_to_submodule>

add a new submodule

git submodule add https://github.com/ayu-theme/ayu-vim.git .vim/pack/bundles/start/ayu-vim

Symbolic links

windows symbolic links

mklink /h "c:\Program Files (x86)\Vim\.gvimrc" "\dot-files\.vim\.gvimrc"
mklink /h "c:\Program Files (x86)\Vim\.vimrc" "\dot-files\.vim\.vimrc"
mklink /j "\Program Files (x86)\Vim\vim74\bundle" "\[path-to-dot-files]\dot-files\.vim\bundle"
mklink /h "c:\Users\conta_000\.gitconfig" .gitconfig

*nix symbolic links

ln -s ~/dot-files/.vimrc ~/.vimrc
ln -s ~/dot-files/.gvimrc ~/.gvimrc
ln -s ~/dot-files/.vim ~
ln -s ~/dot-files/.gitconfig ~/.gitconfig
ln -s ~/dot-files/.tmux.conf ~/.tmux.conf
ln -s ~/dot-files/.zshrc ~/.zshrc

macOS keyboard key repeat

defaults write NSGlobalDomain KeyRepeat -int 1
defaults write NSGlobalDomain InitialKeyRepeat -int 12

reset back to defaults:

defaults delete NSGlobalDomain KeyRepeat
defaults delete NSGlobalDomain InitialKeyRepeat

zsh

iTerm config

  • set the default scheme to base16: load it from iterm-colorschemes
  • set the b/g color from pure black to #333333 and foreground to #ebe6e2

optional: set zsh as the default shell

chsh -s `which zsh`

tmux

brew install tmux
brew install reattach-to-user-namespace

via fix-vim-tmux-yank-paste-on-unnamed-register

ssh keys

cp them into ~/.ssh and add proper permissions:

chmod 700 ~/.ssh
chmod 600 ~/.ssh/id_rsa
chmod 644 ~/.ssh/id_rsa.pub
chmod 644 ~/.ssh/authorized_keys
service ssh restart

credits

screencasts

Ack tips for Win platform

tips - fully remove a submodule

git submodule deinit -f .vim/bundle/modul-name
git rm -f .vim/bundle/modul-name