diff --git a/docs/source/configuration.rst b/docs/source/configuration.rst index e6b6e927..7919256e 100644 --- a/docs/source/configuration.rst +++ b/docs/source/configuration.rst @@ -246,10 +246,10 @@ Segments -------- Segments are written in Python, and the default segments provided with -Powerline are located in -:file:`powerline/ext/{extension}/segments/{module}.py`. User-defined segments -can be defined in any module in ``sys.path`` or :ref:`paths common configuration -option `, import is always absolute. +Powerline are located in :file:`powerline/segments/{extension}.py`. +User-defined segments can be defined in any module in ``sys.path`` or +:ref:`paths common configuration option `, import is +always absolute. Segments are regular Python functions, and they may accept arguments. All arguments should have a default value which will be used for themes that diff --git a/docs/source/overview.rst b/docs/source/overview.rst index c582b12b..98099f29 100644 --- a/docs/source/overview.rst +++ b/docs/source/overview.rst @@ -104,7 +104,7 @@ Vim statusline If Powerline is installed as a Python package, you can enable the vim plugin by adding the following line to your ``vimrc``:: - python from powerline.ext.vim import source_plugin; source_plugin() + python from powerline.bindings.vim import source_plugin; source_plugin() If Powerline is installed somewhere other than Python's site-packages directories you'll have to source the vim plugin file with an absolute path @@ -113,7 +113,7 @@ to the plugin location. Add the following line to your ``vimrc``, where ``{path}`` is the path to the main Powerline project directory:: - source {path}/powerline/ext/vim/source_plugin.vim + source {path}/powerline/bindings/vim/source_plugin.vim Terminal prompts ^^^^^^^^^^^^^^^^