commit 7e2cba350bbfdcc2962bad4a9a4fa10aeb44ab38
parent 33368d4ee8c13b159e32cbdacfc793d5c414cfff
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Fri, 11 Oct 2019 14:11:29 +0200
Use vi as editor
Diffstat:
3 files changed, 50 insertions(+), 13 deletions(-)
diff --git a/.config/mutt/muttrc b/.config/mutt/muttrc
@@ -43,8 +43,9 @@ set meta_key=yes
set attribution="* %n <%a> [%{%Y-%m-%d %H:%M:%S %Z}]:\n"
set edit_headers # edit the message headers.
set fast_reply=yes # skip initial prompts when replying
-#set editor="$EDITOR +'normal G' -c 'set ft=mail noautoindent spell spelllang=en_us,da'"
-set editor="$EDITOR"
+#set editor="$EDITOR +'normal G' -c 'set ft=mail noautoindent spell spelllang=en_us,da'" # vim
+set editor="EXINIT='source $HOME/.exrc|set wl=72' vi"
+#set editor="$EDITOR"
set nomark_old # Don't mark unread new msgs as old.
set mime_forward # Forward message as MIME attachments.
set pager_context=3 # Display 3 lines of context in pager.
diff --git a/.config/sh/profile b/.config/sh/profile
@@ -1,11 +1,12 @@
#!/bin/sh
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
-if type vise >/dev/null 2>&1; then
- export EDITOR=vise
-else
- export EDITOR=vis
-fi
+#if type vise >/dev/null 2>&1; then
+# export EDITOR=vise
+#else
+# export EDITOR=vis
+#fi
+export EDITOR=vi
export FCEDIT="$EDITOR"
export TERMINAL=st
export FILE=nnn
diff --git a/.exrc b/.exrc
@@ -1,5 +1,5 @@
set autoindent
-set beautify
+"set beautify
set showmode
set showmatch
set ruler
@@ -12,8 +12,43 @@ set searchincr
set report=1
set wraplen=80
-map l :set list^M
-map m :!make^M
-map w :w^M
-map x :wq^M
-map q :q^M
+map Y y$
+
+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 =n :set number
+map =N :set nonumber
+map =o :!tmux split-window $EDITOR "$(find . -type f )"
+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 ^i/* A */^
+map :s/\/\* \([^*]*\) \*\//\1
+
+map #1 :!man vi
+
+map \f 1G/--
j:.,$!fmt -75
" format message (assumes MH Mail "comp" format)
+map \i :%!indent -i4^M
+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 \s :w
:!aspell -c %
:e!
+
+map *' Ea'Bi'
+map *" Ea"Bi"
+
+ab ANders Anders
+ab adamsg https://adamsgaard.dk
+ab het the
+ab teh the
+
+map *s Ea'^[Bi'^[
+map *d Ea"^[Bi"^[