!vimrc tips
|
-* if you put these 2 lines in your vimrc, you can use :make to check if for typos: {code source="text"}set makeprg=php\ -l\ %
|
+* if you put these 2 lines in your vimrc, you can use :make to check your php code for typos: {code source="text"}set makeprg=php\ -l\ % |
set errorformat=%m\ in\ %f\ on\ line\ %l{/code}
|
|
!cscope
|
^vim + cscope is insanely cool.^
|
+{attachment id=884 desc="This shell script" output=desc} will set up your machine with the stuff described below. all you need to do is download it, set the file executable and run it. |
+{code source=Bash} |
+curl http://www.bitweaver.org/liberty/download/file/884 -o vim-cscope |
+chmod +x vim-cscope |
+./vim-cscope |
+{/code} |
|
!!What's cscope?
|
cscope will generate a list of functions used in bitweaver and you can use a few keymaps to very quickly jump to those functions from within bitweaver (or any source code tree). cscope is faster and more feature rich than ctags.
|