nvim: funny digraphs

This commit is contained in:
dogeystamp 2023-05-03 21:21:59 -04:00
parent ba3d8bc5f9
commit 6c9ab56170
Signed by: dogeystamp
GPG Key ID: 7225FE3592EFFA38
2 changed files with 32 additions and 4 deletions

View File

@ -15,8 +15,9 @@ set lazyredraw nocursorline ttyfast
" use system clipboard instead of internal
set clipboard=unnamedplus
" when using c, do not overwrite clipboard
" when using c or s, do not overwrite clipboard
nnoremap c "-c
nnoremap s "-s
let mapleader = ","
@ -35,6 +36,32 @@ highlight LineNr ctermfg=grey
" Disable highlighting when searching
nnoremap <silent> <esc> :noh<return><esc>
" see :help digraphs
" these digraphs are reminiscent of canadian french keyboard layout
call digraph_setlist([
\["'a", 'à'],
\["'e", 'è'],
\["'u", 'ù'],
\["/e", 'é'],
\["}a", 'ä'],
\["}e", 'ë'],
\["}i", 'ï'],
\["}o", 'ö'],
\["}u", 'ü'],
\["}y", 'ÿ'],
\["]c", 'ç'],
\["[a", 'â'],
\["[e", 'ê'],
\["[i", 'î'],
\["[o", 'ô'],
\["[u", 'û'],
\])
" misc funny digraphs
call digraph_setlist([
\["++", '✝'],
\["+-", '†'],
\])
" NetRW

View File

@ -1,9 +1,10 @@
#!/bin/sh
# Edit clipboard contents with $EDITOR
# Quick editor popup
TMPFILE="$(mktemp)"
xsel -b > "$TMPFILE"
nvim "$TMPFILE"
#xsel -b > "$TMPFILE"
st -g 60x8+0+800 -n popup-bottom-center \
-e nvim -c "set binary noeol" -c "startinsert" "$TMPFILE" -c "highlight Normal ctermbg=016"
cat "$TMPFILE" | xsel -ib
rm "$TMPFILE"