Skip to content

Instantly share code, notes, and snippets.

@Integralist
Last active August 21, 2019 07:55
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Integralist/56f304c94c42fb60c04cc7b60aa48732 to your computer and use it in GitHub Desktop.
Save Integralist/56f304c94c42fb60c04cc7b60aa48732 to your computer and use it in GitHub Desktop.
[vim debugging] #vim #debugging
vim -D # starts vim in a step-debugger mode
:h map-listing # show information about key bindings that have been mapped by either your .vimrc or other scripts
:scriptnames # shows list of sourced script names, in the order they were sourced
:set runtimepath? # shows list of directories which will be searched for runtime files
:verbose set <option>? # shows where <option> was last set (e.g. :verbose set history?)
:set rtp+=<path> # allows appending <path> to the runtimepath variable
# example mappings I use, and last item demonstrates a bug...
:map \\\ # mapped to a Commentary plugin command
:map <Leader>f # mapped to :FZF<CR>
:map <C-i> # incorrectly mapped to `gt` which is mapped to <Tab>!
:verbose map <C-i> # this helps to identify where it was last set! `Last set from ~/.vimrc line 306`
# Although <C-i> indicates the mapping, the help file is CTRL-I (`:h CTRL-I`)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment