groenewege/vim-less

correct nnoremap for .vimrc

yss opened this issue · 1 comments

yss commented

nnoremap ,m :w <BAR> !lessc % > %:t:r.css<CR><space>
it is incorrect for open fullpath less, such as vim static/css/base.less
And press ,m, the base.css file vim ouput in static directory

so, you should use: nnoremap ,m :w <BAR> !lessc % > %:p:r.css<CR><space>

or better yet, it should be
nnoremap <Leader>m :w <BAR> !lessc % > %:p:r.css<CR><space>
to account for the custom Leader