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

Small adjustments for index error and window handling #2

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Open
339 changes: 339 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

40 changes: 0 additions & 40 deletions README

This file was deleted.

80 changes: 80 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
# VimRepressPy3

### Edit your WordPress blog from Vim.

- Write with Markdown, control posts format precisely.
- Stores Markdown rawtext in WordPress custom fields.
- Supports github-style fenced code-blocks.

### Requirements:

- Vim 7.3+ with Python 3 support
- Python Environment matched wtih Vim's support
- requires `markdown` & `pygments` modules
- WordPress 3.0.0+

### Configuration:

Create account configure as `~/.vimpressrc` in the following format (be sure to `chmod 600` this file):

```
[Blog0]
blog_url = http://a-blog.com/
username = admin
password = 123456

[Blog1]
blog_url = https://someone.wordpress.com/
username = someone
password =
```

### Pygments CSS

To get pygments higlighting for fenced codeblocks, you will need to generate pygments CSS for your preferred colorscheme, and include it with your site CSS:

```sh
pygmentize -f html -a .pygment -S <style_name>
```

To see the list of available pygments styles on your computer:

```sh
pygmentize -L styles
```

Or use their online demo at https://pygments.org/demo/.

### Command Examples:

```
:BlogList - List 30 recent posts.
:BlogList page - List 30 recent pages.
:BlogList post 100 - List 100 recent posts.

:BlogNew post - Write a new post.
:BlogNew page - Write a new page.

:BlogSave - Save (defautely published.)
:BlogSave draft - Save as draft.

:BlogPreview local - Preview page/post locally in your browser.
:BlogPreview publish - Same as `:BlogSave publish' with browser opened.

:BlogOpen 679
:BlogOpen http://your-first-blog.com/archives/679
:BlogOpen http://your-second-blog.com/?p=679
:BlogOpen http://your-third-blog.com/with-your-custom-permalink
```

For more details, type `:help vimpress` after this plugin has been loaded.

### Contributors:

- Adrien Friggeri <[email protected]>
- Pigeond <http://pigeond.net/blog/>
- Justin Sattery <[email protected]>
- Lenin Lee <[email protected]>
- Conner McDaniel <[email protected]>
- Preston M.[BOYPT] <[email protected]>
- Jason Stewart <[email protected]>
6 changes: 6 additions & 0 deletions doc/tags
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
COMMANDS vimpress.txt /*COMMANDS*
CONFIGURE vimpress.txt /*CONFIGURE*
EXAMPLES vimpress.txt /*EXAMPLES*
INSTALL vimpress.txt /*INSTALL*
TIPS vimpress.txt /*TIPS*
vimpress.txt vimpress.txt /*vimpress.txt*
39 changes: 20 additions & 19 deletions doc/vimpress.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
*vimpress.txt* Plugin for managing wordpress blog from Vim.
*vimpress.txt* Plugin for managing WordPress blog from Vim.

Script: blog.vim
Script: vimrepress.vim
Authors: Adrien Friggeri <mailto:[email protected]>
Pigeond <http://pigeond.net/blog/>
* Preston M.[BOYPT] <mailto:[email protected]>
Preston M.[BOYPT] <mailto:[email protected]>
Justin Sattery <mailto:[email protected]>
Lenin Lee <mailto:[email protected]>
* Conner McDaniel <mailto:[email protected]>
(* Currently developing)
Conner's Repository: https://github.com/connermcd/VimRepress
Preston's Repository: https://bitbucket.org/pentie/vimrepress
Lenin Lee <mailto:[email protected]>
Conner McDaniel <mailto:[email protected]>
* Jason Stewart <mailto:[email protected]>

(* Python 3 Version)
https://github.com/BourgeoisBear/VimRepressPy3

License: Same terms as Vim itself (see |license|)

Expand Down Expand Up @@ -45,20 +46,20 @@ For Upgraded Users:
Hardcoding the password is optional. If a password is not provided,
the plugin will prompt for one the first time it's needed.

If you need Markdown support, simply run `sudo apt-get install python-markdown' in Ubuntu.
If you need Markdown support, simply run `sudo apt-get install python-markdown' in Ubuntu.

If you use other distributions (or OSs), refer to your package manager or the python-markdown
If you use other distributions (or OSs), refer to your package manager or the python-markdown
project page: http://www.freewisdom.org/projects/python-markdown/Installation

*COMMANDS*

Vimpress Commands (parameters in square brackets are optional):
Vimpress Commands (parameters in square brackets are optional):
>
:BlogList [<edit_type>] [<count>]
< Lists a specified number of blog posts or pages for the current blog
starting the with most recent. In this view, you can press <enter>
starting the with most recent. In this view, you can press <enter>
to open a post for edit, or press <delete> to move a post to trash.
The Delete function doesn't actually remove your post, but move to
The Delete function doesn't actually remove your post, but move to
the trash.
[<edit_type>] - either post or page, [Default post].
[<count>] - number to display (only for posts, Default 30)
Expand All @@ -69,17 +70,17 @@ Vimpress Commands (parameters in square brackets are optional):
>
:BlogSave [<save_type>]
< Saves the current editing window.
[<save_type>] - either post or publish. [Default:draft]
[<save_type>] - either post or publish. [Default:draft]
>
:BlogPreview [<save_type>]
< If set to local, converts the editing window to HTML and displays it
locally in a file browser. Otherwise, the command is the same as
< If set to local, converts the editing window to HTML and displays it
locally in a file browser. Otherwise, the command is the same as
:BlogSave except that it opens a preview of the post or page on the blog.
[<save_type>] - either local, post, or publish. [Default:local]
>
:BlogOpen <post-link-or-id>
< Opens the specified post.
<post-link-or-id> - link you copied from the browser, or simply the
< Opens the specified post.
<post-link-or-id> - link you copied from the browser, or simply the
numberic post id.
>
:BlogSwitch [<index>]
Expand Down Expand Up @@ -122,7 +123,7 @@ Some commands list above contain special usage, example below may clearify them
:BlogSave - Save (defautely published.)
:BlogSave draft - Save as draft.

:BlogPreview local - Preview page/post locally in your browser.
:BlogPreview local - Preview page/post locally in your browser.
:BlogPreview publish - Same as `:BlogSave publish' with brower opened.

:BlogOpen 679
Expand Down
Loading