分类目录归档:VIM

VIM 使用技巧


1. 删除空行

g/^$/d

2. 映射按键

map {lhs} {rhs}
Map the key sequence {lhs} to {rhs} for the modes where the map command applies.  The result, including
{rhs}, is then further scanned for mappings.  This allows for nested and recursive use of mappings.
example : map <M-n> :tabnext

Read more