VIM: Difference between revisions

Jump to navigation Jump to search
103 bytes removed ,  9 September 2018
m
no edit summary
mNo edit summary
mNo edit summary
Line 19: Line 19:
{{Testedon|2013-08-10|VIM 7.4}}
{{Testedon|2013-08-10|VIM 7.4}}


<syntaxhighlight lang="vim">
<source lang="vim">
:ve
:ve
</syntaxhighlight>
</source>


== Reload .vimrc without quitting ==
== Reload .vimrc without quitting ==
{{testedon|2013-08-10|VIM 7.4}}
{{testedon|2013-08-10|VIM 7.4}}


<syntaxhighlight lang="vim">
<source lang="vim">
:so ~/.vimrc
:so ~/.vimrc
</syntaxhighlight>
</source>


== Fixing an issue with Python version when using VIM with some packages ==
== Fixing an issue with Python version when using VIM with some packages ==
* ''Last tested on Ubuntu 16.04 LTS (xenial) | easy | less than five minutes''
{{testedon||Ubuntu 16.04 LTS}}


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">
<source lang="console" highlight="1">
$ vim
$ vim
UltiSnips requires py >= 2.7 or py3
UltiSnips requires py >= 2.7 or py3
Line 42: Line 42:
details.
details.
Press ENTER or type command to continue
Press ENTER or type command to continue
</syntaxhighlight>
</source>


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">
<source lang="bash">
$ apt-get install vim-nox
$ apt-get install vim-nox
</syntaxhighlight>
</source>


= .vimrc =
= .vimrc =

Navigation menu