Skip to content

mildronize/dotfiles

Repository files navigation

dotfiles

A dotfiles boilerplate that anyone can fork it to save own configuration and ready to use. It contains Vim, Zsh with Oh-my-zsh and Tmux configurations.

Warning!

This dotfiles supports only no config of vim, tmux and zsh. In the other hand, you should to backup your current configurations of each program.

Features

Todo

How to use my dotfiles

  1. Fork this repository
  2. Commit your own configurations

Note: This version is only install all things, next, I will seperate it.

Contents

Usage

2 ways to use

  1. quick setup or
  2. manual

Quick setup

Installation

  • Make sure you installed git curl zsh tmux vim, then run the command:
git clone https://github.com/mildronize/dotfiles.git ~/.dotfiles && cd ~/.dotfiles && make all

For tmux config, it requires to run make tmux inside tmux session.

Manual

Installation

  • Make sure you installed git curl zsh tmux vim
  • git clone https://github.com/mildronize/dotfiles.git ~/.dotfiles
  • cd ~/.dotfiles
  • make vim-all for installing Vim Plug that it can manage many vim plugins
  • make zsh for installing zsh config
  • make tmux for installing tmux config, note run this command inside tmux session.
  • Run zsh to run zsh and install their plugins oh-my-zsh

Update zsh config

  • rezsh or zgen reset && source ~/.zshrc

Add Vim Plugin

  • Add plugin name in ~/.vimrc
  • Reload vim config :source ~/.vimrc or Reopen vim
  • Install & Update plugin by using :PlugInstall

For Putty

Install Powerline fonts

Install Cheat

Interactive cheatsheets on the command-line

  • sudo easy_install cheat

Problem

  • Q: zsh isn't set to default shell
  • A: chsh -s /usr/bin/zsh [username] (Don't use sudo)

Managing your custom configurations

  • Edit your custom configurations
Config for zsh        : zsh/.zshrc.local
Config for Vim        : vim/.vimrc.local
Config for Vim key    : vim/.vimrc.key.local
Config for Vim Plugin : vim/plugin/*.vim
  • Uncomment or add your config files what you place into your $HOME path at .install.conf.yaml

Note: This file uses yaml format

  • Create new symbolinks of your dotfiles with dotbot using ./dotbot

Note: If you got some error, you should cope your existing dotfiles.

Vim

Vim Usage:

Features

  • Auto PASTE mode when pasting in insert mode

My Mapping Keys

Overriding Basic key

File: ~/.vimrc.keys

Action Key
Leader space
Go to NORMAL mode jk or kj
Toggle PASTE mode F3
Switching word wrap leader w
INSERT Jump out to the end of line
(still in insert mode)
Ctrll
Move to {next,previous} tab L , H
Swap window to {next,previous} buffer leader l , leader h
Toggle search highlight leaderhs
Toggle background dark or light leaderbg

Work with Git by Fugitive

Action Key
Git status leadergs
Git commit leadergc
Git push leadergp
Git diff leadergd

Read more at Fugitive

Auto zoom when active window by GoldenView

Always have a nice view for vim split windows

Action Key
Go to next split window Ctrln
Swapping main split with not main split F7

Read more at GoldenView

Travel in a tree explorer by NERDtree

Action Key
Toggle NERDtree leadern

Read more at NERDtree

Working with system clipboard by System Copy

Prerequisite: xsel for linux, other? read in System Copy

Action Key
Copy the selected text into system clipboard cp
NORMAL Paste from system clipboard into new line cv

Read more at System Copy

Quick comment code by NERDcommenter

Action Key
Toggle comment code leader/
Comment code leadercc
Uncomment code leadercu

Read more at NERDcommenter

Quick aligning code by Tabular

Usage: leadera[Char what you want to align in same position in each line]

Example code:

dog=1
elephant=1

To algin use leadera= , after that:

dog      = 1
elephant = 1

If it's not work. Don't worry!. Just add your key map in ~/.dotfiles/vim/plugin/tabular.vim

Read more at Tabular

Releases

No releases published

Packages

No packages published