How do I open the previous file I was editing in a split window?
:split #
In Vim, # is a special filename that always refers to the alternate file — the most recently active buffer before the current one.
370 results for "insert mode"
:split #
In Vim, # is a special filename that always refers to the alternate file — the most recently active buffer before the current one.
:set winblend=20
Neovim's winblend option controls the pseudo-transparency of floating windows.
:set wildoptions=pum
Setting wildoptions=pum tells Neovim to use its popup menu for command-line tab completion instead of the traditional horizontal wildmenu bar.
:set shiftwidth=0
Setting shiftwidth=0 tells Vim to use the value of tabstop wherever shiftwidth would normally be consulted — for the > and and in insert mode, and auto-indent
:checkpath!
:checkpath! recursively walks through every file reachable via Vim's include path and displays the full include tree.
<Cmd>
The pseudo-key in Neovim allows a mapping to execute an Ex command directly, without going through command-line mode.
:let @q = 'keystrokes'
You can assign a string directly to any register using :let, turning it into a macro instantly.
:let @q = substitute(@q, 'old', 'new', '')
Vim macros are stored as plain text in named registers, which means you can inspect and modify them directly using :let and :echo.
grn
Neovim 0.
:verbose map <key> or :verbose set option?
The :verbose prefix shows where a mapping, setting, command, or function was defined — which file and line number.
command-line #command-line #debugging #config #mappings #workflow
"qp
Macros are stored as plain text in named registers.
grr
Since Neovim 0.
it and at
Vim provides two built-in text objects for HTML and XML tags: it (inner tag) and at (a tag).
editing #text-objects #editing #visual-mode #html #normal-mode
yiw
How it works The command yiw yanks (copies) the inner word under the cursor.
set statusline=%{MyCustomFunc()}
How it works Vim's statusline supports the %{expr} syntax which evaluates a Vimscript expression and displays the result.
:nnoremap <buffer> <leader>r :!python %<CR>
How it works By adding to a mapping command, the mapping only applies to the current buffer.
:set cmdheight=0
Setting cmdheight=0 in Neovim 0.
:let @a = @/
Vim stores the last search pattern in the special / register (@/).
:let @q = 'commands'
Macros in Vim are just text stored in named registers.
:for i in range(1,5) | put ='item '.i | endfor
Vimscript's for loop is available directly from Vim's command line and can be used to generate repetitive or parameterized text without a macro or external scri