vim-plugでUltiSnipsをインストールし、vimでk 8 s自動補完機能を追加
1659 ワード
curl -fLo ~/.vim/autoload/plug.vim --create-dirs\
https://raw.githubusercontent...
" Specify a directory for plugins
" - For Neovim: ~/.local/share/nvim/plugged
" - Avoid using standard Vim directory names like 'plugin'
call plug#begin('~/.vim/plugged')
" Multiple Plug commands can be written in a single line using | separators
Plug 'SirVer/ultisnips' | Plug 'honza/vim-snippets'
" Initialize plugin system
call plug#end()
:PlugInstall
入力プラグイン:echo has("python") " python 2.7
:echo has("python3") " python 3.3 3.4
export VIM=~/.vim
vim a.cpp
を検証し、mainを入力します.tabキーを押すと、自動補完はint main(int argc, char *argv[])
{
return 0;
}
vim a.yaml
apiVersion: v1
kind: Service
metadata:
name: frontend
namespace: default
labels:
app: someApp
tier: frontend
spec:
ports:
- port: 80
selector:
app: someApp
tier: frontend