This has become the qalc.vim plug-in.
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
" :tjump opens a menu if multiple tags match whereas :tag does not | |
nnoremap <c-]> g<C-]> | |
xnoremap <c-]> g<C-]> | |
" open tag in preview window | |
nnoremap g] <c-w>g}<c-w>Pzv<c-w>p | |
xnoremap g] <c-w>g}<c-w>Pzv<c-w>p | |
" (forcefully) close preview window and jump back | |
nnoremap <silent><expr> g[ ':<c-u>silent! pclose<cr>:silent! '..v:count1..'pop<cr>' |
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
" Adapted from https://github.com/drmikehenry/vimfiles/blob/e5c369dadde340ead7438b0c4937c3f470acf524/vimrc#L3239 | |
" | |
" With --extra=+f in ~/.ctags respectively --extras=+f in | |
" ~/.config/ctags/default.ctags, filenames are tags, too, so | |
" the following mappings will work when a file isn't in the path. | |
" | |
" For automatic (C)tags generation, see either | |
" https://tbaggery.com or https://bolt80.com/gutentags/ | |
nnoremap <silent> gf :<c-u>call <sid>gf("gf")<cr> |
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
" Add the following snippet to your vimrc or put it into (Neo)Vim's plugin dir | |
" to grep interactively in the current work dir. | |
" Open the topmost file in (Neo)Vim by hitting <F2>. | |
" Requires [ugrep](https://github.com/Genivia/ugrep), a drop-in alternative to grep | |
" similar to ripgrep. | |
let s:term = has('nvim') ? 'term' : 'term ++close' | |
let s:cmd = 'ugrep --config --query --no-confirm --view='..shellescape(v:progpath) | |
let s:cleanup = has('nvim') ? 'autocmd TermClose <buffer=abuf> if !v:event.status |bwipeout!| endif' : 'redraw!' |
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
#!/usr/bin/env bash | |
command -v zypper >/dev/null 2>&1 || return 1 | |
# Zypper {{{1 | |
zcommands=( | |
licenses ps shell source-download tos vcmp if patch-info pattern-info product-info pt se wp | |
) | |
len=${#zcommands[*]} | |
for (( i=0; i<len; i++ )); do |
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
#!/bin/bash | |
command -v apt >/dev/null 2>&1 || return 1 | |
# apt commands {{{ | |
apt_commands=( | |
"ls list" | |
"cl changelog" | |
"se search" |
This has been included in :help netrw-handler
This has become the Filepicker.vim plug-in.
This has become the local-viminfo plug-in.
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
#!/bin/sh | |
pacman -S \ | |
--needed \ | |
base-devel \ | |
mingw-w64-ucrt-x86_64-toolchain \ | |
cmake \ | |
mingw-w64-ucrt-x86_64-cmake-gui \ | |
\ | |
ctags \ |
NewerOlder