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 |
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
" ============================================================================== | |
" 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
" in file ~/.vim/autoload/vim.vim | |
function! vim#help(arg) | |
let cmd = winwidth(0) * 2 < winheight(0) * 5 ? '' : 'vertical' | |
" Vim escapes special characters, therefore we need to remove backslash, | |
" otherwise it will jump to the wrong help tag, for example, :h | and :h \| | |
" Make sure characters inside [] are in correct order, see E944 | |
let arg = substitute(a:arg, '\\\ze[ !#$%''*+-<[`{|]', '', 'g') | |
try |
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
" Open/close/toggle the quickfix and location-list windows without changing the | |
" window layout | |
" ------------------------------------------------------------------------------ | |
" File: autoload/qf/window.vim | |
" ------------------------------------------------------------------------------ | |
" Save and restore view of current window | |
function! s:winview(mode) abort | |
if a:mode == 0 |
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
" Simple script that adds a new horizontal scrolling mode using a popup | |
" window. | |
" | |
" Pressing z/ opens a small popup window in the botton right corner of the | |
" screen. While the popup window is open, the current window can be scrolled | |
" with h (left one char), l (right one char), H (one half screen left), L (one | |
" half screen right). Close the window with q or ENTER. | |
scriptencoding utf-8 |
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
" Shorthand for <c-x><c- > completion | |
" | |
" <tab>f triggers filename completion | |
" <tab>l triggers line completion | |
" <tab>] triggers tag completion | |
" ... | |
" | |
" Original idea by 'kvik' in #vim long time ago | |
for i in split(']defiklnopuvys', '\zs') |
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
" Vanilla git-blame | |
" | |
" git-blame current line: | |
" :GB | |
" | |
" git-blame selected lines: | |
" :'<,'>GB | |
" | |
" git-blame entire buffer: | |
" :%GB |
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
" ============================================================================== | |
" File: colors/onedark.vim | |
" Description: Colors based on onedark.vim by joshdick | |
" Maintainer: bfrg <https://github.com/bfrg> | |
" Last Change: Feb 13, 2021 | |
" License: Same as Vim itself (see :h license) | |
" ============================================================================== | |
hi clear |
OlderNewer