Vimming

Was coding, and got a different kind of doubt. If I want to search for 2 words both at a time, say, PrimeNo & TotalNo. I found out that oring the two will do it. But we have to escape the | . ` /PrimeNo\|TotalNo` in vim will do it. 🙂

Found a new vim trick :).

That was some time before and today , the 4th of September, found a nice one this time. What will you do if u have a link in your file that you are vimming [the file you opened using vim], What a normal person will do is he would copy the link and paste it in the browser, else, you can just go to that line containing the link and just say `gx` in escape mode, I found this accidentally when pressing :noh , got :no , and then it gave some aliases which are there by default, and this is one of it.

And also one thing about recording in vim, I tried to read about recording in ranta’s page, but I had a doubt when to use it,

and found a incrementer/decrementer in vim :D, just go to a number and press Ctrl+A [Escape Mode] will increase the number and Ctrl+X[Escape Mode] will decrement the number.

i recently knew that recording is easy,good,helpful ,briefly, press `qa` in Escape mode to start recording, this will store all the actions we do within the register `a`, do something and then `q` to stop recording, and executing the contents of the register `a` is by [count]@a .count is no. of times we want it to repeat that action which is commonly used in vim.

.vimrc

+set ai
+set autoindent
+set cindent
+set ci
+map <f5> $vypr|^vyphr|YPVr-jYpVr-j

thinking of writing some pages on pdf/swf/algos 😀 .Jus writing them as found them and may come in handy sometimes.