First, create .vimrc in the current user's home directory by typing the following.

$ cp usr/share/vim/vimcurrent/vimrc_example.vim ~/.vimrc

Tilde means user's home directory.



Next, open the .vimrc file in the home directory and add the following lines.

set tabstop=3
set shiftwidth=3



go to system->administration->language support

then install the Japanese.

Next go to system -> preferences -> ibus

and configure your preferences.

then under preferences add "ibus-daemon --xim" command to your startup programs.