Re: "Exploding" a paragraph into individual lines

2016-02-02 Thread Rick Dooling
On Wednesday, January 27, 2016 at 11:49:39 AM UTC-6, Chris Lott wrote: > I'd like to take a paragraph like the following: > > This is a paragraph. Wow! What do I do now? > > And break it into individual lines, ala: > > This is a paragraph. > Wow! > What do I do now? > > StackExchange revealed

Re: :m without jumping

2015-10-10 Thread Rick Dooling
On Wednesday, October 7, 2015 at 4:34:18 AM UTC-5, Jan wrote: > Is it possible to move a line or lines, with :m, and not have the cursor jump > to that new location, ie. to have it stay where it is? I'm a writer, not a coder, but I use this to move a single line (which usually means a whole

syntax region end when either pattern occurs?

2015-06-29 Thread Rick Dooling
I am trying to syntax highlight yaml blocks in Markdown files. Right now, I can get it so it handles either blocks that look like this: --- author: me document: Help --- or --- author: me document: Help ... But not both. Is there a way to do both? I tried end=\(/^---$/\|/^\.\.\.$\) but that

Re: syntax region end when either pattern occurs?

2015-06-29 Thread Rick Dooling
On Monday, June 29, 2015 at 10:52:25 AM UTC-5, Rick Dooling wrote: I am trying to syntax highlight yaml blocks in Markdown files. Right now, I can get it so it handles either blocks that look like this: --- author: me document: Help --- or --- author: me document: Help

Re: netrw hide files beginning with . while using the long liststyle

2015-06-26 Thread Rick Dooling
On Thursday, June 25, 2015 at 3:27:20 PM UTC-5, Charles Campbell wrote: Rick Dooling wrote: On Monday, March 9, 2015 at 7:53:06 PM UTC-5, DrChip wrote: Rick Dooling wrote: I saw another thread herein where the conversation touched on this but without a conclusive answer. I like

move range to a file that is open in another buffer

2015-06-19 Thread Rick Dooling
Dear Vim Wizards: If I'm in file1.txt and want to write a range to file2.txt, I can do: :'a,'bw file2.txt But if file2.txt is open in another buffer, I get an error E139. Is there a way to copy or move a range to another open buffer without getting this error? Thanks, Rick Dooling ps

Re: move range to a file that is open in another buffer

2015-06-19 Thread Rick Dooling
On Friday, June 19, 2015 at 10:49:14 AM UTC-5, Ben Fritz wrote: On Friday, June 19, 2015 at 8:23:17 AM UTC-5, Rick Dooling wrote: Dear Vim Wizards: If I'm in file1.txt and want to write a range to file2.txt, I can do: :'a,'bw file2.txt But if file2.txt is open in another buffer

pass vim variable to python script

2015-06-14 Thread Rick Dooling
So let's say I want the current line number in the Vim Buffer let x=line(.) And then I want to do something with it inside my Python script. How do I refer to it? Or if there is a way to get the current line number using the python vim module? I see vim.current.line but this is a string of

Re: open file, go to last line, add blank line, change to insert

2015-05-31 Thread Rick Dooling
On Sunday, May 31, 2015 at 12:57:51 PM UTC-5, ZyX wrote: 2015-05-30 23:21 GMT+03:00 Rick Dooling Hello, I frequently want to open a text file, go to the last line, open the fold, add one or two blank lines and begin writing. I'm trying to make an alias for vim that does

Re: open file, go to last line, add blank line, change to insert

2015-05-30 Thread Rick Dooling
On Saturday, May 30, 2015 at 3:50:31 PM UTC-5, Tim Chase wrote: On 2015-05-30 13:21, Rick Dooling wrote: alias note=gvim -c $ +foldo +put='' +star /Users/name/Notes/notes.md Everything works except the attempt to put a blank line. No matter what I try: :pu='' :$pu=' _' etc

open file, go to last line, add blank line, change to insert

2015-05-30 Thread Rick Dooling
Hello, I frequently want to open a text file, go to the last line, open the fold, add one or two blank lines and begin writing. I'm trying to make an alias for vim that does this. Something like: alias note=gvim -c $ +foldo +put='' +star /Users/name/Notes/notes.md Everything works except the

Re: My approach to a custom status line

2015-05-30 Thread Rick Dooling
On Saturday, May 30, 2015 at 3:45:07 PM UTC-5, Nicola wrote: Hi, I have recently re-implemented my status line from scratch. Since getting to my (hopefully final) solution took a while (and help from this group) I'm giving back my approach, in the hope that it may be useful to other

Re: Any poets here?

2015-05-30 Thread Rick Dooling
On Friday, January 30, 2015 at 1:58:02 PM UTC-6, Eric Weir wrote: Wondering if there are any poets here who use vim in writing poetry, either in the messy creative phase or the later refining, polishing, and editing phase. If so, I’d be interested in knowing how you use vim, how you find vim

Re: MacVim launching Skim

2015-03-26 Thread Rick Dooling
On Saturday, March 21, 2015 at 12:21:16 PM UTC-4, hcai wrote: Hi Ethan, Thanks for your suggestions! I definitely would like to spend time learning how to manipulate the plugin managers. Haitao On Friday, March 20, 2015 at 1:08:32 PM UTC-4, Ethan Hereth wrote: On Thu, Mar 19,

netrw and clipboard use

2015-03-11 Thread Rick Dooling
to the Jumpcut Clipboard. Is there a way to tell netrw to use some other clipboard or register, so that its entries don't fill up in my Jumpcut history? Thank you Rick Dooling -- -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you

netrw hide files beginning with . while using the long liststyle

2015-03-09 Thread Rick Dooling
I saw another thread herein where the conversation touched on this but without a conclusive answer. I like the long list style in netrw, and I also like sorting by time reversed (showing newest files at the top). However, when I switch to this view all of the dot-files and dot-directories

Re: netrw hide files beginning with . while using the long liststyle

2015-03-09 Thread Rick Dooling
On Monday, March 9, 2015 at 7:53:06 PM UTC-5, DrChip wrote: Rick Dooling wrote: I saw another thread herein where the conversation touched on this but without a conclusive answer. I like the long list style in netrw, and I also like sorting by time reversed (showing newest files

Re: Do most Vim users use snippets?

2014-01-11 Thread Rick Dooling
On Saturday, January 11, 2014 10:29:17 PM UTC-6, Ivan wrote: I've written a few iabbreviations into my vimrc that act like snippets, but they're pretty primitive compared to some of the available plugins (like snipMate). I'm thinking about trying out snipMate, or something similar, and I'm

Re: convert markdown to html in new tab

2014-01-10 Thread Rick Dooling
On Friday, January 10, 2014 12:18:43 PM UTC-6, ZyX wrote: This one grabs the buffer contents, converts it to HTML, and sends it to the clipboard for pasting into WordPress or whatever. It does not. Just run in *terminal* vim. Mmm. I'm on a MacBook Pro using MacVim? Don't know if that

Re: convert markdown to html in new tab

2014-01-10 Thread Rick Dooling
On Friday, January 10, 2014 6:16:31 AM UTC-6, Jacobo de Vera wrote: On Thu, Jan 9, 2014 at 9:07 PM, Rick Dooling rpdo...@gmail.com wrote: On Thursday, January 9, 2014 2:29:41 PM UTC-6, ZyX wrote: On Jan 9, 2014 11:50 PM, Rick Dooling rpdo...@gmail.com wrote

Re: convert markdown to html in new tab

2014-01-10 Thread Rick Dooling
This one grabs the buffer contents, converts it to HTML, and sends it to the clipboard for pasting into WordPress or whatever. Send Text Through Filter To Clipboard: http://vim.wikia.com/wiki/Use_filter_commands_to_process_text function! MDC() :redir

Re: convert markdown to html in new tab

2014-01-10 Thread Rick Dooling
On Friday, January 10, 2014 3:06:44 PM UTC-6, Jacobo de Vera wrote: On Fri, Jan 10, 2014 at 7:03 PM, Rick Dooling rpdoo.com wrote: This one grabs the buffer contents, converts it to HTML, and sends it to the clipboard for pasting into WordPress or whatever. Send Text

convert markdown to html in new tab

2014-01-09 Thread Rick Dooling
Dear Vim Scripters: I know how to run external commands and send the output to new files and such, but I'm wondering if a Vim scripter can help me do something that has to be a common task. Assume I have a buffer open in Vim called file.markdown I want to run my external markdown processor of

Re: convert markdown to html in new tab

2014-01-09 Thread Rick Dooling
On Thursday, January 9, 2014 10:42:47 AM UTC-6, Rick Dooling wrote: Dear Vim Scripters: I know how to run external commands and send the output to new files and such, but I'm wondering if a Vim scripter can help me do something that has to be a common task. I have tried this: !pandoc % -o

Re: convert markdown to html in new tab

2014-01-09 Thread Rick Dooling
I have tried this: !pandoc % -o %.html | tabe %.html But I get this error /bin/bash: tabe: command not found shell returned 127 Looking for a bash command not a vim command, it seems. On Thursday, January 9, 2014 10:42:47 AM UTC-6, Rick Dooling wrote: Dear Vim Scripters: I know how

Re: convert markdown to html in new tab

2014-01-09 Thread Rick Dooling
On Thursday, January 9, 2014 10:42:47 AM UTC-6, Rick Dooling wrote: Dear Vim Scripters: I know how to run external commands and send the output to new files and such, but I'm wondering if a Vim scripter can help me do something that has to be a common task. Assume I have a buffer open

Re: convert markdown to html in new tab

2014-01-09 Thread Rick Dooling
On Thursday, January 9, 2014 11:26:15 AM UTC-6, Rick Dooling wrote: On Thursday, January 9, 2014 10:42:47 AM UTC-6, Rick Dooling wrote: Dear Vim Scripters: I know how to run external commands and send the output to new files and such, but I'm wondering if a Vim scripter can help me do

Re: convert markdown to html in new tab

2014-01-09 Thread Rick Dooling
On Thursday, January 9, 2014 2:29:41 PM UTC-6, ZyX wrote: On Jan 9, 2014 11:50 PM, Rick Dooling rpdo...@gmail.com wrote: On Thursday, January 9, 2014 11:26:15 AM UTC-6, Rick Dooling wrote: On Thursday, January 9, 2014 10:42:47 AM UTC-6, Rick Dooling wrote: Dear Vim Scripters

Re: fold on lines beginning with either = or #

2013-02-23 Thread Rick Dooling
On Friday, February 22, 2013 7:19:06 PM UTC-6, Tim Chase wrote: On 2013-02-22 15:14, Rick Dooling wrote: Using Fountain (new markdown for screenwriters). I have Vim successfully folding on lines beginning with = using this setlocal foldexpr=getline(v:lnum

fold on lines beginning with either = or #

2013-02-22 Thread Rick Dooling
Using Fountain (new markdown for screenwriters). I have Vim successfully folding on lines beginning with = using this setlocal foldexpr=getline(v:lnum)!~\^=\ but I would like Vim to fold on BOTH = and # (hierarchy not necessary) How do I get the OR into the foldexpr? Thank you Rick -- --

Re: How to recall what bookmarks I defined?

2010-12-28 Thread Rick Dooling
I am no programming expert, I use Vim mainly for writing, but you sound as if you are interested in something more semi-permanent than a mere mark. Have you ever tried ctags? http://ctags.sourceforge.net/ This could enable you to keep all the marks you want and also call them by any name you

colorize text in latex footnotes

2009-05-11 Thread Rick Dooling
I would like to have the text in latex footnotes \footnote{My footnote here.} appear in a different color, but can't seem to make it work using my own tex.vim file in the .vim/after directory. My latest try looked like this: :syntax region Myregion3 start=footnote{hs=s+9 end=}he=s-2 I've

Re: syntax region for single lines having all UPPER CASE letters

2009-03-07 Thread Rick Dooling
Thank you both! --~--~-~--~~~---~--~~ You received this message from the vim_use maillist. For more information, visit http://www.vim.org/maillist.php -~--~~~~--~~--~--~---

syntax region for single lines having all UPPER CASE letters

2009-03-06 Thread Rick Dooling
I'm no regex or pattern expert and I can't seem to get this matching correctly. I'd like to have any line containing all UPPER CASE letters, spaces, and punctuation to appear in a certain color. The highlighting works fine, but my pattern is erratic and incomplete, I think. I can't seem to get