It always prompts me that I cannot open txt files using the jsp opening method.
Finally solved.
Edit ~/.local/share/applications/defaults.list
[Default Applications]
text/x-java=gvim-usercreated.desktop
text/plain=gvim-usercreated.desktop
text/x-csrc=gvim-usercreated.desktop
text/html=gvim-usercreated.desktop
application/x-extension-jsp=gvim-usercreated.desktop
http://blog.csdn.net/crackcell/archive/2007/05/12/1606071.aspx