Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

formating rmarkdown files #9

Open
etheleon opened this issue May 7, 2015 · 0 comments
Open

formating rmarkdown files #9

etheleon opened this issue May 7, 2015 · 0 comments

Comments

@etheleon
Copy link

etheleon commented May 7, 2015

Hi,

i've written a small function to use in my own ~/.vimrc.local
to open a chunk. Maybe we could add this to one of the functions in this vim package.

function Chunk()
   normal i```{r}^M^M```^[k
endfunction
nnoremap <leader>r :call Chunk()<CR>

however its not complete. I was hopping it could do the wrapping of the a few lines of code (visual selection) and wrapping the starting and ending chunk identifiers
around the code. Not familiar with vim enough to write this piece of code

| <multiline CODE> 
| <multiline CODE> 
| <multiline CODE> 
| ```{r}
| <multiline CODE> 
| <multiline CODE> 
| <multiline CODE> 
| ```

any ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant