Browse Source

Update dotfiles

coc
Schneider 6 years ago
parent
commit
046fd44f16
  1. 6
      init-bash.sh
  2. 7
      init.vim
  3. 8
      tmux/tmux.conf.symlink

6
init-bash.sh

@ -1,6 +0,0 @@
#!/bin/bash
mkdir ~/bin
git clone https://github.com/mrzool/bash-sensible ~/bin/bash-sensible
echo "source ~/bin/bash-sensible/sensible.bash" >> ~/.bashrc
source ~/.bashrc

7
init.vim

@ -94,6 +94,7 @@ Plug 'rhysd/vim-clang-format', { 'for' : ['c', 'cpp', 'java'] }
"Plug 'shawncplus/phpcomplete.vim', { 'for': 'php', 'do': 'curl -Ss http://vim-php.com/phpctags/install/phpctags.phar > ~/bin/phpctags && chmod +x ~/bin/phpctags' } "Plug 'shawncplus/phpcomplete.vim', { 'for': 'php', 'do': 'curl -Ss http://vim-php.com/phpctags/install/phpctags.phar > ~/bin/phpctags && chmod +x ~/bin/phpctags' }
Plug 'lvht/phpcd.vim', { 'for': 'php', 'do': 'composer install' } Plug 'lvht/phpcd.vim', { 'for': 'php', 'do': 'composer install' }
Plug 'captbaritone/better-indent-support-for-php-with-html', { 'for': 'php' } Plug 'captbaritone/better-indent-support-for-php-with-html', { 'for': 'php' }
Plug 'lumiliet/vim-twig', { 'for': [ 'php', 'html' ] } " Twig templates
" Python " Python
Plug 'davidhalter/jedi-vim', { 'for': 'python', 'do': 'pip install jedi' } Plug 'davidhalter/jedi-vim', { 'for': 'python', 'do': 'pip install jedi' }
@ -102,6 +103,9 @@ Plug 'zchee/deoplete-jedi', { 'for': 'python' }
" Java " Java
Plug 'artur-shaik/vim-javacomplete2', { 'for': 'java' } Plug 'artur-shaik/vim-javacomplete2', { 'for': 'java' }
" MIPS
Plug 'vim-scripts/mips.vim'
" All of your Plugins must be added before the following line " All of your Plugins must be added before the following line
call plug#end() " required call plug#end() " required
filetype plugin indent on " required filetype plugin indent on " required
@ -160,6 +164,9 @@ if has("autocmd")
au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$")
\| exe "normal! g'\"" | endif \| exe "normal! g'\"" | endif
endif endif
" Setting for correct mips syntax highlighting
au BufReadPost *.mips set syntax=mips
" }}} " }}}
" MAPPINGS{{{ " MAPPINGS{{{

8
tmux/tmux.conf.symlink

@ -1,7 +1,7 @@
set -g default-command "zsh" set -g default-command "zsh"
# tmux display things in 256 colors # tmux display things in 256 colors
#set -g default-terminal "tmux-256color-italic"
set -g default-terminal "screen-256color"
# enable terminal compability # enable terminal compability
#set-option -ga terminal-overrides ",tmux-256color-italic:Tc" #set-option -ga terminal-overrides ",tmux-256color-italic:Tc"
@ -81,13 +81,9 @@ setw -g mouse on
# set-option -g -q mouse on # set-option -g -q mouse on
bind-key -T root PPage if-shell -F "#{alternate_on}" "send-keys PPage" "copy-mode -e; send-keys PPage" bind-key -T root PPage if-shell -F "#{alternate_on}" "send-keys PPage" "copy-mode -e; send-keys PPage"
bind-key -t vi-copy PPage page-up
bind-key -t vi-copy NPage page-down
bind -T root WheelUpPane if-shell -F -t = "#{alternate_on}" "select-pane -t =; send-keys -M" "select-pane -t =; copy-mode -e; send-keys -M" bind -T root WheelUpPane if-shell -F -t = "#{alternate_on}" "select-pane -t =; send-keys -M" "select-pane -t =; copy-mode -e; send-keys -M"
bind -T root WheelDownPane if-shell -F -t = "#{alternate_on}" "select-pane -t =; send-keys -M" "select-pane -t =; send-keys -M" bind -T root WheelDownPane if-shell -F -t = "#{alternate_on}" "select-pane -t =; send-keys -M" "select-pane -t =; send-keys -M"
bind-key -t vi-copy WheelUpPane halfpage-up
bind-key -t vi-copy WheelDownPane halfpage-down
# maximizing and restoring windows # maximizing and restoring windows
unbind Up unbind Up
@ -102,8 +98,6 @@ unbind [
bind Escape copy-mode bind Escape copy-mode
unbind p unbind p
bind p paste-buffer bind p paste-buffer
bind -t vi-copy 'v' begin-selection
bind -t vi-copy 'y' copy-selection
# Buffers to/from Mac clipboard, yay tmux book from pragprog # Buffers to/from Mac clipboard, yay tmux book from pragprog
#bind C-c run "tmux save-buffer - | reattach-to-user-namespace pbcopy" #bind C-c run "tmux save-buffer - | reattach-to-user-namespace pbcopy"

Loading…
Cancel
Save