I broke up with neovim....vim is my best friend now
This commit is contained in:
BIN
dot_vim/plugged/vim-orgmode/examples/mylife.gif
Normal file
BIN
dot_vim/plugged/vim-orgmode/examples/mylife.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 99 KiB |
26
dot_vim/plugged/vim-orgmode/examples/mylife.org
Normal file
26
dot_vim/plugged/vim-orgmode/examples/mylife.org
Normal file
@@ -0,0 +1,26 @@
|
||||
* My Life in plain text
|
||||
- [X] birth
|
||||
- [-] life [50%]
|
||||
- [X] use vim
|
||||
- [ ] get everything else done
|
||||
* Write minutes of last meeting <2014-08-08 Fri> :work:
|
||||
** DONE John said
|
||||
this
|
||||
** TODO Mary said
|
||||
that
|
||||
** WAITING What did Mark say?
|
||||
[[http://example.com/here/is/the/recording][1st recording]]
|
||||
[[http://example.com/here/is/the/recording][2nd recording]]
|
||||
* Some folding headline 1 :one:
|
||||
** Folded
|
||||
*** Even more folded
|
||||
* Some folding headline 2
|
||||
** Folded :two:
|
||||
*** Even more folded
|
||||
* Some folding headline 3
|
||||
** Folded
|
||||
*** Even more folded :three:
|
||||
* Some folding headline 4
|
||||
** Folded
|
||||
*** Even more folded
|
||||
completely unfolded
|
||||
BIN
dot_vim/plugged/vim-orgmode/examples/mylife.png
Normal file
BIN
dot_vim/plugged/vim-orgmode/examples/mylife.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 66 KiB |
@@ -0,0 +1,51 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from orgmode import echo, echom, echoe, ORGMODE, apply_count, repeat
|
||||
from orgmode.menu import Submenu, Separator, ActionEntry
|
||||
from orgmode.keybinding import Keybinding, Plug, Command
|
||||
|
||||
import vim
|
||||
|
||||
|
||||
class Example(object):
|
||||
u"""
|
||||
Example plugin.
|
||||
|
||||
TODO: Extend this doc!
|
||||
"""
|
||||
|
||||
def __init__(self):
|
||||
u""" Initialize plugin """
|
||||
object.__init__(self)
|
||||
# menu entries this plugin should create
|
||||
self.menu = ORGMODE.orgmenu + Submenu(u'Example')
|
||||
|
||||
# key bindings for this plugin
|
||||
# key bindings are also registered through the menu so only additional
|
||||
# bindings should be put in this variable
|
||||
self.keybindings = []
|
||||
|
||||
# commands for this plugin
|
||||
self.commands = []
|
||||
|
||||
@classmethod
|
||||
def action(cls):
|
||||
u"""
|
||||
Some kind of action.
|
||||
|
||||
:returns: TODO
|
||||
"""
|
||||
pass
|
||||
|
||||
def register(self):
|
||||
u"""
|
||||
Registration of the plugin.
|
||||
|
||||
Key bindings and other initialization should be done here.
|
||||
"""
|
||||
# an Action menu entry which binds "keybinding" to action ":action"
|
||||
self.commands.append(Command(u'OrgActionCommand',
|
||||
u':py ORGMODE.plugins["Example"].action()'))
|
||||
self.keybindings.append(Keybinding(u'keybinding',
|
||||
Plug(u'OrgAction', self.commands[-1])))
|
||||
self.menu + ActionEntry(u'&Action', self.keybindings[-1])
|
||||
Reference in New Issue
Block a user