Retrieve settings?

What is the best way to retrieve all settings? My specific use case is checking if ‘Vim’ mode is enabled.