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.
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
- To reduce tightly coupled in each tool from my previous version (forked from ibotdotout)
- To use Dotbot to create symbolink to my home automatically
- Use Vim Plug The previous version uses Janus Vim
- Use Zgen to manage Oh-my-zsh and zsh plugins
- Change Zgen to ZPlug
- Fork this repository
- Commit your own configurations
Note: This version is only install all things, next, I will seperate it.
2 ways to use
- quick setup or
- manual
- 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.
- Make sure you installed
git curl zsh tmux vim git clone https://github.com/mildronize/dotfiles.git ~/.dotfilescd ~/.dotfilesmake vim-allfor installing Vim Plug that it can manage many vim pluginsmake zshfor installing zsh configmake tmuxfor installing tmux config, note run this command inside tmux session.- Run
zshto run zsh and install their plugins oh-my-zsh
rezshorzgen reset && source ~/.zshrc
- Add plugin name in
~/.vimrc - Reload vim config
:source ~/.vimrcor Reopen vim - Install & Update plugin by using
:PlugInstall
- My Putty Configuration
- Run
export PUTTY=true
- Support on Linux and Windows
- https://github.com/powerline/fonts
Interactive cheatsheets on the command-line
sudo easy_install cheat
- Q:
zshisn't set to default shell - A:
chsh -s /usr/bin/zsh [username](Don't usesudo)
- 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
$HOMEpath 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 Usage:
- See in Multi-language Vim Cheat sheet
- มีภาษาไทยด้วยนะ ดูได้ใน คู่มือการใช้ Vim ฉบับย่อ
- Auto
PASTEmode when pasting in insert mode
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