Skip to main content

navigate_in_a_specific_file_type

  • :g/^#/# "gives a summary of sections
  • :g/def /# "gives a list of functions in a python source
  • :g/^$/d "deletes all blank lines, useful especially when some "lines are selected visually