Repository: searxng/searxng

Issue:
Unable to select Vim-like hotkeys via settings.yml
<!-- PLEASE FILL THESE FIELDS, IT REALLY HELPS THE MAINTAINERS OF SearXNG -->

**Version of SearXNG, commit number if you are using on master branch and stipulate if you forked SearXNG**
<!-- If you are running on master branch using git execute this command
in order to fetch the latest commit ID:
```
git log -1
``` 
If you are using searxng-docker then look at the bottom of the SearXNG page
and check for the version after "Powered by SearXNG"

Please also stipulate if you are using a forked version of SearXNG and
include a link to the fork source code.
-->

I'm using docker: searxng/searxng:latest

**How did you install SearXNG?**
<!-- Did you install SearXNG using the official wiki or using searxng-docker
or manually by executing the searx/webapp.py file? -->

Docker compose, using searxng/searxng:latest

**What happened?**
<!-- A clear and concise description of what the bug is. -->
Since the removal of the VIM-like hotkeys plugin, there doesn't seem to be a way to select the VIM hotkeys via settings.yml. I'd like to be able to set it in the default config for my instance.

**How To Reproduce**
<!-- How can we reproduce this issue? (as minimally and as precisely as possible) -->

I have tried the following in settings.yml, both under the `ui` section and at the top-level:

```
ui:
  static_use_hash: true
  # query_in_title: When true, the result page's titles contains the query
  # it decreases the privacy, since the browser can records the page titles.
  query_in_title: true
  # infinite_scroll: When true, automatically loads the next page when scrolling to bottom of the current page.
  infinite_scroll: true
  # Open result links in a new tab by default
  results_on_new_tab: true
  hotkeys: vim

hotkeys: vim
```


**Expected behavior**
<!-- A clear and concise description of what you expected to happen. -->

The default hotkey setting should be VIM, but it is set to the default SearxNG setting. I can't seem to set the default to 'vim'.


**Screenshots & Logs**
<!-- If applicable, add screenshots, logs to help explain your problem. -->

**Additional context**
<!-- Add any other context about the problem here. -->



Discussion:

Resolving patch:
diff --git a/searx/preferences.py b/searx/preferences.py
--- a/searx/preferences.py
+++ b/searx/preferences.py
@@ -466,7 +466,7 @@ def __init__(
                 locked=is_locked('search_on_category_select')
             ),
             'hotkeys': EnumStringSetting(
-                'default',
+                settings['ui']['hotkeys'],
                 choices=['default', 'vim']
             ),
             # fmt: on
diff --git a/searx/settings_defaults.py b/searx/settings_defaults.py
--- a/searx/settings_defaults.py
+++ b/searx/settings_defaults.py
@@ -201,6 +201,7 @@ def apply_schema(settings, schema, path_list):
         'infinite_scroll': SettingsValue(bool, False),
         'cache_url': SettingsValue(str, 'https://web.archive.org/web/'),
         'search_on_category_select': SettingsValue(bool, True),
+        'hotkeys': SettingsValue(('default', 'vim'), 'default'),
     },
     'preferences': {
         'lock': SettingsValue(list, []),


Test patch: