Reword troubleshooting question regarding automatic vimrc resoursing
Ref #1342
This commit is contained in:
parent
7eda0e5c3d
commit
07cae386eb
|
@ -227,21 +227,23 @@ If your vimrc has something like
|
||||||
|
|
||||||
.. code-block:: vim
|
.. code-block:: vim
|
||||||
|
|
||||||
autocmd! BufWritePost vimrc :source ~/.vimrc
|
autocmd! BufWritePost ~/.vimrc :source ~/.vimrc
|
||||||
|
|
||||||
to automatically source vimrc after saving it you must then add ``nested`` after
|
used to automatically source vimrc after saving it then you must add ``nested``
|
||||||
pattern (``vimrc`` in this case):
|
after pattern (``vimrc`` in this case):
|
||||||
|
|
||||||
.. code-block:: vim
|
.. code-block:: vim
|
||||||
|
|
||||||
autocmd! BufWritePost vimrc nested :source ~/.vimrc
|
autocmd! BufWritePost ~/.vimrc nested :source ~/.vimrc
|
||||||
|
|
||||||
. Alternatively move ``:colorscheme`` command out of the vimrc to the file which
|
. Alternatively move ``:colorscheme`` command out of the vimrc to the file which
|
||||||
will not be automatically resourced. Observed problem is that when you use
|
will not be automatically resourced.
|
||||||
``:colorscheme`` command existing highlighting groups are usually cleared,
|
|
||||||
including those defined by powerline. To workaround this issue powerline hooks
|
Observed problem is that when you use ``:colorscheme`` command existing
|
||||||
``Colorscheme`` event, but when you source vimrc with ``BufWritePost`` event,
|
highlighting groups are usually cleared, including those defined by powerline.
|
||||||
but without ``nested`` this event is not launched. See also `autocmd-nested
|
To workaround this issue powerline hooks ``Colorscheme`` event, but when you
|
||||||
|
source vimrc with ``BufWritePost`` (or any other) event, but without ``nested``
|
||||||
|
this event is not launched. See also `autocmd-nested
|
||||||
<http://vimpluginloader.sourceforge.net/doc/autocmd.txt.html#autocmd-nested>`_
|
<http://vimpluginloader.sourceforge.net/doc/autocmd.txt.html#autocmd-nested>`_
|
||||||
Vim documentation.
|
Vim documentation.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue