Monday, June 25, 2012

VIM multiple clipboards(registers), without leaving insert model

To view your current registers type :reg. You'll notice that every register is prefixed with the symbol ".
How do you use these things? Let's say you want to copy a line into a specific register: "kyy will yank the current line into register "k. If you later want to paste register "k you can do this: "kp
If you want to put without leaving insert model:
ctrl-r follwed by the register lets you paste the contents of a register without leaving insert mode.
Ctrl + r" Put from the default register
Ctrl + rd Put from register d

Thursday, June 14, 2012

Enable spell checking in VIM

This is a feature of VIM I should know decades ago:

Enable spell checking:

:setlocal spell spelllang=en_us

  • ]s — move to the next mispelled word
  • [s — move to the previous mispelled word
  • zg — add a word to the dictionary
  • zug — undo the addition of a word to the dictionary
  • z= — view spelling suggestions for a mispelled word
Enable spell checking:

:set nospell

Saturday, June 9, 2012

Install bzr bazaar with out root privilege

Here are the steps that I followed to install bzr locally (in my user directory without root access) without using gcc.
Although you do not need to install it on your server, I still wanted to. The reason being that I cannot find any decent cgi that will let me browse the content of my bzr repository from the web. The easiest way is to install bzr and have it used by a script query and stat your repository from your web page.
So again, you do not need to install bzr on the server (for me, that was the whole point of using Bazaar in the first place). Still here’s how I got it to install:

Monday, June 4, 2012

unable to load the native components of sql server compact corresponding to the

This is a very stupid exception, which is due to SQL CE has mismatched binaries.

So, just uninstall SQL Server Compact 32 bit (64 bit as well for 64 bit machines) from Add/Remove Programs

Download sql server compact edition and install them.