在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):rbonvall/vim-textobj-latex开源软件地址(OpenSource Url):https://github.com/rbonvall/vim-textobj-latex开源编程语言(OpenSource Language):Vim Script 100.0%开源软件介绍(OpenSource Introduction):textobj-latex — Vim text objects for LaTeX codeThis plugin provides text objects for common LaTeX stuff that are not conveniently described by builtin Vim text objects. Currently supported text objects are:
ExampleLet █ be the position of the cursor. Start with this: \begin{document} \begin{frame}{Example} \begin{minipage}[t]{0.4\textwidth} The ``quick'' brown fox jumped█ over the ``lazy'' dog \(\sum_i n_i\) times this month where \(n_i\) is the number of jumps on day $i$. \end{minipage} \end{frame} \end{document} Press \begin{document} \begin{frame}{Example} \begin{minipage}[t]{0.4\textwidth} The ``quick'' brown fox jumped█ over the ``lazy'' dog \(\sum_i n_i\) times this month where \(n_i\) is the number of jumps on day $i$. \end{minipage} \end{frame} \end{document} Press \begin{document} \begin{frame}{Example} \begin{minipage}[t]{0.4\textwidth} The ``█QUICK'' brown fox jumped over the ``lazy'' dog \(\sum_i n_i\) times this month where \(n_i\) is the number of jumps on day $i$. \end{minipage} \end{frame} \end{document} Press \begin{document} \begin{frame}{Example} \begin{minipage}[t]{0.4\textwidth} The ``QUICK'' brown fox jumped over the ``lazy'' dog \(█\) times this month where \(n_i\) is the number of jumps on day $i$. \end{minipage} \end{frame} \end{document} Type something, then \begin{document} \begin{frame}{Example} \begin{minipage}[t]{0.4\textwidth} The ``QUICK'' brown fox jumped over the ``lazy'' dog \(n_1 + \cdots + n_30\) times this month where \(n_i\) is the number of jumps on day $i$█. \end{minipage} \end{frame} \end{document}
\begin{document} \begin{frame}{Example} \begin{minipage}[t]{0.4\textwidth} The ``QUICK'' brown fox jumped over the ``lazy'' dog \(n_1 + \cdots + n_30\) times this month where \(n_i\) is the number of jumps on $i$█day . \end{minipage} \end{frame} \end{document}
\begin{document} \begin{frame}{Example} \begin{minipage}[t]{0.4\textwidth} The ``QUICK'' brown fox jumped over the ``lazy'' dog \(n_1 + \cdots + n_30\) times this month where \(n_i\) is the number of jumps on $i$-th day.█ \end{minipage} \end{frame} \end{document} InstallationTextobj-latex depends on Kana's textobj-user, so you have to install it first. If you use Vundle, add the following lines to your .vimrc: Bundle 'kana/vim-textobj-user' Bundle 'rbonvall/vim-textobj-latex' and then run If you use Pathogen, clone both repos in your bundle directory: cd ~/.vim/bundle git clone git://github.com/kana/vim-textobj-user git clone git://github.com/rbonvall/vim-textobj-latex If you don't use either: you should. I have included dependency information for Vim Addon Manager and Vim Flavor, but have made no effort whatsoever to test if they work properly. AuthorRoberto Bonvallet <[email protected]> LicenseSame terms as Vim itself. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论