Skip to content

Commit

Permalink
[vim] Make surround supper | and $
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcelRobitaille committed Mar 7, 2022
1 parent 78fc0a4 commit 7d8be45
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions vim/after/plugin/surround.vim
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ function SetupSurround()
" Surround with curly brackets with LaTeX macro in front
let g:surround_{char2nr('l')} = "\\\1LaTeX macro\1{\r}"

let g:surround_{char2nr('|')} = "|\r|"
let g:surround_{char2nr('$')} = "$\r$"

" Surround with italics / bold
autocmd FileType tex let g:surround_{char2nr('i')} = "\\textit{\r}"
autocmd FileType markdown let g:surround_{char2nr('i')} = "*\r*"
Expand Down

0 comments on commit 7d8be45

Please sign in to comment.