map: fix indentation

  -- set vim options to GNU style
  -- fix indentation in some functions
  -- eliminated hard tabs
map-dev: sync with map.c