关键词:
1.
将解压出来的autoload 和 doc的内容添加到~/.vim/下的相应目录下,如果~/.vim下没有这两个文件夹就手动创建
其中autoload里的有javacomplete.vim java_parser.vim Reflection.java三个文件,要做的事情是编译 :javac Reflection.java 得到一个.class文件
将.class文件的路径添加到CLASSPATH环境变量里
然后使该环境变量生效 source .bashrc(因为我的环境变量是在~/.bashrc中添加的)
~/.vimrc中添加配置
setlocal omnifunc=javacomplete#Complete
autocmd Filetype java set omnifunc=javacomplete#Complete
autocmd Filetype java set completefunc=javacomplete#CompleteParamsInf
inoremap <buffer> <C-X><C-U> <C-X><C-U><C-P>
inoremap <buffer> <C-S-Space> <C-X><C-U><C-P>
autocmd Filetype java,javascript,jsp inoremap <buffer> . .<C-X><C-O><C-P>
https://www.cnblogs.com/20170722-kong/p/8052588.html
https://www.vim.org/scripts/script.php?script_id=1785
2.缩进
shift+v选中行,使用==进行缩进
第25月第26天dispatch_group(代码片段)
1.dispatch_group_enter(group);dispatch_group_leave(group); dispatch_group_notify(group1,queue1,block);在这种组合下,根据任务是同步、异步又分为两种,这两种组合的执行代码与运行结果如下:第一种:同步任务时dispatch_queue_tqueue2=dispatch_queue_creat 查看详情
第26月第20天springboot
1.1、pom.xml中添加支持web的模块:<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-web</artifactId></dependency>pom.xml文件中默认有两个模块:spring- 查看详情
第9月第26天pairs和ipairs
1.a={ip="127.0.0.1",port=6789}fori,vinpairs(a)doprint(i,v)end a={1}fori,vinipairs(a)doprint(i,v)endhttp://blog.csdn.net/witch_soya/article/details/7556595 查看详情
第2月第24天coretext行高
1.NSMutableAttributedString 行高 NSMutableAttributedString*attributedString=[[NSMutableAttributedStringalloc]initWithString:labelText];NSMutableParagraphStyle*paragraphStyle=[[NSMutableParagra 查看详情
第25月第2天django项目01
1.exportPATH="$PATH":/Applications/XAMPP/xamppfiles/bin/ sudoln-s/Applications/XAMPP/xamppfiles/lib/libmysqlclient.18.dylib/usr/lib/libmysqlclient.18.dylib 更新20160318的node 3 查看详情
第12月第2天uiscrollview_adjustcontentoffsetifnecessary
1.uiscrollview在调用setFrame,setBounds等方法的时候会默认调用稀有api:_adjustContentOffsetIfNecessary这个方法会改变当前的contentOffset值 如果没有设置 self.automaticallyAdjustsScrollViewInsets=NO;那么(CGPoint)contentOffset=(x=0, 查看详情
第25月第4天djangochinaorg项目记录01
#------------------------------1.djangochinaorg项目https://github.com/DjangoChinaOrg/Django-China-APIhttps://github.com/DjangoChinaOrg/Django-China-FE 2.vueproxyTableproxyTable:‘/proxy‘:target:‘h 查看详情
第3月第15天afconvertlame
1.//CAF转换成MP3(可以)afconvert-fmp4f-daac-b128000 /Users/amarishuyi/Desktop/sound1.caf/Users/amarishuyi/Desktop/sound1.mp3 http://blog.csdn.net/ysy441088327/article/details/7388351 2.lame#i 查看详情
第27月第10天cmake(代码片段)
1.error:tool‘xcodebuild‘requiresXcode的解决办法 sudoxcode-select--switch/Applications/Xcode.app/Contents/Developer/ https://blog.csdn.net/shorewb/article/details/52447554 2 查看详情
第21月第6天市场永远是对的
1.cs231nhttps://blog.csdn.net/kangroger/article/list/2http://study.163.com/course/courseMain.htm?courseId=1003223001 2. 我们应该记住,既成的事实一定有它的道理,如果我们不能理解它,恐怕得从自身找原因。如果你交易股票,请记住,如果预测... 查看详情
第9月第3天uilabelcontentscale
1. http://blog.csdn.net/u012703795/article/details/43706449 查看详情
第9月第30天mvp
1. importUIKitstructPerson{//ModelletfirstName:StringletlastName:String}protocolGreetingView:class{funcsetGreeting(greeting:String)}protocolGreetingViewPresenter{init(view:GreetingView,person:Per 查看详情
第16月第27天pipinstallvirtualenv
1.pipinstallvirtualenvvirtualenvtestvircdtestvircdScriptsactivatepipinstalldjango==1.9.8 https://zhuanlan.zhihu.com/p/32286726 查看详情
第10月第28天touchesbegan
1.-(void)touchesBegan:(NSSet*)toucheswithEvent:(UIEvent*)event{[[selfnextResponder]touchesBegan:toucheswithEvent:event];[supertouchesBegan:toucheswithEvent:event];}-(void)touchesMoved:(NSSet*)touchesw 查看详情
第37月第29天avplayer截屏
1.-(void)displayLinkCallback:(CADisplayLink*)sender{CMTimetime=[snapshotOutputitemTimeForHostTime:CACurrentMediaTime()];if([snapshotOutputhasNewPixelBufferForItemTime:time]){lastSnapshotPixelBuffer=[s 查看详情
第5月第18天视频编辑水印
1.//***********ForASpecialTimeCABasicAnimation*animation=[CABasicAnimationanimationWithKeyPath:@"opacity"];[animationsetDuration:0];[animationsetFromValue:[NSNumbernumberWithFloat:1.0]];[animationsetT 查看详情
第16月第3天afurlsessionmanager
1. -(AFURLSessionManagerTaskDelegate*)delegateForTask:(NSURLSessionTask*)task{ NSParameterAssert(task); AFURLSessionManagerTaskDelegate*delegate=nil; [self. 查看详情
第2月第1天gcdasyncsocketdispatch_source_set_event_handler
一、GCDAsyncSocket的核心就是dispatch_source_set_event_handler1.accpet回调accept4Source=dispatch_source_create(DISPATCH_SOURCE_TYPE_READ,socket4FD,0,socketQueue);intsocketFD=socket4FD;dispatch_source_tacceptSou 查看详情