From edbb342053531c2e3c773bdadb29a879da1917ce Mon Sep 17 00:00:00 2001 From: Michiel Scholten Date: Mon, 8 Sep 2014 14:07:59 +0200 Subject: [PATCH 1/3] Alias to reload tmux config --- .bash_aliases | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.bash_aliases b/.bash_aliases index 3297c74..7cda729 100644 --- a/.bash_aliases +++ b/.bash_aliases @@ -46,6 +46,9 @@ alias takeover="tmux detach -a" # 20140825 as there is no `pip upgrade`, this has to do alias pip_upgrade="pip freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs pip install -U" +# 20140908 reload tmux config +alias tmux_reload="tmux source-file ~/.tmux.conf" + function fuck() { if killall -9 "$2"; then echo ; echo " (╯°□°)╯︵$(echo "$2"|toilet -f term -F rotate)"; echo From 33ecacfa613767b7182b13b614ab96fa24cf3cd9 Mon Sep 17 00:00:00 2001 From: Michiel Scholten Date: Sat, 20 Sep 2014 20:38:35 +0200 Subject: [PATCH 2/3] Added nerdtree with ctrl+n toggle --- .vimrc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.vimrc b/.vimrc index a0c6d45..97f4cc3 100644 --- a/.vimrc +++ b/.vimrc @@ -25,8 +25,11 @@ Plugin 'mhinz/vim-signify' Plugin 'tpope/vim-sensible' " Nice colour scheme Plugin 'jnurmine/Zenburn.git' +" Quick file system tree, mapped to Ctrl+n for quick toggle +Plugin 'scrooloose/nerdtree' +map :NERDTreeToggle -" == +" == Content convenience " Python autocompletion Plugin 'davidhalter/jedi-vim' From acdbe0dac155235b71bfe798a2f6505f39a11c8b Mon Sep 17 00:00:00 2001 From: Michiel Scholten Date: Sat, 20 Sep 2014 20:43:54 +0200 Subject: [PATCH 3/3] Close vim if the only window left open is a NERDTree --- .vimrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.vimrc b/.vimrc index 97f4cc3..c9b92fd 100644 --- a/.vimrc +++ b/.vimrc @@ -28,6 +28,8 @@ Plugin 'jnurmine/Zenburn.git' " Quick file system tree, mapped to Ctrl+n for quick toggle Plugin 'scrooloose/nerdtree' map :NERDTreeToggle +" close vim if the only window left open is a NERDTree +autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == "primary") | q | endif " == Content convenience