Minden Új

user:thomas létrehozva e felhasználó által

title:mygist gistek egyező címmel

filename:myfile.txt gistek melyek tartalmaznak fájlt egyező névvel

extension:yml gistek melyek tartalmaznak fájlt egyező kiterjesztéssel

language:go gistek melyek tartalmaznak fájlt egyező nyelvvel

topic:homelab gists with given topic

Bejelentkezés


Minden Új Bejelentkezés

All gists matching topic vim

Újabbtól létrehozva
Utolsótól létrehozva
Újabbtól módosítva
Utolsótól módosítva
santiago's Avatar

santiago / vd.sh - fzf pick + vim edit

0 Kedvelések
0 forkok
1 fájlok
Utoljára aktív 1747056365
use fzf to select file and launch editor
bash fzf linux vim
1 #!/usr/bin/env zsh
2
3 # Use fzf and open file in text editor
4
5 vd() {
6 # folder, default to current directory
7 # depth, default to 1
8 local dir=${1:-.}
9 local depth=${2:-1}
10 local selected_file
santiago's Avatar

santiago / vv.sh - vim or sudo vim

0 Kedvelések
0 forkok
1 fájlok
Utoljára aktív 1747056282
Bash command to edit file with nvim with my user or sudo if necessary to write the file. Use config for my user with root (will download modules again)
bash vim
1 #!/bin/bash
2
3 vv() {
4 if [ $# -eq 0 ]; then
5 echo "Usage: vv <file>"
6 echo "Will edit with current user or sudo if needed but using nvim config of this user"
7 return 1
8 fi
9
10 vpath=$(which $EDITOR)
Újabb Régebbi

Ez az oldal Opengist alapú ⋅ Load: 15ms⋅

Magyar
Čeština Deutsch English Español Français Magyar Italiano 日本語 Polski Português Русский Türkçe Українська 中文 繁體中文