How do I browse the full commit history of the current file using vim-fugitive?
:G log -- %
vim-fugitive's :G log -- % loads the git commit history for the current file into a quickfix-style log buffer.
2125 results for "i' a'"
:G log -- %
vim-fugitive's :G log -- % loads the git commit history for the current file into a quickfix-style log buffer.
:set updatetime=300
Vim's updatetime option controls two things: how quickly the swap file is written after you stop typing, and how many milliseconds of inactivity before the Curs
<C-x><C-f>
The command triggers filename completion in insert mode.
editing #editing #insert-mode #completion #file-management #productivity
:mksession / :source Session.vim
Vim's session feature saves a snapshot of your entire workspace — open buffers, window layout, tab pages, current directory, and more — to a file that you c
buffers-windows #buffers #windows #config #productivity #workflow #session
:%!{cmd}
The :%!{cmd} command pipes the entire buffer through an external shell command and replaces the buffer contents with the command's output.
command-line #editing #ex-commands #shell #filtering #productivity
:!ls -la
Vim lets you execute any shell command directly from within the editor using the :! (bang) command.
function! {name}#{funcname}() in autoload/{name}.vim
Vim's autoload mechanism lets you place functions in autoload/*.
]s and [s
How it works When spell checking is enabled in Vim with :set spell, misspelled words are highlighted.
R
Replace mode lets you type over existing text one character at a time, like the "Insert" key behavior in traditional editors.
:command
:command lets you define new Ex (colon-prefixed) commands with custom names, optional argument handling, and completion.
command-line #command-line #ex-commands #config #normal-mode
:set cursorcolumn
:set cursorcolumn (or the short form set cuc) highlights the entire vertical column where the cursor sits, painting a visible strip from top to bottom of the wi
:set isfname+=@-@
gf is fast until it stops exactly at characters common in modern import paths, especially @ in scoped package names (@org/pkg/file).
:set virtualedit=onemore
By default, Vim's cursor cannot go past the last character of a line in normal mode — pressing $ lands on the final character, not after it.
/\cpattern
How it works By default, Vim searches are case-sensitive: /Hello will not match hello or HELLO.
:iabbrev
:iabbrev defines insert mode abbreviations — short strings that expand automatically when you type a non-keyword character (like space or Enter) after them.
nzzzv
When you are stepping through many matches, plain n often lands with poor context and can hide the match inside a closed fold.
<C-r><C-w>
When typing a command on the Vim command line, pressing inserts the word currently under the cursor.
:g//d
:g//d uses an empty pattern in the global command, which instructs Vim to reuse the last search pattern.
U (in visual mode)
In visual mode, pressing U converts all selected text to uppercase.
:cabbrev
:cabbrev (command-line abbreviation) lets you define short aliases for longer Ex commands.