Problem:
E319: Sorry, the command is not available in this version
Problem
When I run vim environment and try reformat code (CTRL+K) i get this warning on the screen
Environment:
System: Mac OS X
Settings:
Vim:
VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Nov 17 2016 20:17:27)
MacOS X (unix) version
Included patches: 1-91
python:
python --version: Python 3.5.2
What I do
- Update vim: 7.3 -> 8.0
- Update python: ~2.7 -> ~3.5
I updated the .vimrc file
frommap <C-K> :pyf .../clang-format.py<cr> imap <C-K> <c-o>:pyf .../clang-format.py<cr>
tomap <C-K> ggVG :py3f .../clang-format.py<cr> imap <C-K> <c-o>:py3f .../clang-format.py<cr>
Also I update clang-format file
https://llvm.org/svn/llvm-project/cfe/trunk/tools/clang-format/clang-format.py
Thx,
clang-format.py
doesn't do "refactoring". 2. Did you build Vim? How? 3. Show us the complete output of$ vim --version
. – romainl