Archives

Archives / 2017
  • Vim to quote a word command

    Tags: vim
    Simple tips to change a word with quote or single quote. There is vim-surround plugin which is very good for this task but I just want to show you how to deal with it without using a plugin. Steps … Read more...
  • Vim delete text with search command

    Tags: vim
    With Vim, you can use combine delete (d) with search command (/search-keyword) to delete text from the current position of cursor to text that you search. In this Gif image shows you how to delete … Read more...
  • delete text inside HTML or XML tag

    Tags: vim
    Your text file may contain HTML or XML like this. <p>Hello World</p> Then, you want to delete or change text inside tag which is p tag for this example. To delete text inside tag, in Vim normal mode, … Read more...
  • using orchard command line

    Tags: orchard
    Recently, I have worked with Orchard and create many modules which used in codesanook.com. Orchard has some built in command line tool which is really nice. Therefore, I think it is good to share … Read more...
  • delegate example in C#

    Tags: c#
    I've made a simple example to show how to create a delegate in C#. We use a delegate as callback function or an implementation of an observable pattern. When any event happens in our system, we what … Read more...
  • How to share clipboard content with Vim IntelliJ

    Tags: vimintellij
    For those who use Vim plugin for IntelliJ-based products such as Intellij IDEA, Android Studio, may find an inconvenient way to copy and paste content from a clipboard to the IDE. We usually use … Read more...
  • save your typing with compound command in Vim

    Tags: vim
    Vim has special command that allow us to save time by typing only one key instead of typing many keys. We can call it as compound command which compounds two or more command into one command. When we … Read more...
  • create new line in Vim

    Tags: vim
    Sometimes you may want to create a new line below or above current line. In Vim, you simply use this command. o for creating a new line **below ** current line and change to insert mode O ( … Read more...
  • git command to get current branch name

    Tags: git
    When you work with git command line, sometimes you want to know which branch you are working on. You can use this git command to get current working branch name. git name-rev --name-only HEAD To … Read more...
  • delete everything in a file with Vim

    Tags: vim
    To delete everything in a file with Vim, use this command. ggdG explain gg go to the first line dG delete to the last line of file (G is movement which is " go to the last line of the document ") … Read more...