diff --git a/UltiSnips/verilog.snippets b/UltiSnips/verilog.snippets index d6e7028..4165836 100644 --- a/UltiSnips/verilog.snippets +++ b/UltiSnips/verilog.snippets @@ -49,4 +49,15 @@ module ${1:MODULE_NAME} ( ); $0 endmodule // $1 + +snippet begin "begin - end" iA +begin + $1 +end +$0 +endsnippet + +snippet def "Definition/Constant" b +\`define ${1:NAME} ${2:VALUE} +$0 endsnippet diff --git a/spell/de.utf-8.add b/spell/de.utf-8.add new file mode 100644 index 0000000..1316625 --- /dev/null +++ b/spell/de.utf-8.add @@ -0,0 +1,2 @@ +transgender +python diff --git a/spell/de.utf-8.add.spl b/spell/de.utf-8.add.spl new file mode 100644 index 0000000..85b36cb Binary files /dev/null and b/spell/de.utf-8.add.spl differ diff --git a/spell/en.utf-8.add b/spell/en.utf-8.add new file mode 100644 index 0000000..e9c37cf --- /dev/null +++ b/spell/en.utf-8.add @@ -0,0 +1 @@ +t0 diff --git a/spell/en.utf-8.add.spl b/spell/en.utf-8.add.spl new file mode 100644 index 0000000..441fcb0 Binary files /dev/null and b/spell/en.utf-8.add.spl differ diff --git a/viml/legacyconf.vim b/viml/legacyconf.vim index f9aab82..37395cd 100644 --- a/viml/legacyconf.vim +++ b/viml/legacyconf.vim @@ -75,4 +75,23 @@ endfunction nnoremap :call Update_Sys() -nnoremap :!lualatex % < /dev/null +" Call build function +function! Build() + let l:filetype = &filetype + + if l:filetype == 'c' || l:filetype == 'cpp' || l:filetype == 'h' || l:filetype == 'hpp' + execute 'make' + elseif l:filetype == 'py' || l:filetype == 'python' + execute '!python3 %' + elseif l:filetype == 'tex' + execute '!lualatex % < /dev/null' + elseif l:filetype == 'rs' + execute 'cargo run' + elseif l:filetype == 'S' + execute 'make' + else + echo "Unsupported file type: " . l:filetype + endif +endfunction + +nnoremap :call Build()