Archives

Archives / 2019 / February
  • Vim surround

    Tags: vim
    Vim surround with If you have Vim surround with plugin installed, you can use a powerful command of surround with to add or remove character around a word. Add surround character ys<motion><character> … Read more...
  • Jump to a bookmark with Vim

    Tags: vim
    In Vim, you can make a bookmark and assign a character to reference the bookmark. Then you can jump to that bookmark. You can use '{character} and `{character} The difference between '{character} and … Read more...
  • Vim Windows xp command to swap a character

    Tags: vim
    I sometimes have wrong typing my friend's name. His name is Phuong but I typed as Phoung. However, Vim has a useful command to help this. With xp the combination of x cut and p = paste. When we use … Read more...
  • Move forward and backward in Vim change list

    Tags: vim
    When you make some changes, Vim records your changes as a change list To see your change list use  :changes You can go backward in a change list by using the command g; For go forward use the … Read more...
  • Move forward and backward in Vim jumps list

    Tags: vim
    Vim record your as jump list To see your jump list use :jumps You can go backward in jump list by using command ctl+0 For go forward you this command ctrl+i You can repeat it to continue go … Read more...
  • Use PowerShell profile to set something for you when launching a new PowerShell session

    In PowerShell, you can crate a profile to set something (e.g. setting, variable) for you when launching a new PowerShell session Get started Launch PowerShell with Adminitrator permission Enter the … Read more...
  • สร้าง SQL Server database ด้วย PowerShell script

    Tags: sql
    ในบความนี้ เรามาสร้าง PowerShell script เพื่อสร้าง database ใหม่บนเครื่อง SQL server กันนะครับ เริ่มจากเตรียมเครื่องมือให้เรียบร้อย เครื่อง computer ที่ใช้อยู่เป็น Windows OS ติดตั้ง SQL Server ไว้แ … Read more...
  • Go back to last insert mode stopped and switch to insert mode

    Tags: vim
    This tip is very helpful when you change something and want to add something after the last change you've just made. Vim has gi which can help you go back to the last insert mode stopped or last … Read more...
  • Jump to the last change with Vim

    Tags: vim
    Vim has automatic mark the last change for us. Therefore we can jump quickly with this. In this article I will show the two commands. There are pretty similar but if you careful notice you will find … Read more...
  • Back to the last jump with automatic mark in Vim

    Tags: vim
    Vim automatic create auto mark for you. This means whenever you jump in Vim, you can go back to the previous position fast and easily. These are some of automatic mark. '' Jump back to first … Read more...