jimmyharris / vim-r-plugin2

Tight integration between vim and R. I am not the original author of this plugin I just want to improve it's mac os x support. For support: please email: jalvesaq@gmail.com or joseclaudio.faria@gmail.com
http://sites.google.com/site/jalvesaq/vimrplugin
5 stars 2 forks source link

indent problem for sweave chunks within indented text #2

Open dankelley opened 13 years ago

dankelley commented 13 years ago

Thanks for developing the plugin in the open. I am finding that indenting of Sweave chunks fails, if the text above was indented. This is illustrated below. Perhaps I'm doing something wrong?

\documentstyle{article} \begin{document}

The following has the Sweave part at first of line
<<>>=
pi <- 10
@

The following has bad indenting.  The opening of the block is
indented, so ``R CMD Sweave'' won't detect the block.  Also, the line
after the block is improperly indented.

\begin{itemize}
    \item this will be bad:

        <<>>=
cat('pi=',pi,'\n')
@
after

\item after
\end{itemize}
\end{document}
jimmyharris commented 13 years ago

sorry about taking so long to get back to you. I should really mention that this is my own persional fork of an existing plugin and i have no association with the original authors. You may wish to check out their updated version of this code using at http://www.vim.org/scripts/script.php?script_id=2628

dankelley commented 13 years ago

Thanks very much. As it turns out, I contacted the original author, and he has fixed the bug.

https://github.com/vim-scripts/Vim-R-plugin