CMD: read info with vim
This commit is contained in:
+12
@@ -111,6 +111,18 @@ bin: vim
|
|||||||
bin: scp
|
bin: scp
|
||||||
tag: network
|
tag: network
|
||||||
|
|
||||||
|
aim: Read info files with vim
|
||||||
|
cmd: info ()
|
||||||
|
+ {
|
||||||
|
+ [ -n "$1" ] && file="${1}" || file="$(ls /usr/share/info/ | sed 's/\.info.gz$//' | fzf )";
|
||||||
|
+ file="$(ls /usr/share/info/"$file"* | fzf -1 )"
|
||||||
|
+ vim "$file"
|
||||||
|
+ }
|
||||||
|
shell: sh
|
||||||
|
bin: vim
|
||||||
|
bin: info
|
||||||
|
tag: documentation
|
||||||
|
|
||||||
aim: Find and replace across all files open in vim
|
aim: Find and replace across all files open in vim
|
||||||
cmd: :bufdo! %s/${pattern}/${replacement}/g
|
cmd: :bufdo! %s/${pattern}/${replacement}/g
|
||||||
shell: sh
|
shell: sh
|
||||||
|
|||||||
Reference in New Issue
Block a user