Comments (5)
Sorry, what do you mean?
from emmet-vim.
Function for .
exmpl:
I write html:5 and press if this "snippet" exist in zen code then add/replace text or add .
Sorry, i speake russian. :(
from emmet-vim.
Mattn this is nice to have btw. He meant every time you expand the abbreviation ZC should check whether this abbr is already exist (for example html:5 is exist and html:new don't).
So that if user mapped the default expand abbr key , to Tab (like I did actually :) and hit Tab ZC should expand abbreviation if exist, if not then just insert Tab according to vimrc configuartion.
This is nice to have cause it is not usable every time expand abbr with ,. Its much more easier expand it with Tab you know ;)
from emmet-vim.
GordiO, do you mean below?
function! InsertTabWrapper()
let col = col('.') - 1
if !col || getline('.')[col - 1] !~ '\k'
return "\<C-Y>,"
else
if pumvisible()
return "\<C-N>"
else
return "\<C-X>\<C-O>,"
end
endif
endfunction
inoremap <silent> <tab> <c-r>=InsertTabWrapper()<cr>
from emmet-vim.
mattn, yep. But only , - this is function and if not find 'snippet' return 1.
For exmpl:
function! InsertTabWrapper()
let col = col('.') - 1
if snipmate()
return ""
else
if zencomplete()
return ""
else
if getline('.')[col - 1] !~ '\k'
return ""
else
return ""
endif
end
endif
endfunction
inoremap =InsertTabWrapper()
from emmet-vim.
Related Issues (20)
- How do you comment multiple selected lines in HTML?
- Missing XSL snippets
- vim does not show list of abbreviations as suggestions
- Placeholders not being substituted after completion
- `font-weight` should be expanded unitless
- Custom snippet for erb doesn't indent end tag properly
- Issue with updating tags in typescriptreact
- How can expand type in script tag?
- How can call lorem with Japanese character? HOT 2
- Multiple Abreviations Not Expanding HOT 1
- Can not change leader key on neovim HOT 2
- JSX support in .tsx file HOT 1
- JSX/TSX expansion reverts to class instead of className when using multiplication operator HOT 1
- emmet dos not work
- css expansion does not seem to be working HOT 2
- div before '.' in scss file
- I can't get this to work :( HOT 1
- Small bug in autocomplete after variable HOT 5
- what is missing? I put in vimrc emmet code and nothing...
- support Compatible with treesitter HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from emmet-vim.