Install yamllint plugin for vim =============================== ### install yamllint package `pip3 install --user yamllint` ### export proxy env (nur einmal) ```bash export http_proxy=<proxy> export https_proxy=<proxy> ``` ### add this to your .vimrc ```bash let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.vim' if empty(glob(data_dir . '/autoload/plug.vim')) silent execute '!curl -fLo '.data_dir.'/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' autocmd VimEnter * PlugInstall --sync | source $MYVIMRC endif call plug#begin() Plug 'dense-analysis/ale' Plug 'Yggdroot/indentLine' call plug#end() autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab set foldlevelstart=20 let g:ale_echo_msg_format = '[%linter%] %s [%severity%]' let g:ale_sign_error = '✘' let g:ale_sign_warning = '⚠' let g:ale_lint_on_text_changed = 'never' let g:indentLine_char = '⦙' ``` ### open yaml file `vim test.yaml` > Das Plugin wird beim ersten Mal installiert, danach kann der proxy wieder entfernt werden.
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up