No Description

Weiyi Lou 0f764f4401 Move brewfile to extra configs 10 years ago
ack 0310a09947 add `.ackrc` 12 years ago
bin b3cf0f366c Add `backup-zfs`, update `version-compare` usage 10 years ago
git 90766b2060 Add vim-plug to repo, Update git ignores 10 years ago
tmux da1ae1ad3a Update submodules 10 years ago
vim 4284b88556 Remove irssi and screen configs 10 years ago
vimperator dc9eb02bde Revert vimperator to auto-fade flash messages 10 years ago
zsh da1ae1ad3a Update submodules 10 years ago
.gitignore e120793599 Update backup location, clean gitignore 10 years ago
.gitmodules e8c0dd5673 Remove tmux-colors-solarized, update vim-plug 10 years ago
README.md 4a91b4c581 Simplify README.md 10 years ago
setup.sh e120793599 Update backup location, clean gitignore 10 years ago

README.md

dotfiles

Configuration files for:

  • Vim (7.4+) or NeoVim
  • Vimperator (3.8+)
  • Tmux
  • Zsh
  • Other bits and pieces

Heavy preference for vim-like bindings.

Requirements

  • zsh has been used with 4.3.17+.
  • vim can work with 7.3, but best with 7.4.

Recommended

Installation

$ cd ~
$ git clone https://code.parsleygardens.net/cinaeco/dotfiles.git
$ ~/dotfiles/setup.sh

Make sure the default shell is ZSH. Restart the terminal session after that.

Usage

Below is a non-exhaustive list of how this config is used.

Zsh

  • z folder jumping enabled, i.e. z regex = cd /path/with/regex.
  • Shell prompt displays Git repository info and work tree status.
  • Mostly-Mnemonic Git shortcuts, e.g. gs is git status, gd is git diff.
  • SSH agent use is encouraged. ssh-add is run at shell start if an identity is not already loaded.
  • A .zshlocal file can contain machine-specific settings.

Vim

Space is the <Leader>.

  • <Leader>w saves.
  • <Leader>q closes files.
  • <Leader>l lists loaded buffers and lets you jump to them by number.
  • <Leader>p fuzzy-finds files.
  • <Leader>f fuzzy-finds functions in the current file.
  • <Leader>t opens a function/variable list for the current file.
  • <Leader>n toggles line numbers.
  • <Leader>c finds VCS conflict markers.
  • Additional text objects exist (see 'Text Objects' in plugins.vim).
  • Saving .pandoc files also outputs .docx versions.
  • :Goyo for distraction-free writing.
  • :Dark, :Light and :Neon colour schemes available.

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

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 the following:

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