To input w100p
and ctrl+y+, or w100p
and tab,w100p
can't expand into width: 100%
.
No snippets.json
file found with command find / -name 'snippets.json'
,is it the reason?
snippets.json can download from url.
snippets.json
Where to put snippets.json in my vim installed directory?
tree -L 1 /usr/share/vim/vim74
/usr/share/vim/vim74
├── autoload
├── bugreport.vim
├── bundle
├── colors
├── compiler
├── debian.vim
├── delmenu.vim
├── doc
├── evim.vim
├── filetype.vim
├── ftoff.vim
├── ftplugin
├── ftplugin.vim
├── ftplugof.vim
├── gvimrc_example.vim
├── indent
├── indent.vim
├── indoff.vim
├── keymap
├── lang
├── macros
├── menu.vim
├── mswin.vim
├── optwin.vim
├── plugin
├── print
├── rgb.txt
├── scripts.vim
├── spell
├── synmenu.vim
├── syntax
├── tutor
└── vimrc_example.vim
In the mannual , Create snippets.json file in extensions folder to add or override snippets.
emmet-vim
README - github.com/mattn/emmet-vim#adding-custom-snippets