commit c6bb03b3099343542a6868ae7075ad3d89ee577a
parent 726042d59a03740d949c6b10dd615a6a82b281df
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Tue, 17 Jul 2018 15:45:56 -0400
Update keybinds and split behavior
Diffstat:
3 files changed, 6 insertions(+), 13 deletions(-)
diff --git a/links/.vim/plugin/keybinds.vim b/links/.vim/plugin/keybinds.vim
@@ -14,17 +14,10 @@ nnoremap <leader>y :set nolist<CR>:Goyo<CR>
nnoremap <leader>Y :set nolist<CR>:Goyo!<CR>:source $MYVIMRC<CR>
"nmap <leader>Y :set nolist<CR>:Goyo!<CR>:source $MYVIMRC<CR>
-" Save file
nnoremap <Leader>w :w<CR>
-nnoremap <Leader>W :w !sudo tee > /dev/null %<CR>:e!<CR>
-
-" Quit
+nnoremap <Leader>W :wa<CR>
nnoremap <Leader>q :q<CR>
-
-" Quit all
nnoremap <leader>Q :qa<CR>
-
-" Save and quit
nnoremap <Leader>x :x<CR>
" Jump to previous buffer
diff --git a/links/bin/board b/links/bin/board
@@ -3,7 +3,7 @@
function board {
#dir="$HOME/iawriter/"
dir="."
- format="-o"
+ format="-O"
if [ $# -gt 0 ]; then
if [ "$1" == "-h" ]; then
@@ -11,14 +11,14 @@ function board {
echo "usage: $0 [options] [target_directory]"
echo "options:"
echo -e "\\t-h show this info"
- echo -e "\\t-v open view as vertical splits"
+ echo -e "\\t-s open view as horizontal splits"
echo -n "By default the {todo,progress,done}.md files are opened in "
echo -n "the current directory. Optionally, a different directory "
echo "is used if a 'target_directory' is specified."
exit 0
- elif [ "$1" == "-v" ]; then
- format="-O"
+ elif [ "$1" == "-h" ]; then
+ format="-o"
if [ $# -gt 1 ]; then
dir="$2"
fi
diff --git a/links/bin/tmux-utility.sh b/links/bin/tmux-utility.sh
@@ -28,7 +28,7 @@ then
tmux new-window -t $SESSION -n "board"
tmux select-pane -t $SESSION:2.1
- tmux send-keys -t $SESSION "vim -O ~/iawriter/{todo,progress,done}.md" C-m
+ tmux send-keys -t $SESSION "$HOME/board $HOME" C-m
tmux new-window -t $SESSION
tmux select-pane -t $SESSION:3.1