- We've got some components
A,BandCwhich provide different slots.const A = { template: `<div><slot name="a">Default A Content</slot></div>` }
const B = {
| #!/bin/bash | |
| fname="$1" | |
| cachedir=/tmp/pdfextract | |
| mkdir -p "$cachedir" | |
| mtime="$(stat -c %Y "$1")" | |
| hash=$(echo $fname.$mtime | sha256sum | cut -c1-64) |
This is the setup that I use for mutt, I have two google domain account (read as gmail) and an institution where I work and study account. This means I have two gmail accounts and one outlook 365 account that i want to sync and read via mutt.
I want to store all my email locally as I travel a lot and will be in countries without easy internet access. For this I use mbsync (iSync). As it can handle multiple account types easily and efficently.
The setup works this way
[Remote Mail Servers] <= mbsync => [Local Mail Folders]
| #!/bin/sh | |
| # Compatible with ranger 1.6.0 through 1.7.* | |
| # | |
| # This script searches image files in a directory, opens them all with sxiv and | |
| # sets the first argument to the first image displayed by sxiv. | |
| # | |
| # This is supposed to be used in rifle.conf as a workaround for the fact that | |
| # sxiv takes no file name arguments for the first image, just the number. Copy | |
| # this file somewhere into your $PATH and add this at the top of rifle.conf: | |
| # |
| " jump to next non-empty line | |
| nnoremap <key> :<C-u>call search('^.\+')<CR> | |
| " jump to previous non-empty line | |
| nnoremap <otherkey> :<C-u>call search('^.\+', 'b')<CR> | |
| " extend visual selection to next non-empty line | |
| xnoremap <key> :<C-u>k`\|call search('^.\+')\|normal! <C-r>=visualmode()<CR>``o<CR> | |
| " extend visual selection to previous non-empty line |
| " markdown : jump to next heading | |
| function! s:JumpToNextHeading(direction, count) | |
| let col = col(".") | |
| silent execute a:direction == "up" ? '?^#' : '/^#' | |
| if a:count > 1 | |
| silent execute "normal! " . repeat("n", a:direction == "up" && col != 1 ? a:count : a:count - 1) | |
| endif |
You may want a linter plugin to lint your code in Vim but you probably don't need it. At least try the built-in way before jumping on the plugin bandwagon.
autocmd FileType <filetype> setlocal makeprg=<external command>
This autocommand tells Vim to use <external command> when invoking :make % in a <filetype> buffer. You can add as many similar lines as needed for other languages.