Skip to content

Commit

Permalink
merge: add info on vim-surround mappings in FAQ
Browse files Browse the repository at this point in the history
refer: #1821
  • Loading branch information
lervag authored Oct 14, 2020
2 parents 957dbbb + baf92af commit 670f4f8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doc/vimtex.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4370,6 +4370,9 @@ A: The mentioned mappings are indeed inspired by |surround.vim|. However,
\ = "\\begin{\1environment: \1}\n\t\r\n\\end{\1\1}"
let b:surround_{char2nr('c')} = "\\\1command: \1{\r}"
<
Remark also that, by default, |surround.vim| already provides the mapping
`ys<text-object>l` for encapsulating a text object in a LaTeX environment.

Note: Please also read the section |vimtex-nf-surround|!

Note: An alternative is to use `vim-sandwich` (see |sandwich.txt| or
Expand Down

0 comments on commit 670f4f8

Please sign in to comment.