Monday, November 5, 2012

Re: Justify par t of doc.

On Nov 5, 7:47 am, john Culleton <J...@wexfordpress.com> wrote:
> I have an F key set up to justify an entire doc ragged right. Now
> I need a reliable technique to highlight part of a doc and apply
> justification to just that part. I am in visual mode after
> highlighting of course. I have tried various keyings but
> nothing seems to work. Hints?
>
> --
> John Culleton
> Wexford Press
> Free list of books for self-publishers:http://wexfordpress.net/shortlist.html
> PDF e-book: "Create Book Covers with Scribus"
> available athttp://www.booklocker.com/books/4055.html

:help :function

look at the part about 'range'

example:

function! Entable() range
execute a:firstline . "," . a:lastline . '!$HOME/.vim/entable'
endfun " usage :'<,'>call Entable()<cr>

--
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

No comments: