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 ~/.dotfiles
cd ~/.dotfiles
make vim-all
for installing Vim Plug that it can manage many vim pluginsmake zsh
for installing zsh configmake tmux
for installing tmux config, note run this command inside tmux session.- Run
zsh
to run zsh and install their plugins oh-my-zsh
rezsh
orzgen reset && source ~/.zshrc
- Add plugin name in
~/.vimrc
- Reload vim config
:source ~/.vimrc
or 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:
zsh
isn'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
$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 Usage:
- See in Multi-language Vim Cheat sheet
- มีภาษาไทยด้วยนะ ดูได้ใน คู่มือการใช้ Vim ฉบับย่อ
- Auto
PASTE
mode 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 | leader hs |
Toggle background dark or light | leader bg |
Work with Git by Fugitive
Action | Key |
---|---|
Git status | leader gs |
Git commit | leader gc |
Git push | leader gp |
Git diff | leader gd |
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 | leader n |
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 | leader cc |
Uncomment code | leader cu |
Read more at NERDcommenter
Quick aligning code by Tabular
Usage: leader
a[Char what you want to align in same position in each line]
Example code:
dog=1
elephant=1
To algin use leader
a= , 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