vim update

This commit is contained in:
Anthony Debucquoy committed 2026-11-03 13:14:16 +01:00
1 parent 5f66163741
commit 4749a1d22e
13 files changed
+154 -1

No files matched your search

+16
View File
@@ -24,6 +24,22 @@ snippet bb "mathbb" i
\mathbb{${1:${VISUAL:R}}} $0
endsnippet
snippet inkscape "inkscape include" b
% Inkscape link
\usepackage{import}
\usepackage{pdfpages}
\usepackage{transparent}
\usepackage{xcolor}
\newcommand{\incfig}[2][1]{%
\def\svgwidth{#1\columnwidth}
\import{./figures/}{#2.pdf_tex}
}
\pdfsuppresswarningpagegroup=1
endsnippet
priority -9999999
snippet "(\w+)" "latex default" r
\\`!p snip.rv = match.group(1)` $1
+81
View File
@@ -0,0 +1,81 @@
snippet imp "import" b
const $1 = @import("${1:${VISUAL:std}}");
endsnippet
snippet self "self to this" b
const Self = @This();
endsnippet
snippet arena "Arena Allocator" b
var arena = std.heap.ArenaAllocator.init(std.heap.page_allocator);
defer arena.deinit();
const allocator = arena.allocator();
endsnippet
snippet main "main" b
pub fn main() !void {
$0
}
endsnippet
snippet build "build" b
const std = @import("std");
pub fn build(b: *std.Build) void {
const target = b.standardTargetOptions(.{});
const optimize = b.standardOptimizeOption(.{});
const exe_mod = b.createModule(.{
.root_source_file = b.path("src/main.zig"),
.target = target,
.optimize = optimize,
});
const exe = b.addExecutable(.{
.name = "zig",
.root_module = exe_mod,
});
b.installArtifact(exe);
const run_cmd = b.addRunArtifact(exe);
run_cmd.step.dependOn(b.getInstallStep());
if (b.args) |args| {
run_cmd.addArgs(args);
}
const run_step = b.step("run", "Run the app");
run_step.dependOn(&run_cmd.step);
const exe_unit_tests = b.addTest(.{
.root_module = exe_mod,
});
const run_exe_unit_tests = b.addRunArtifact(exe_unit_tests);
const test_step = b.step("test", "Run unit tests");
test_step.dependOn(&run_exe_unit_tests.step);
}
endsnippet
snippet zon "zon" b
.{
.name = .${1:${VISUAL:name}},
.version = "0.0.0",
.minimum_zig_version = "0.14.0",
.dependencies = .{
},
.paths = .{
"build.zig",
"build.zig.zon",
"src",
$0
},
}
endsnippet
+1
View File
@@ -0,0 +1 @@
let &makeprg="./nob"
+1
View File
@@ -0,0 +1 @@
autocmd BufRead,BufNewFile *.spf set filetype=spf
+1
View File
@@ -0,0 +1 @@
set commentstring="//"
+3
View File
@@ -4,3 +4,6 @@ set textwidth=100
highlight Conceal ctermfg=red
noremap <silent> <F12> <ESC>:silent !pdflatex % && mupdf %:r.pdf&<CR>
inoremap <C-f> <Esc>: silent exec '.!inkscape-figures create "'.getline('.').'" "'.b:vimtex.root.'/figures/"'<CR><CR>:w<CR>
nnoremap <C-f> : silent exec '!inkscape-figures edit "'.b:vimtex.root.'/figures/" > /dev/null 2>&1 &'<CR><CR>:redraw!<CR>
+10
View File
@@ -0,0 +1,10 @@
let g:tagbar_type_zig = {
\ 'ctagstype': 'zig',
\ 'kinds' : [
\'f:functions',
\'s:structs',
\'e:enums',
\'u:unions',
\'E:errors'
\]
\}
Submodule vim/.vim/pack/autoload/other/emmet-vim added at 3fb2f63799.
Submodule vim/.vim/pack/autoload/start/vim-easy-align added at 9815a55dbc.
Submodule vim/.vim/pack/autoload/start/vim-lark-syntax added at e59976afd0.
+36
View File
@@ -0,0 +1,36 @@
if exists("g:current_syntax")
finish
endif
syn region spfComment start='#' end='\n'
syn keyword spfType booléen entier texte liste
syn match spfNumber /\d\+/
syn region spfString start='"' end='"'
syn keyword spfString vrai faux
syn keyword spfIf si alors sinon
syn keyword spfWhile "tant que" faire
syn keyword spfFor "pour chaque" dans faire
syn keyword spfOp + - * / < <= > >=
syn keyword spfKw afficher ajouter
let g:current_syntax="spf"
hi def link spfComment Comment
hi def link spfType Type
hi def link spfNumber Number
hi def link spfString String
hi def link spfBool Boolean
hi def link spfIf Repeat
hi def link spfIf Repeat
hi def link spfOp Operator
hi def link spfKw Keyword
+1
View File
@@ -130,6 +130,7 @@ syntax on
" set foldcolumn=1
set autochdir
set clipboard^=unnamed,unnamedplus
set colorcolumn=-1
set concealcursor=
set conceallevel=2
set encoding=utf-8