vim with ctags

December 10th, 2006 mysurface

If you are c/c++ programmer and vim user, maybe know ctags. Most of the time, source code are distributed to many folders and each of them consist of numbers of .cc/.c and .h. Sometimes to search the definition of a function, class, enums etc by using “/” is inefficient. ctags allow fast jumping to function [...]

Posted in ctags, Developer, ln, vi, vim | Hits: 179162 | 26 Comments »

some tips of change directory

August 30th, 2006 mysurface

Don’t think that you knows everything about change directory (cd). There might have something you do not know. Let say I can go back to my previous location after I change directory. For example, I am currently at /var/www/html and I change directory to /home/foobar/downloads like this cd /home/foobar/downloads And now I want to goes [...]

Posted in cd, Common, ln, pwd | Hits: 31809 | 1 Comment »

tabs in vim 7

August 15th, 2006 mysurface

This was amazing when I get to know that vim can do tab. Okay to do that, it is easy, what you need is to do a key binding. Create a file .vimrc into your home folder, and paste the lines bellow into it. :map <F4>:tabprevious<cr> :map <F3>:tabnext<cr> :map <C-t>:tabnew .<cr> :imap <F4>:tabprevious<cr>i :imap <F3>:tabnext<cr>i [...]

Posted in ln, Text Manipulation, vi, vim, which | Hits: 30634 | 2 Comments »

how to create symlink?

August 12th, 2006 mysurface

First of all symlink stand for symbolic link, which is a very useful files like shortcuts in windows. Let me make few scenario why you need symlink. Sometime, we want to goes to a directory which is very long and difficult to remember, for example /var/www/html/BLOG/Image/Archive/_icon. And you have to access to that directory oftenly [...]

Posted in Admin, ln | Hits: 417154 | 50 Comments »