Configuration
- For the inverse search to work with Sioyek, vim need to be started in server mode and Sioyek put in synctex mode by pressing
<F4>.
let g:vimtex_quickfix_open_on_warning=0 in .vimrc for the bottom panel to show only compilation errors (not warnings).
Compilation
<leader>ll to launch/stop background compilation
<leader>lv to open PDF
<leader>lc to clean
Navigation
<leader>lt for a side panel with a table of content including the “todos” made using the todonotes package (this I find particularly useful).
- Move between section boundaries with
[[, [], ][, and ]]
- Move between environment boundaries with
[m, [M, ]m, and ]M
- Move between math environment boundaries with
[n, [N, ]n, and ]N
- Move between frame environment boundaries with
[r, [R, ]r, and ]R
- Move between matching delimiters with
%
Edit
- Use an operator
d,y,c followed by a (for all), i (for inner) or s (for surrounding), and:
c for commands
d for delimiters
e for latex environments
$ for math environments
m for items
<F6> to surround the line (or the selected text in visual mode) in an environment
- Change the math delimiters between inline, display and equation environment:
ts$.
- Toggle
\left and \right for brackets: tsd.