fix ls flags for OS X
fix less function to support multiple vim versions