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
" ============================================================================== | |
" Display the output of :highlight in a popup window | |
" | |
" Command: | |
" | |
" :Highlight [{args}...] | |
" | |
" {args} is an optional list of highlight groups (partial names are supported) | |
" | |
" Examples: |
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
" ============================================================================== | |
" Display the output of :messages in a popup window | |
" | |
" Commands: | |
" :Messages | |
" | |
" Popup Mappings: | |
" j/k - scroll down/up one line | |
" d/u - scroll down/up one half page | |
" f/b - scroll down/up one full page |
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
vim9script | |
# Print the quickfix (or location-list) history and switch to the selected list | |
# Alternative: https://github.com/bfrg/vim-qf-history | |
def Errorlists(loclist: bool) | |
const Xgetlist = loclist ? function('getloclist', [0]) : function('getqflist') | |
const nr: number = Xgetlist({nr: '$'}).nr | |
if !nr | |
echomsg 'No entries' |
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
" ============================================================================== | |
" Redirect the output of ':verbose {cmd}' to a quickfix list | |
" | |
" Commands: | |
" :Verbose {cmd} | |
" Add items to new quickfix list | |
" | |
" :VerboseAdd {cmd} | |
" Append items to current quickfix list | |
" |
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
" ============================================================================== | |
" Quickly edit my dotfiles | |
" | |
" Commands: | |
" Edit the dotfile 'foo' ... | |
" :DotE foo ... in current window | |
" :DotS foo ... in new split window | |
" :DotV foo ... in new vertical split | |
" :DotT foo ... in new tab page | |
" |
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
" ============================================================================== | |
" Quickly open the root directory of a plugin under ~/.vim/pack using your | |
" default file explorer (dirvish, netrw, etc.) | |
" | |
" Commands: | |
" Open root directory of plugin <plug> ... | |
" :PackE {plug} ...in current window | |
" :PackS {plug} ...in new split | |
" :PackV {plug} ...in new vertical split | |
" :PackT {plug} ...in new tab page |
NewerOlder