Sunday, October 16, 2011

vi in Linux

W. 上下右左會出現ABCD in the insert mode
vi ~/.vimrcset nocompatible
Q. It doesn't work with MacVim (and GUI Vim). I'm only able to delete text from the line I'm in. If I switch to normal mode or if I move the cursor to another line I'm not able to delete text with backspace anymore and I have to delete it with 'x' in normal mode. 
set backspace+=indent,eol,start set backspace=2 
Q. color for c language
:syntax on 
Q. disconnection
ServerAliveInterval 60 sec








u
復原前一個動作。(常用)








[Ctrl]+r
重做上一個動作。(常用)

Q. Page down, Page up.

Then CTRL-B and CTRL-F should do the trick.

referance
http://www.yolinux.com/TUTORIALS/LinuxTutorialAdvanced_vi.html (Home of vim)
http://vim.1045645.n5.nabble.com/MacVim-and-backspace-td1216153.html
http://doc.linuxpk.com/80773.html 
http://homepage.ttu.edu.tw/u9106240/page_main/vim_menu.html
http://greenisland.csie.nctu.edu.tw/wp/2005/09/10/329/

SSH in Ubuntu (1)

Q. I need to provide remote access to my server. How do I start / stop ssh  server under Ubuntu Linux operating system?
A. You need to run script /etc/init.d/ssh to stop / start / restart OpenSSH server.
sudo /etc/init.d/ssh start start, stop, restart 
Q. Time out problem
vi /etc/ssh/ssh_config
ConnectTimeout 1000

Piggy Note

Referance
http://www.cyberciti.biz/faq/howto-start-stop-ssh-server/

Register Transfer Level Design with Verilog (1) [ebook]

設計程式之所以有趣不外乎是它的千變萬化,同樣的結果卻有不同的寫法。 但這些不同寫法當中也並沒有分誰對誰錯,也沒有制定標準來規範何事該用何解。 這也就是我們設計者的珍貴!! [1] Primitive Instantiations 在Verilog中最基本的邏輯...