aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-09-22 09:33:13 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-09-22 09:33:13 +0200
commit080c5ada7cfb91f0041809068ad7a90c3f1b95b6 (patch)
tree1b43730adf0d52fc508c365af15f030c50f927a8
parentbe4e5c61e5675db8972ee0c7b786e6e520cd70f5 (diff)
update UTF-8 to ascii/latex vimrc commands
-rw-r--r--.config/nvim/init.vim12
1 files changed, 8 insertions, 4 deletions
diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim
index fd1d949..6d285af 100644
--- a/.config/nvim/init.vim
+++ b/.config/nvim/init.vim
@@ -112,16 +112,20 @@ imap <C-j> <Down>
imap <C-k> <Up>
imap <C-l> <Right>
-command WordQuotesToLatex
+command UTF2Latex
\ :%s/‘/`/ge |
\ :%s/’/'/ge |
\ :%s/“/``/ge |
- \ :%s/”/''/ge
-command WordQuotesToAscii
+ \ :%s/”/''/ge |
+ \ :%s/–/--/ge |
+ \ :%s/—/---/ge
+command UTF2Ascii
\ :%s/‘/'/ge |
\ :%s/’/'/ge |
\ :%s/“/"/ge |
- \ :%s/”/"/ge
+ \ :%s/”/"/ge |
+ \ :%s/–/--/ge |
+ \ :%s/—/---/ge
" leader keybindings
nnoremap <silent> <leader> :WhichKey '<space>'<CR>