source code: devtools/vim/README.md
ChromeOS Factory Developer VIM Plugins¶
This folder contains VIM plugins that are useful for ChromeOS Factory development.
Installation¶
Run ./setup.sh to install script loader into your vim config. If your .vim
folder or .vimrc file is not in default location (~/.vim and ~/.vimrc),
you can use DOT_VIM=... VIMRC=... ./setup.sh to change it.
Plugins¶
devtools/vim/ftplugin/python/sort_import.vimsort python import lines
devtools/vim/ftplugin/python/pylint.vimconfig pylint arguments for scrooloose/syntastic
devtools/vim/ftplugin/python/basic.vimbasic setup (indent, tabs, etc…)
devtools/vim/plugin/add_pythonpath.vimadd factory files into PYTHONPATH (for Valloric/YouCompleteMe or davidhalter/jedi-vim or other python autocomplete plugins)
devtools/vim/autoload/localrc.vim.local.vimrcloader
devtools/vim/plugin/iconv.vimconvert selected traditional Chinese string into simplified Chinese.
devtools/vim/coc-settings.jsona sample setting file for coc.nvim plugin.
to use coc.nvim
if the owner of
~/.configis root thensudo chown $(whoami) ~/.configinstall the plugin by following the instructions on github.
in vim,
:CocInstall coc-json coc-pyright coc-shto install json, python, and shell extension.copy or symlink this file to
platform/factory/.vim/folder (already added by default).