I was always wondering why some color scheme does work on gvim (MacVim) but not on vim launched from terminal. That's the reason.
Using GUI color settings in a terminal
http://vim.wikia.com/wiki/Using_GUI_color_settings_in_a_terminal
Monday, August 27, 2012
Tuesday, August 21, 2012
Updated: After Installed Mountain Lion
- Changed trackpad settings to "NORMAL"
- Enabled tap and click
- Fixed scrolling direction
- Enabled click and drag
- System Preference -> Accessibility -> Mouse & Trackpad -> Trackpad Options
- Enabled key repeat
- Issue "defaults write -g ApplePressAndHoldEnabled -bool false"
- Made user's library directory visible from finder
- Issue "chflags nohidden /Users/USERNAME/Library"
- Installed
- MacVim
- Installed "ocean deep" color scheme
- Syntax highlight for arduino
- Made .vimrc
- TextWrangler
- Xcode
- Added "command line tools" component
- Preferences -> Downloads -> Components
- VMware Fusion
- Installed Ubuntu 12.04 Desktop 64bit
- Updated installed packages
- $ sudo apt-get update
- $ sudo apt-get upgrade
- Installed C compiler
- $ sudo apt-get install build-essential
- Installed Oracle JAVA 7
- $ sudp add-apt-repository ppa:webupd8team/java
- $ sudo apt-get update
- $ sudo apt-get install oracle-java7-installer
- $ java -version
Ref: http://www.webupd8.org/2012/01/install-oracle-java-jdk-7-in-ubuntu-via.html - Installed Netbeans
- Download package, and the run install script
http://netbeans.org - Installed Arduino programming environment
- $ sudo apt-get install arduino-core arduino
- Installed Windows 7
- Windows Update - Required packages
- Windows Update - Recommended packages
*CAUTION* VMware Fusion got freeze while patching - Adobe Acrobat Pro 9.0
- Patched manually! There was no automatic update option on 9.0...
After all the patches were done (Ver. 9.5.2) the Acrobat got "Check for update" option in "Help" menu. - The unarchiver
- MplayerX
- Caffeine
- Reeder
- Microsoft Office
- iWorks
- ScanSnap Manager
Sunday, August 19, 2012
Vim: set path to working directory
Add the following to .vim
" Add the current file's directory to the path if not already present.
BufRead *
\ let s:tempPath=escape(escape(expand("%:p:h"), ' '), '\ ') |
\ exec "set path+=".s:tempPath
Ref: Set working directory to the current file
With previous make and javac binding, you can compile and execute Java code from vim with
:mak
:!java FILENAME
" Add the current file's directory to the path if not already present.
BufRead *
\ let s:tempPath=escape(escape(expand("%:p:h"), ' '), '\ ') |
\ exec "set path+=".s:tempPath
Ref: Set working directory to the current file
With previous make and javac binding, you can compile and execute Java code from vim with
:mak
:!java FILENAME
Saturday, August 18, 2012
Vim: Binding :make and javac
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.
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.
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
Subscribe to:
Posts (Atom)