about summary refs log tree commit diff
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2016-11-10T22·57-0500
committerWilliam Carroll <wpcarro@gmail.com>2016-11-10T22·57-0500
commit62cabc2e996bd3286fde9c0aa981ad96456c550a (patch)
treec9b767f75e866d4c0c1d29b7257a9f7e3a075bed
parent662c668c486d257c8d97ff839bd5c63f337d1f85 (diff)
Changes tmux prefix and updates vimrc
-rw-r--r--configs/.tmux.conf4
-rw-r--r--configs/.vimrc31
2 files changed, 34 insertions, 1 deletions
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 <leader> to <space> 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 <leader>bq :bp <BAR> bd #<CR>
 " make Y do what is intuitive given: 
 "   D: deletes until EOL
 "   C: changes until EOL
+"   Y: (should) yank until EOL
 nnoremap Y y$