NeNe Nib

Settings

You can change NeNe Nib's settings in two ways. You can use the Settings panel, which opens on the right when you press Ctrl+, and lets you see the items and change them with the mouse or the keyboard. Or you can use :set and related commands, which also reach items that are not in Settings. This chapter explains how to use both, and lists the main settings.

Items that are not in Settings (such as case-insensitive search) are changed with settings commands. You can use commands in Basic mode too: press Ctrl+P and type :.

Use the Settings panel

To do this Do this What happens
Open Settings Ctrl+, (or Settings in All Commands (F1)) Settings opens on the right of the window. The text stays visible.
Choose an item ↑ / ↓ (or Tab) The chosen item is outlined.
Turn an item on or off Press Space or click the switch The setting changes right away.
Change a value one step at a time ←, → Values such as the color scheme or the font size change to the previous or next value.
Choose from a list of values Click the value, or press Enter, Space, Alt+↓, or F4 A list opens. Choose a value with ↑ / ↓ and press Enter to apply it.
Go to a section Ctrl+1 to Ctrl+6 Moves to the Display, Text, Editing, Panes, Features, or Language Server section.
Find an item Type in Search settings at the top Only items whose name, description, or :set name matches are shown.
Go back to the settings you had when you opened it Click Revert Restores the state from when you opened Settings.
Close Esc, Ctrl+,, Close, ✕, or click outside Settings Closes Settings and saves your settings.

Find items by section

Section Items
Display Color Scheme, Display Language, Shortcut Guide, Indent Guides and their colors and width
Text Font (the font name; display only), Font Size
Editing Wrap Lines, Auto Indent, Caret Motion, Caret Motion Time, Typing Sparks
Panes Explorer (the file tree pane), Finder Preview (the preview in Files and Tabs), Pane Resize Step, Vim Pane Resize Step
Features Matching Brackets (always on), Minimap, Language Server (LSP)
Language Server A language server for each language (explained in the Language servers chapter)

Balance features and speed

Above the Features section, you see "Estimated time per keystroke with these settings". This is an estimate of the time from one key press until the result appears on the screen. It is a base time measured on the developer's PC, plus the time for each feature you have turned on. The lower the estimate, the more quickly the screen keeps up with your typing, so it helps you decide which features to turn on. Each feature row shows its effect on speed as a number of ● marks. The number of ● marks is also based on numbers measured on the developer's PC. These are not times measured on your PC.

You can switch features as a group with the three buttons below it.

Button What happens
Speed First Turns on only the features that do not affect speed.
Recommended Turns on features up to those with a small effect. This is the default.
All On Turns on all features.

Use settings commands

Where you type a command depends on the mode.

Mode Do this
Vim mode In NORMAL, press :, and : appears at the bottom of the window. Then type something like set ignorecase and press Enter.
Basic mode Press Ctrl+P and type : to show the list of commands. Then type something like set ignorecase to narrow the list, and press Enter.

The : list in Files and Tabs works in Vim mode too. You do not have to remember every command: type :set and the available commands are listed. You can also type a command with a value, such as :set scrolloff=3, and press Enter to run it.

Search without matching case

By default, search matches uppercase and lowercase exactly. To search without matching case, turn on ignorecase. This setting is not in Settings or in All Commands, so you change it with a command.

Change it in Basic mode

  1. Press Ctrl+P.
  2. Type :set ignorecase. "set ignorecase" remains in the list.
  3. Press Enter.

Searches with Ctrl+F, F3, and Shift+F3, and the text you search for in replace with Ctrl+H, now ignore case. To go back, follow the same steps and choose :set noignorecase.

Change it in Vim mode

In NORMAL, type :set ignorecase (short form :set ic) and press Enter. Searches with /, ?, n, and N now ignore case. To go back, type :set noignorecase (:set noic).

Match case only when you type uppercase (smartcase)

If you turn on smartcase (short form scs) in addition to ignorecase, search matches case only when the search text contains at least one uppercase letter. For example, nib matches both Nib and NIB, while Nib matches only Nib. smartcase works only when ignorecase is on.

Search text ignorecase only ignorecase and smartcase
nib Matches nib, Nib, and NIB Matches nib, Nib, and NIB
Nib Matches nib, Nib, and NIB Matches only Nib

Both settings are saved and are still in effect when you start Nib again. Project search with Ctrl+Shift+F always ignores case, whatever these settings are.

Look up the main settings

Settings that have a name in the "Settings item" column can also be changed in Settings.

To do this Command Settings item Default
Search without matching case :set ignorecase (ic) None Off
Match case only when you type uppercase :set smartcase (scs) None Off
In Vim mode search, highlight every match :set hlsearch (hls), :set nohlsearch None On
In Vim mode search, show matches while you type :set incsearch (is), :set noincsearch None On
In Vim mode search, continue from the beginning after reaching the end of the document :set wrapscan (ws), :set nowrapscan None On

Display

To do this Command Settings item Default
Wrap long lines :set wrap, :set nowrap Wrap Lines On
Show line numbers relative to the caret line :set relativenumber (rnu) None Off
Always keep N lines visible above and below the caret :set scrolloff=3 (so=3) None 0
Show shortcut hints in empty documents and the status bar :set guide, :set noguide Shortcut Guide On
Change the display language :set language=ja, en, zh-hans, system Display Language Match Windows
Change the theme :colorscheme <name> Color Scheme Match Windows
Change the font size :set fontsize=18 Font Size 13.5 pt
Change the font :set guifont=<name>:h<size> None (Font is display only) Cascadia Code
Show the Explorer on the left :set explorer, :set noexplorer Explorer Off

Editing and features

To do this Command Settings item Default
In Vim mode, copy the indent of the previous line on a new line :set autoindent (ai) Auto Indent Off
Use language servers :set lsp, :set nolsp Language Server (LSP) Off
In Vim mode, use the Windows clipboard for copy and paste :set clipboard=unnamed None Off

The settings listed here are saved and are still in effect when you start Nib again. However, these four are not saved. They return to their defaults when you start Nib again.

Save settings

Going further: Use settings files from older versions

Next: Large files and encodings covers how Nib handles large files and encodings such as Shift_JIS.

Source of this manual: nene-nib / docs/manual/en(179fe3be)