4,461
edits
m update outline |
mNo edit summary |
||
Line 6: | Line 6: | ||
Grab lines with visual block and then <code>:norm i#</code> to comment, and then <code>:norm x</code> or <code>:norm ^x</code> with indentation. | Grab lines with visual block and then <code>:norm i#</code> to comment, and then <code>:norm x</code> or <code>:norm ^x</code> with indentation. | ||
= .vimrc = | = .vimrc = | ||
Line 273: | Line 236: | ||
;http://runpaint.org/ | ;http://runpaint.org/ | ||
:vim and other tech books | :vim and other tech books | ||
= Miscellaneous = | |||
== Check VIM version == | |||
{{Testedon|2013-08-10|VIM 7.4}} | |||
<source lang="vim"> | |||
:ve | |||
</source> | |||
== Reload .vimrc without quitting == | |||
{{testedon|2013-08-10|VIM 7.4}} | |||
<source lang="vim"> | |||
:so ~/.vimrc | |||
</source> | |||
== Fixing an issue with Python version when using VIM with some packages == | |||
{{testedoni|xenial|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. | |||
<source lang="console" highlight="1"> | |||
$ vim | |||
UltiSnips requires py >= 2.7 or py3 | |||
You need vim compiled with Python 2.6, 2.7 or 3.2 and later support | |||
for Powerline to work. Please consult the documentation for more | |||
details. | |||
Press ENTER or type command to continue | |||
</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]. | |||
<source lang="bash"> | |||
$ apt-get install vim-nox | |||
</source> |