13 Vim Options

BashStyle-NG Vim Settings

Figure 13.1: Vim Settings

Basic

Setting: use_vimcfg

This master switch will make BashStyle-NG adjust the Settings for Vim.

Setting: vim_backup

If enabled vim will backup files to filename~ upon write.

Editing

Setting: jump_back Jump back to last position

When opening a file again, vim will jump back to the previous position.

Setting: filetype_indent Enable filetype indention

If enabled vim will use indention based on determined file type.

Setting: show_command Display (partial) command

If enabled vim will display (partially) typed in commands in the ruler.

Setting: highlight_brackets Highlight matching brackets

If enabled vim will highlight matching brackets, when the cursor is positioned at either of them.

Setting: syntax_hilight Enable syntax highlighting

Enable vim syntax highlighting.

Setting: dark_background Bash has dark background

Determines whether the shell has dark background or not

Setting: start_line Jump to start of line

If enabled many jump commands move the cursor to the first non-blank character of a line.

Setting: wrap_line Wrap long lines

Wrap long lines exceeding wrap_length.

Setting: wrap_length Autowrap position

At what length long lines should be wraped

Setting: tab_length tabstop length

Length of a tabulator in spaces.

Setting: expandtab Expand tab to spaces

If enabled, tabulators will be expanded to spaces.

Setting: autosave

If enabled, files will be automatically written when leaving a modified buffer.

Setting: ignore_case Match case-insensitively

If enabled, searches will be perfmored case-insensitively.

Setting: smart_case

If enabled, it will override ignore_case when a pattern has upper case characters.

Setting: incremental_search Enable incremental search

If enabled vim will perform incremental searches, rather than waiting for the user to finish typing an accepting the search string.

Setting: highlight_matches

If enabled vim will highlight all matches in the current file.

Folding

Setting: foldenable Enable folding large code

If enabled vim will allow to temporarily collapse or expand blocks of code.

Setting: foldlevelstart Code level to start folding at

folds with a level higher than this number will be closed.

Setting: foldnestmax Maximum nested foldings

Maximum fold depth for when foldmethod is indent or syntax.

Setting: foldmethod By default fold based upon

The method used to determine whether to fold large code blocks.

Misc.

Setting: show_lineno Display line numbers

Display line numbers.

Setting: chdir Go into file’s directory

Go into file’s directory.

Setting: highlight_line Highlight current line

Highlight current line.

Setting: wildmenu Display possible completions

Display possible completion.

Setting: highlight_column Highlight current column

Highlight current column.

Setting: ruler Display the ruler

Display a customizeable ruler at the bottom.

Setting: rulerformat rulerformat

Customize vim’s ruler.