Нема описа

Weiyi Lou 4284b88556 Remove irssi and screen configs пре 10 година
ack 0310a09947 add `.ackrc` пре 12 година
bin 407874e8bd Add `version-compare` and use this for git setup пре 10 година
git 90766b2060 Add vim-plug to repo, Update git ignores пре 10 година
homebrew 158a6f2c9b Update brewfile, add tmux vim mode lines пре 10 година
tmux dca5434207 Fix tmux options for 2.1+ пре 10 година
vim 4284b88556 Remove irssi and screen configs пре 10 година
vimperator dc9eb02bde Revert vimperator to auto-fade flash messages пре 10 година
zsh 407874e8bd Add `version-compare` and use this for git setup пре 10 година
.gitignore e3215b1c37 Add NeoVim XDG config, update vim-plug пре 10 година
.gitmodules e8c0dd5673 Remove tmux-colors-solarized, update vim-plug пре 10 година
README.md 4a91b4c581 Simplify README.md пре 10 година
setup.sh 4284b88556 Remove irssi and screen configs пре 10 година

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.