Нет описания

Weiyi Lou 7ece64ca89 Remove unused keymapping 1 год назад
ack 0310a09947 add `.ackrc` 12 лет назад
bin 5b9a35f49a Update plugins 3 лет назад
docs 7ecef0fee8 Update plugins, add papercolor theme to upgrade script 6 лет назад
git adb959e289 Update plugins 1 год назад
shell adb959e289 Update plugins 1 год назад
tmux c697d022d7 Fix tmux theme and remove old visual status option 6 лет назад
tridactyl a0270bdfdd Move firefox hoverlink to bottom-right 6 лет назад
vim 7ece64ca89 Remove unused keymapping 1 год назад
vimperator 6a2fc4b9f1 Fix vimperator loading slowly on new windows 9 лет назад
.gitignore df7db65bac Add `mandoc.db` to gitignore 5 лет назад
Makefile ed92083caf Update vim-plug, simplify vim plugins 1 год назад
README.md d379d4d02a Change ssh-agent setup to not autoload by default 5 лет назад
install ed92083caf Update vim-plug, simplify vim plugins 1 год назад

README.md

dotfiles

Configuration files for:

  • Bash (3.2+) and Zsh (4.3.17+)
  • Vim (7+) and NeoVim
  • Vimperator (3.8+) and Tridactyl
  • Tmux (1.8+)
  • Other bits and pieces

Heavy preference for Vim-like bindings.

Screenshot

Installation

Clone to a home folder and run make install or ./install. Restart the terminal session.

Usage

Below is a non-exhaustive list of dotfiles features.

Bash/Zsh

  • Case-insensitive completion.
  • The excellent z and v commands:
    • z for folder jumping: z regex = cd /path/with/regex.
    • v for file editing: v regex = vim /path/with/regex.
  • Multi-line shell prompt that displays Git repo info and job count.
  • Mostly-Mnemonic Git shortcuts: gs = git status, gd = git diff, etc.
  • Custom settings can be contained in .local files:
    • bash: ~/.bashrc.local and ~/.bashenv.local
    • zsh: ~/.zshrc.local and ~/.zshenv.local
  • SSH agent automation:
    • Set AUTO_AGENT_SETUP=1 (in an env file) to auto-load keys into ssh-agent.

Vim

Space is the <Leader>.

  • <Leader>w saves.
  • <Leader>q closes.
  • <Leader>l lists loaded buffers and allows jumping to them by number.
  • <Leader>p fuzzy-finds files.
  • <Leader>n toggles line numbers.
  • <Leader>c finds VCS conflict markers.
  • - opens a file browser.
  • Additional text objects exist (see 'Text Objects' in plugins.vim).
  • :Goyo for distraction-free writing.
  • :Dark, :Light colour schemes available.
  • Custom plugins can be listed in ~/.vim/plugins.vim.local.
  • Custom settings can be put in .vim.local files in ~/.vim/settings/, or in a ~/.vim/settings/local/ directory.

Tmux

<C-a> = Ctrl-a = the tmux prefix.

  • <C-a> + [vi motion] moves around panes.
  • <C-a> + <C-[vi motion]> moves around windows.
  • Alt/Meta + number moves to window number (1-10).
  • <C-a> + - cuts a pane horizontally,
  • <C-a> + \ cuts a pane vertically (think |).
  • <C-a> + s starts synchronized panes.
  • <C-a><C-s> swaps between sessions.
  • Mouse support works for selecting and resizing panes/windows.

Vimperator and Tridactyl

Apart from the default Vimperator goodness e.g.

  • / searches like vim.
  • f and F follow links on this tab/in a new tab.
  • et cetera...

These dotfiles provide a dark theme and the following binding changes:

  • h and l - change between tabs (left and right).
  • j and k - scroll by a half-page (down and up).
  • H, J, K, L - scroll slowly (left, down, up, right).
  • <C-h> and <C-l> - relocate a tab left and right.

Recommended