Add neovim

This commit is contained in:
Fabian Ising
2018-07-29 16:26:51 +02:00
parent 022fb330d5
commit 1a47a9f316
8 changed files with 43 additions and 8 deletions

1
nvim Symbolic link
View File

@@ -0,0 +1 @@
/Users/fabian/.config/nvim

4
tmux/.mac_config Normal file
View File

@@ -0,0 +1,4 @@
set-option -g default-shell /bin/zsh
bind -Tcopy-mode-vi y send -X copy-pipe "pbcopy" \; display-message "copied to system clipboard"
bind C-p run "tmux set-buffer \"$pbpaste\"; tmux paste-buffer"
bind C-y run "tmux save-buffer - | pbcopy"

View File

@@ -54,18 +54,25 @@ bind -n C-l if-shell "$is_vim" "send-keys C-l" "select-pane -R"
# move x clipboard into tmux paste buffer # move x clipboard into tmux paste buffer
bind C-p run "tmux set-buffer \"$(xclip -o)\"; tmux paste-buffer" bind C-p run "tmux set-buffer \"$(xclip -o)\"; tmux paste-buffer"
# move tmux copy buffer into x clipboard # move tmux copy buffer into x clipboard
bind C-y run "tmux save-buffer - | xclip -i"
set-option -s set-clipboard off set-option -s set-clipboard off
if '[ `uname` == Darwin ]' \
'source-file ~/.tmux/.mac_config'
source-file ~/.tmux/.tmux_config_powerline source-file ~/.tmux/.tmux_config_powerline
# Escape timeout for nvim
set -sg escape-time 10
# List of plugins # List of plugins
set -g @plugin 'tmux-plugins/tpm' set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible' #set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-sidebar' set -g @plugin 'tmux-plugins/tmux-sidebar'
set -g @plugin 'tmux-plugins/tmux-open' set -g @plugin 'tmux-plugins/tmux-open'
set -g @plugin 'tmux-plugins/tmux-yank' set -g @plugin 'tmux-plugins/tmux-yank'
# set -g @open-editor 'C-b' set -g @plugin 'jimeh/tmux-themepack'
set -g @themepack 'powerline/double/red'
# Other examples: # Other examples:
# set -g @plugin 'github_username/plugin_name' # set -g @plugin 'github_username/plugin_name'
@@ -73,4 +80,5 @@ set -g @plugin 'tmux-plugins/tmux-yank'
# set -g @plugin 'git@bitbucket.com/user/plugin' # set -g @plugin 'git@bitbucket.com/user/plugin'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm' run "echo 'New run' > /tmp/tpm_out"
run '~/.tmux/plugins/tpm/tpm >> /tmp/tpm_out 2>&1 >> /tmp/tpm_out'

View File

@@ -0,0 +1 @@
source '/usr/local/lib/python3.6/site-packages/powerline/bindings/tmux/powerline.conf'

11
tmux/mac_tmux_wrapper.sh Executable file
View File

@@ -0,0 +1,11 @@
#! /bin/sh
#
# test.sh
# Copyright (C) 2018 fabian <fabian@FordPrefect.local>
#
# Distributed under terms of the MIT license.
#
export PATH=$PATH:/usr/local/bin
tmux

View File

@@ -0,0 +1 @@
/Users/fabian/Masterarbeit/thesis 40

View File

@@ -1,7 +1,13 @@
# Set path to work with pycharm ...
[[ "$PATH" =~ /usr/local/bin ]] || export PATH=$PATH:/usr/local/bin
[[ -f ~/.zsh/.powerline_config ]] && source ~/.zsh/.powerline_config [[ -f ~/.zsh/.powerline_config ]] && source ~/.zsh/.powerline_config
[[ -f ~/.zsh/.user_config ]] && source ~/.zsh/.user_config [[ -f ~/.zsh/.user_config ]] && source ~/.zsh/.user_config
[[ -f ~/.zsh/.virtual_env_config.zsh ]] && source ~/.zsh/.virtual_env_config.zsh [[ -f ~/.zsh/.virtual_env_config.zsh ]] && source ~/.zsh/.virtual_env_config.zsh
[[ -f /usr/share/doc/find-the-command/ftc.zsh ]] && source /usr/share/doc/find-the-command/ftc.zsh [[ -f /usr/share/doc/find-the-command/ftc.zsh ]] && source /usr/share/doc/find-the-command/ftc.zsh
[[ -f ~/.zsh/.mac_config ]] && source ~/.zsh/.mac_config
POWERLEVEL9K_INSTALLATION_PATH=$ANTIGEN_BUNDLES/bhilburn/powerlevel9k
# Load Antigen # Load Antigen
source ~/.zsh/antigen/antigen.zsh source ~/.zsh/antigen/antigen.zsh
@@ -14,8 +20,7 @@ antigen use oh-my-zsh
# #
# Antigen Theme # Antigen Theme
# #
antigen theme bhilburn/powerlevel9k powerlevel9k
antigen theme agnoster
# #
# Antigen Bundles # Antigen Bundles
@@ -28,6 +33,7 @@ antigen bundle go
# antigen bundle tmuxinator # antigen bundle tmuxinator
antigen bundle zsh-users/zsh-syntax-highlighting antigen bundle zsh-users/zsh-syntax-highlighting
antigen bundle zsh-users/zsh-autosuggestions
# For SSH, starting ssh-agent is annoying # For SSH, starting ssh-agent is annoying
antigen bundle ssh-agent antigen bundle ssh-agent
@@ -37,5 +43,8 @@ antigen bundle pip
antigen bundle python antigen bundle python
antigen bundle virtualenv antigen bundle virtualenv
antigen bundle virtualenv
antigen apply antigen apply
export EDITOR='vim' alias vim=nvim
export EDITOR='nvim'