This commit is contained in:
Ray Elliott 2021-11-05 09:40:50 +00:00
parent a03bf550ce
commit 4956fe8431
5 changed files with 31 additions and 8 deletions

View File

@ -12,6 +12,22 @@ snippet cl "console.log( ... )"
console.log($0); console.log($0);
endsnippet endsnippet
snippet cw "console.warn( ... )"
console.warn($0);
endsnippet
snippet f "for (...)"
for (let index=0; index < $1; index += 1) {
$0
}
endsnippet
snippet fr "for (...)"
for (let index=${1:0}; index ${2:<} $3; index ${4:+=} ${5:1}) {
$0
}
endsnippet
snippet .fe "...forEach( ... );" i snippet .fe "...forEach( ... );" i
.forEach(($1) => { .forEach(($1) => {
$0 $0

View File

@ -8,14 +8,22 @@ snippet c "``` ..."
endsnippet endsnippet
# latex # latex
snippet vec "vector" snippet vec "vector 1x2"
\\begin{bmatrix} $1 \\\\ $2 \\end{bmatrix}$0 \\begin{bmatrix} $1 \\\\ $2 \\end{bmatrix}$0
endsnippet endsnippet
snippet mx "matrix" snippet vec3 "vector 1x3"
\\begin{bmatrix} $1 \\\\ $2 \\\\ $3 \\end{bmatrix}$0
endsnippet
snippet mx "matrix 2x2"
\\begin{bmatrix} $1 & $2 \\\\ $3 & $4 \\end{bmatrix}$0 \\begin{bmatrix} $1 & $2 \\\\ $3 & $4 \\end{bmatrix}$0
endsnippet endsnippet
snippet mx3 "matrix 3x3"
\\begin{bmatrix} $1 & $2 & $3 \\\\ $4 & $5 & $6 \\\\ $7 & $8 & $9 \\end{bmatrix}$0
endsnippet
snippet lim "limit" snippet lim "limit"
\\lim{$1 \\to $2}$0 \\lim{$1 \\to $2}$0
endsnippet endsnippet

View File

@ -338,8 +338,6 @@ nnoremap <silent><space>cs :let @/=""<cr>
nnoremap <silent><expr> <space>nh (&hls && v:hlsearch ? ':nohls' : ':set hls')."\n" nnoremap <silent><expr> <space>nh (&hls && v:hlsearch ? ':nohls' : ':set hls')."\n"
" Focus on current fold, close the rest " Focus on current fold, close the rest
nnoremap <silent> <space>zz zMzvzt nnoremap <silent> <space>zz zMzvzt
" exit from terminal insert mode with escape
tnoremap <Esc> <C-\><C-n>
" open quickfix window of TODOs " open quickfix window of TODOs
nnoremap <space>td :grep -RE '(TODO\\|FIXME)' .<CR>:botright cwindow<CR>:echo len(getqflist()) 'TODOs'<CR> nnoremap <space>td :grep -RE '(TODO\\|FIXME)' .<CR>:botright cwindow<CR>:echo len(getqflist()) 'TODOs'<CR>
" sync highlighting from start " sync highlighting from start
@ -362,10 +360,6 @@ nnoremap <space>qh :chistory<CR>
nnoremap <space>qp :colder<CR> nnoremap <space>qp :colder<CR>
nnoremap <space>qn :cnewer<CR> nnoremap <space>qn :cnewer<CR>
"}}}
" insert mode mappings {{{
inoremap jjrg <c-o>:reg<cr>
"}}} "}}}
"----------------------------------------------------------------------------}}} "----------------------------------------------------------------------------}}}
" #abbreviations {{{ " #abbreviations {{{

View File

@ -180,3 +180,8 @@ mimetype
thumbnailers thumbnailers
Diagonalisation Diagonalisation
yah yah
shopify
Dropshipping
Todo
nodemailer
nodejs

Binary file not shown.