You know that you can use “make” in your vim environment without any configuration but just go with command mode and just call “make”

But I’m very sure that you are wanna use your own build script instead of using bare “make”

Yes there is a tip for you certainly.

The option to assign a make program with your taste in vim is “makeprg”. Le me show you how it works.

Just leave this option in your .vimrc configuration file with your favorite build script like following

set makeprg=../build.sh

With only this configuration, you can use your favorite build script with fully customized in your taste.

And there is one more thing. The “quickfix” a feature of vim which helping you with jump into the warnings or errors which come after the build process. After the build process through your own script assigned with “set makeprg”, you might want to trace the warning you got after the build process and error as well.

The command for quickfix is “copen” and yes correctk it goes off with “cclose”.

I attached my own setting for vim bellow with bunch of shortkeys

더보기

And the build script I’m using for kernel build

더보기

이올린에 북마크하기(0) 이올린에 추천하기(0)
크리에이티브 커먼즈 라이선스
Creative Commons License

Tag : , , , ,

« PREV : 1 : ... 6 : 7 : 8 : 9 : 10 : 11 : 12 : 13 : 14 : ... 692 : NEXT »