From 62cabc2e996bd3286fde9c0aa981ad96456c550a Mon Sep 17 00:00:00 2001 From: William Carroll Date: Thu, 10 Nov 2016 17:57:12 -0500 Subject: Changes tmux prefix and updates vimrc --- configs/.tmux.conf | 4 ++++ configs/.vimrc | 31 ++++++++++++++++++++++++++++++- 2 files changed, 34 insertions(+), 1 deletion(-) (limited to 'configs') diff --git a/configs/.tmux.conf b/configs/.tmux.conf index 59568dfcb59c..904c95892c53 100644 --- a/configs/.tmux.conf +++ b/configs/.tmux.conf @@ -1,5 +1,9 @@ source-file "${HOME}/makersquare/tmux-themepack/powerline/block/green.tmuxtheme" +unbind C-b +set -g prefix C-a +bind C-a send-prefix + bind-key -r -T prefix k select-pane -U bind-key -r -T prefix j select-pane -D diff --git a/configs/.vimrc b/configs/.vimrc index 57323e8ddb26..59f5e963c8a3 100644 --- a/configs/.vimrc +++ b/configs/.vimrc @@ -75,6 +75,35 @@ set wildmenu set showcmd +" Code folding +set foldmethod=indent +set foldnestmax=10 +set nofoldenable +set foldlevel=4 + +" Opens all folds within the buffer +nnoremap ZZ zR + +" Closes all folds within the buffer +nnoremap zz zM + +" Opens all folds beneath the cursor +" NOTE: j is the character to go down +nnoremap zJ zO + +" Opens single fold beneath the cursor +" NOTE: j is the character to go down +nnoremap zj zo + +" Opens single fold beneath the cursor +" NOTE: k is the character to go down +nnoremap zK zC + +" Opens single fold beneath the cursor +" NOTE: k is the character to go down +nnoremap zk zc + + " Changes to character. let mapleader = " " @@ -100,7 +129,6 @@ set backspace=indent,eol,start " Javascript specific variables let g:javascript_plugin_jsdoc = 1 -" set foldmethod=syntax " GlobalListchars set list @@ -172,6 +200,7 @@ nnoremap bq :bp bd # " make Y do what is intuitive given: " D: deletes until EOL " C: changes until EOL +" Y: (should) yank until EOL nnoremap Y y$ -- cgit 1.4.1