Anderson Juhasc
Anderson Juhasc

Reputation: 49

How can I configure VIM so that files with extension .less are edited with zen-coding?

How can I configure VIM so that files with extension .less are edited with zen-coding?

I can use within the zencoding notepad + + on windows normally. But now I want to use the same way inside vim.

Upvotes: 1

Views: 818

Answers (3)

user866503
user866503

Reputation:

I didn't know you could use Zencoding for css. I use it in Vim for html.It s great!I started using Less and I was wondering an hour ago ,If something like this existed. I guess it's something to work on.

Upvotes: 0

romainl
romainl

Reputation: 196606

ZenCoding is probably activated on a per-filetype basis, if that's the case, just type :set filetype=css.

If you want this setting to stick, add this line to your .vimrc:

autocmd BufRead,BufNewFile *.less set filetype=css

If you want to retain the normal features that go with .less files (if any) you can do :set ft=less.css but some plugins don't like that.

Upvotes: 4

mliebelt
mliebelt

Reputation: 15525

I first tried to write a comment, but found then something that could be an answer.

So I think the question is: How can I configure VIM so that files with extension .less are edited with zen-coding?

At the official site for zen-coding, there are lists of editors that support zen-coding:

  • Official
  • third-party
  • Unofficial

There for VIM, the following sites are mentioned:

I have read into both, and both seem to expand shortcuts to HTML code, not to less-code. But perhaps I have misunderstood the question.

Upvotes: 0

Related Questions