From 4956fe8431fc887c72926597bbcb6e7fbdf6306e Mon Sep 17 00:00:00 2001 From: ray Date: Fri, 5 Nov 2021 09:40:50 +0000 Subject: [PATCH] update --- UltiSnips/javascript.snippets | 16 ++++++++++++++++ UltiSnips/markdown.snippets | 12 ++++++++++-- init.vim | 6 ------ spell/en.utf-8.add | 5 +++++ spell/en.utf-8.add.spl | Bin 2354 -> 2409 bytes 5 files changed, 31 insertions(+), 8 deletions(-) diff --git a/UltiSnips/javascript.snippets b/UltiSnips/javascript.snippets index 70c248e..d522e78 100644 --- a/UltiSnips/javascript.snippets +++ b/UltiSnips/javascript.snippets @@ -12,6 +12,22 @@ snippet cl "console.log( ... )" console.log($0); 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 .forEach(($1) => { $0 diff --git a/UltiSnips/markdown.snippets b/UltiSnips/markdown.snippets index 871e9c4..fc340ac 100644 --- a/UltiSnips/markdown.snippets +++ b/UltiSnips/markdown.snippets @@ -8,14 +8,22 @@ snippet c "``` ..." endsnippet # latex -snippet vec "vector" +snippet vec "vector 1x2" \\begin{bmatrix} $1 \\\\ $2 \\end{bmatrix}$0 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 endsnippet +snippet mx3 "matrix 3x3" +\\begin{bmatrix} $1 & $2 & $3 \\\\ $4 & $5 & $6 \\\\ $7 & $8 & $9 \\end{bmatrix}$0 +endsnippet + snippet lim "limit" \\lim{$1 \\to $2}$0 endsnippet diff --git a/init.vim b/init.vim index 43ca850..3be6107 100644 --- a/init.vim +++ b/init.vim @@ -338,8 +338,6 @@ nnoremap cs :let @/="" nnoremap nh (&hls && v:hlsearch ? ':nohls' : ':set hls')."\n" " Focus on current fold, close the rest nnoremap zz zMzvzt -" exit from terminal insert mode with escape -tnoremap " open quickfix window of TODOs nnoremap td :grep -RE '(TODO\\|FIXME)' .:botright cwindow:echo len(getqflist()) 'TODOs' " sync highlighting from start @@ -362,10 +360,6 @@ nnoremap qh :chistory nnoremap qp :colder nnoremap qn :cnewer -"}}} -" insert mode mappings {{{ -inoremap jjrg :reg - "}}} "----------------------------------------------------------------------------}}} " #abbreviations {{{ diff --git a/spell/en.utf-8.add b/spell/en.utf-8.add index 8610293..4cf01f0 100644 --- a/spell/en.utf-8.add +++ b/spell/en.utf-8.add @@ -180,3 +180,8 @@ mimetype thumbnailers Diagonalisation yah +shopify +Dropshipping +Todo +nodemailer +nodejs diff --git a/spell/en.utf-8.add.spl b/spell/en.utf-8.add.spl index 0bf149f5f1151273af3453aa86f51cf02b3dbc44..9324bc2545a51d1e4cf4a3cc9d9b2840e800eb4f 100644 GIT binary patch delta 518 zcmX9*%}N_l6u#$9?u4e0MPiGPg^(=LL=cofvq_~`p)wS0D{h3~m`sw9$;@Sbq%I_g z4zEZ9?j`(Mx z{k|5`kUWX{{A7w|AEHJ>bPY({e^Y}|s86MrqDaE3hA@AOmY4>JrNbrFs5?5(7^wTK zb`ipsaWx4dL(ZSoR%hN!q%cv_n(72ZLp&gD#V~2|S|%x`hw!7H^8@%>eRwH#3}@)5 zkGO2Vu5BAH(lMv#4lFl1!wOTAoAIW-OMm&wezh`>^SPQ(k+=%*7J}U@9HQ^|!EUuO zAD#`8E>hTu(KAA<^W94)%jYt4^HQ+~H(!dK+Q$TB&&z^-YJQ$vOrfP#e_R*8(|@t= BaS{Lk delta 481 zcmW+yJxjw-6wSR!8g%H8f(Q zTukwI*DxRi$kqREOPBc(`5zi2!%4E>j_eU8!OCymH)qk#hye7$S>@ZIz2D5-x2W zDKLrf6v8G30q!f}x6*1k9;lhb_Ze~};EaG{NJxtuuX0@~ivwdDu`Z16!g|WA1*MT( QsvMlB0jzX>`Y^8OAIJ7;egFUf