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 0bf149f..9324bc2 100644 Binary files a/spell/en.utf-8.add.spl and b/spell/en.utf-8.add.spl differ