How do I enable automatic file type detection and plugins?
:filetype plugin indent on
The filetype plugin indent on command enables three key features: file type detection, filetype plugins, and filetype-based indentation.
2277 results for "@a"
:filetype plugin indent on
The filetype plugin indent on command enables three key features: file type detection, filetype plugins, and filetype-based indentation.
Plug 'sheerun/vim-polyglot'
vim-polyglot is a collection of language packs for Vim.
cs"' (change), ds" (delete), ys iw" (add)
The vim-surround plugin by Tim Pope adds commands for working with surrounding characters like quotes, brackets, and tags.
:set termguicolors
The termguicolors option enables 24-bit RGB color support, allowing color schemes to use millions of colors instead of the terminal's 256-color palette.
[{
The [{ command moves backward to the nearest unmatched {.
v
The v command enters character-wise visual mode, letting you select text one character at a time.
let mapleader = " "
The leader key is a prefix for custom mappings.
:vimgrep /pattern/ **/*.py
By specifying a file glob pattern with :vimgrep, you can restrict the search to specific file types.
dip
The dip command deletes the inner paragraph — all contiguous non-blank lines surrounding the cursor.
:tags
The :tags command displays the tag stack, showing all the tag jumps you have made with and their return points.
M
The M command moves the cursor to the line in the middle of the current window.
:diffthis in both windows
The :diffthis command enables diff mode for the current buffer.
:help topic
Vim has an extensive built-in help system.
vim-gitgutter plugin
vim-gitgutter shows git diff markers in the sign column next to line numbers.
autocmd FileType python setlocal ...
Using autocmd FileType with setlocal, you can configure settings that only apply when editing files of a specific type.
Plug 'vim-airline/vim-airline'
vim-airline provides a beautiful, feature-rich status line that shows file info, git branch, diagnostics, and more with minimal configuration.
y$
The y$ command yanks (copies) text from the cursor position to the end of the line.
:highlight Group ctermfg=color
The :highlight command changes the appearance of a highlight group.
%
The % command jumps to the matching bracket, parenthesis, or brace.
:lnext and :lprev
The location list is a per-window alternative to the quickfix list.