dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 88d851523fd0232b6126511d31d1f5e83fa2c6c0
parent 03bb56b9b86c4fd1dc45d52a8dd867e5461f6136
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Mon, 21 Oct 2019 14:52:29 +0200

Update editor config

Diffstat:
M.exrc | 39++++++++++++++++++++++-----------------
M.local/bin/tmux-journal.sh | 2+-
2 files changed, 23 insertions(+), 18 deletions(-)

diff --git a/.exrc b/.exrc @@ -17,37 +17,42 @@ set filec= map gg 1G map Y ^y$ -map =B :Edit $BIB map =c :!ctags *.c map =d :r !date map =l :set list map =L :set nolist map =m :!make -map =M :!tmux split-window -p 25 top \; select-pane -l +map =M :!tmux split-window -p 25 make \; select-pane -l map =n :set number map =N :set nonumber -map =o :!tmux split-window $EDITOR "$(find . -type f )" map =r :r !scholarref map =t :tag -map =w :w -map =x :wq -map =q :q -map =Q :q! -map =] ok -map =[ Oj -map =sig a-- Anders Damsgaard https://adamsgaard.dkkk0 + +map qB :Edit $BIB +map qe :edit +map qs :Edit +map qh :!tmux split-window -h $EDITOR +map q] ok +map q[ Oj +map qw :w +map qq :q +map QQ :q! +map qsig a-- Anders Damsgaard https://adamsgaard.dkkk0 map #1 :!man vi -map \c ^i/* A */^ -map \C :s/\/\* \([^*]*\) \*\//\1/ -map \f 1G/-- j:.,$!fmt -75 -map \i :%!indent -i4 -map \p !}fmt -75 " format paragraph -map \P :.,$!fmt -75 " format thru end of document -map \e :%!expand -4 " expand tabs to 4 stops +map \c ^i/* A */^ " C comment +map \C :s/\/\* \([^*]*\) \*\//\1/ " C uncomment +map \i :%!indent -i4 " indent and format C program source +map \m 8G/-- j:.,$!fmt -75 " format email body +map \p !}fmt -75 " format from cursor to end of paragraph +map \P :.,$!fmt -75 " format from cursor to end of document +map \e :%!expand -4 " expand tabs to 4 spaces map \s :w :!aspell -c % :e! +"map  mt:'m,'t w! ~/.ex_yank +"map  :read ~/.ex_yank + map *' Ea'Bi' map *" Ea"Bi" diff --git a/.local/bin/tmux-journal.sh b/.local/bin/tmux-journal.sh @@ -3,6 +3,6 @@ cd $HOME/doc/journal SESSION=journal -tmux new-session -A -s "$SESSION" -n editor "$EDITOR journal.tex" +tmux new-session -A -s "$SESSION" -n editor "$EDITOR + journal.tex" cd -