4,461
edits
No edit summary |
→Miscellaneous: add reload .vimrc without quitting |
||
Line 14: | Line 14: | ||
= Miscellaneous = | = Miscellaneous = | ||
== Reload .vimrc without quitting == | |||
* ''Last tested on VIM 7.4 (2013 Aug 10)'' | |||
<syntaxhighlight lang="vim"> | |||
:so ~/.vimrc | |||
</syntaxhighlight> | |||
== Fixing an issue with Python version when using VIM with some packages == | == Fixing an issue with Python version when using VIM with some packages == | ||
Line 20: | Line 27: | ||
When running <code>vim</code> with Powerline package on Ubuntu 16.04, I get this error message every time I execute it from the CLI. | When running <code>vim</code> with Powerline package on Ubuntu 16.04, I get this error message every time I execute it from the CLI. | ||
< | <syntaxhighlight lang="bash"> | ||
$ vim | $ vim | ||
UltiSnips requires py >= 2.7 or py3 | UltiSnips requires py >= 2.7 or py3 | ||
Line 27: | Line 34: | ||
details. | details. | ||
Press ENTER or type command to continue | Press ENTER or type command to continue | ||
</ | </syntaxhighlight> | ||
I'm not sure what this does, but this seems to solve the problem. Thanks to Sergey Khaylov for the answer at [http://stackoverflow.com/questions/20160902/how-to-solve-requires-python-2-x-support-in-linux-vim-and-it-have-python-2-6-6 Stackoverflow]. | I'm not sure what this does, but this seems to solve the problem. Thanks to Sergey Khaylov for the answer at [http://stackoverflow.com/questions/20160902/how-to-solve-requires-python-2-x-support-in-linux-vim-and-it-have-python-2-6-6 Stackoverflow]. | ||
< | <syntaxhighlight lang="bash"> | ||
$ apt-get install vim-nox | $ apt-get install vim-nox | ||
</ | </syntaxhighlight> | ||
= Initial setup = | = Initial setup = |