Last active
August 21, 2019 07:55
-
-
Save Integralist/56f304c94c42fb60c04cc7b60aa48732 to your computer and use it in GitHub Desktop.
[vim debugging] #vim #debugging
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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