Skip to content

Commit

Permalink
Added local bundles, fix vim
Browse files Browse the repository at this point in the history
- Fix vim tmux navigation, vim clipboard
- Add bundle/local subdirectories that will be ignored in git

Signed-off-by: Tomas Slusny <[email protected]>
  • Loading branch information
deathbeam committed Apr 1, 2017
1 parent 34aec9d commit a70d58b
Show file tree
Hide file tree
Showing 10 changed files with 37 additions and 11 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
vim/.vim/bundle/local/
tmux/.tmux/bundle/local/
zsh/.zsh/bundle/local/
16 changes: 9 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,34 +48,36 @@ $EDITOR ~/.zshrc.local
$EDITOR ~/.tmux.conf.local
```

To add your own Vim, Tmux or Zsh plugin you can just clone it to proper `bundle` directory:
To add your own Vim, Tmux or Zsh plugin you can just clone it to proper `bundle/local` directory:

```shell
# Add SuperTab vim plugin
git clone git://github.com/ervandew/supertab ~/.vim/bundle/supertab
git clone git://github.com/ervandew/supertab ~/.vim/bundle/local/supertab

# Add Tmux sessionist plugin
git clone git://github.com/tmux-plugins/tmux-sessionist ~/.tmux/bundle/tmux-sessionist
git clone git://github.com/tmux-plugins/tmux-sessionist ~/.tmux/bundle/local/tmux-sessionist

# Add zsh-autoenv zsh plugin
git clone git://github.com/Tarrasch/zsh-autoenv ~/.zsh/bundle/zsh-autoenv
git clone git://github.com/Tarrasch/zsh-autoenv ~/.zsh/bundle/local/zsh-autoenv
```

## Included stuff

### Shell
* [alias-tips](https://github.com/djui/alias-tips): A plugin to help remembering those aliases you defined once
* [base-16-shell](https://github.com/chriskempson/base16-shell): A shell script to change your shell's default ANSI colors but most importantly, colors 17 to 21 of your shell's 256 colorspace (if supported by your terminal)
* [cdls](https://github.com/deathbeam/dotfiles/tree/master/zsh/.zsh/bundle/cdls): Runs `ls -A` on directory change
* [cdls](https://github.com/deathbeam/dotfiles/tree/master/zsh/.zsh/bundle/cdls.plugin.zsh): Runs `ls -A` on directory change
* [fzf](https://github.com/junegunn/fzf): A command-line fuzzy finder written in Go
* [vi-mode](https://github.com/deathbeam/dotfiles/tree/master/zsh/.zsh/bundle/vi-mode): Enhanced Vi mode for zsh
* [globalias](https://github.com/deathbeam/dotfiles/tree/master/zsh/.zsh/bundle/globalias.plugin.zsh): Expands all glob
expressions, subcommands and aliases (including global)
* [vi-mode](https://github.com/deathbeam/dotfiles/tree/master/zsh/.zsh/bundle/vi-mode.plugin.zsh): Enhanced Vi mode for zsh
with history substring search support
* [zim](https://github.com/Eriner/zim): ZIM - Zsh IMproved

### Vim
* [base16-vim](https://github.com/chriskempson/base16-vim): Base16 for Vim
* [comittia.vim](https://github.com/rhysd/committia.vim): A Vim plugin for more pleasant editing on commit messages
* [deoplete.nvim](https://github.com/Shougo/deoplete.nvim): 🌠 Dark powered asynchronous completion framework for neovim
* [completor.vim](https://github.com/maralla/completor.vim): Async completion framework made ease
* [editorconfig-vim](https://github.com/editorconfig/editorconfig-vim): EditorConfig plugin for Vim
* [fzf.vim](https://github.com/junegunn/fzf.vim): fzf :heart: vim
* [syntastic](https://github.com/scrooloose/syntastic): Syntax checking hacks for vim
Expand Down
2 changes: 1 addition & 1 deletion qutebrowser/.config/qutebrowser/qutebrowser.conf
Original file line number Diff line number Diff line change
Expand Up @@ -922,7 +922,7 @@ cache-size =
# download button in the pdf.js viewer.
# Valid values: true, false
# Default: false
allow-images = false
allow-images = true
allow-javascript = true
allow-plugins = true
webgl = true
Expand Down
1 change: 0 additions & 1 deletion vim/.vim/bundle/bundle

This file was deleted.

1 change: 1 addition & 0 deletions vim/.vim/bundle/vim-tmux-navigator
5 changes: 4 additions & 1 deletion vim/.vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@
endif

" Use system clipboard
set clipboard+=unnamedplus
if has("clipboard")
set clipboard=unnamedplus
endif

" }}}

Expand Down Expand Up @@ -337,6 +339,7 @@
set rtp+=~/.fzf
runtime bundle/vim-pathogen/autoload/pathogen.vim
execute pathogen#infect()
execute pathogen#infect('~/.vim/bundle/local/{}')
execute pathogen#helptags()

" If base16 theme is set from shell, load it
Expand Down
2 changes: 1 addition & 1 deletion zsh/.profile
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ export LANG="en_US.UTF-8"
export LC_ALL="en_US.UTF-8"

# Preferred editor for local and remote sessions
export EDITOR="nvim"
export EDITOR="vim"
export VISUAL="$EDITOR"
File renamed without changes.
18 changes: 18 additions & 0 deletions zsh/.zsh/bundle/globalias.plugin.zsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
globalias() {
zle _expand_alias
zle expand-word
zle self-insert
}
zle -N globalias

# space expands all aliases, including global
bindkey -M emacs " " globalias
bindkey -M viins " " globalias

# control-space to make a normal space
bindkey -M emacs "^ " magic-space
bindkey -M viins "^ " magic-space

# normal space during searches
bindkey -M isearch " " magic-space

File renamed without changes.

0 comments on commit a70d58b

Please sign in to comment.