Add the following to your .vimrc
filetype on
autocmd FileType java set makeprg=javac\ %
You can make .java files with :make command.
To view errors, try ":cope", ":ccl", ":cc", ":cn", ":cp", etc.
Saturday, August 18, 2012
Friday, August 17, 2012
Ubuntu 12.04: Font Install/Uninstall
Install with Terminal
It's better not to install custom fonts to "/usr/share/fonts".
1. Make .font directory in your home directory
$ mkdir .font
2. Download and put font file or files in the .font directory (e.g. Monaco_Linux.ttff)
$ mv Downloads/Monaco_Linux.ttf.font
3. Register the font
$ sudo fc-cache -f -v
3. Confirm the install
$ fc-list | grep Monaco
Install with GUI
Uninstall
1. Delete font file (e.g. Monaco.Linux.ttf)
$ rm Monaco_Linux.ttf
2. Unregister the font
$sudo fc-cache -f -v
3. Confirm the uninstall
$ fc-list | grep Monaco
It's better not to install custom fonts to "/usr/share/fonts".
Thursday, August 16, 2012
vim issue on ubuntu 12.04
Vim's icon was not shown on the global menu, and got an error when launching gvim from Terminal.
Workaround:
http://askubuntu.com/questions/132977/how-to-get-global-application-menu-for-gvim
Workaround:
http://askubuntu.com/questions/132977/how-to-get-global-application-menu-for-gvim
Wednesday, August 15, 2012
VMwaretools won't work after kernel update - Ubuntu 12.04
It seems necessary to manually build kernel modules.
Environment: VMware Fusion 4.1.3, Ubuntu 12.04
Reference:
http://kb.vmware.com/selfservice/microsites/search.do?cmd=displayKC&docType=kc&docTypeID=DT_KB_1_1&externalId=1008973
Environment: VMware Fusion 4.1.3, Ubuntu 12.04
Reference:
http://kb.vmware.com/selfservice/microsites/search.do?cmd=displayKC&docType=kc&docTypeID=DT_KB_1_1&externalId=1008973
Monday, August 13, 2012
Installing GUI to Ubuntu Server
How to install GUI
ServerGUI
https://help.ubuntu.com/community/ServerGUI
Reinstallation of VMware tools is necessary after installing GUI to Ubuntu Server.
Reinstalling VMware tools
http://kb.vmware.com/selfservice/microsites/search.do?cmd=displayKC&externalId=1022525
ServerGUI
https://help.ubuntu.com/community/ServerGUI
Reinstallation of VMware tools is necessary after installing GUI to Ubuntu Server.
Reinstalling VMware tools
http://kb.vmware.com/selfservice/microsites/search.do?cmd=displayKC&externalId=1022525
Wednesday, July 11, 2012
VIM is able to edit a remote file.
$ vim ftp://SERVER_NAME//DIRECTORY_NAME/FILE/NAME
"//" is used between SERVER_NAME and DIRECTORY_NAME
"//" is used between SERVER_NAME and DIRECTORY_NAME
Subscribe to:
Posts (Atom)