Commit Graph

5 Commits

Author SHA1 Message Date
Kim Silkebækken 8ca4c531e9 Do a :redrawstatus after setting window statuslines
For some reason the statusline doesn't always get redrawn automatically
after setting the statusline property for a window, and running
:redrawstatus when a buffer or window is entered seems to resolve this
issue.
2012-12-17 13:40:32 +01:00
Kim Silkebækken 3a8e64b767 Pass the current window as a parameter to the render method
This change simplifies the code somewhat as the BufLeave, etc. autocmds
aren't required anymore.
2012-12-17 12:03:13 +01:00
Kim Silkebækken 3b19dac9e7 Cleanup code and comments 2012-12-15 19:36:14 +01:00
Kim Silkebækken 0bf23adbcc Cache statusline contents in Python
Each window is now tagged with an UUID and this UUID is used to cache
the window's statusline contents in the Python VimRenderer in order to
avoid translating the statusline contents to and from a vimdict
unnecessarily.

Refs #11.
2012-12-15 18:50:55 +01:00
Kim Silkebækken f074c1fb29 Move the vim example to a separate plugin folder
When Powerline is installed as a package in the system-wide
site-packages folder it can easily be enabled by adding a simple python
statement to the user's vimrc file.

Otherwise it can be added by doing a :source
path/to/plugin/vim/powerline.vim in vimrc, but the other way of doing it
works without specifying the full path as long as Powerline is installed
somewhere in sys.path.
2012-12-13 22:01:33 +01:00