Saturday, May 30, 2015

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

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 attempt to put a blank line. No matter what I try: :pu='' :$pu=' _' etc it will not add blank lines for me.

Thanks for any help.

Rick

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: