Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
Leveraging filter commands (i.e. :!) to easily/quickly manipulate lines or entire buffers/files. For example, :!date will run the external date and show you results, but :.!date (which is done by typing !! then date will run the external date command and put the result on the current line. But, also, if you have the word date on a line, then you can run :.!bash (which is done by typing !! then bash), which will execute the command date and replace the current line with the result. There are infinite uses for this, like :!sort (for sorting text), :!column -t (for aligning/tabulating text), :!awk for text manipulation, :!ddgr duckduckgo cli, ...etc
Implementing custom commands. Continuing the :!ddgr example above, say you want to run ddgr in vim's integrated terminal, like :terminal ddgr , you can write a custom command like command! -nargs=* DDGR terminal ddgr . If you prefer google, you could do the same with :terminal googler or you could leverage DuckDuckGo's bangs like command! -nargs=* GOOG terminal ddgr !g . This means you can also query any number of external sites, like !devdocs for devdocs or !chtsh for cheat.sh.
Here are my dotfiles for reference.
Implementing custom commands. Continuing the :!ddgr example above, say you want to run ddgr in vim's integrated terminal, like :terminal ddgr , you can write a custom command like command! -nargs=* DDGR terminal ddgr . If you prefer google, you could do the same with :terminal googler or you could leverage DuckDuckGo's bangs like command! -nargs=* GOOG terminal ddgr !g . This means you can also query any number of external sites, like !devdocs for devdocs or !chtsh for cheat.sh.