Refactor editor preferences

Split in two parts: default editor and keymaps.
Simplify the default editor selection. 
Easier maintenance and evolutions.