Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

correct nnoremap for .vimrc #18

Open
yss opened this issue Nov 29, 2012 · 1 comment
Open

correct nnoremap for .vimrc #18

yss opened this issue Nov 29, 2012 · 1 comment

Comments

@yss
Copy link

yss commented Nov 29, 2012

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>

@sealemar
Copy link

sealemar commented Jun 1, 2014

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants