Vim Hacks

layout

  • <c-w>s and <c-w>v – split window horizontally and vertically
  • g<h,j,k,l> – move not in real lines but in visual lines

editing

  • J – join with space
  • gJ – join without space