aboutsummaryrefslogtreecommitdiff
path: root/files/vim/ftplugin/plantuml
diff options
context:
space:
mode:
Diffstat (limited to 'files/vim/ftplugin/plantuml')
-rw-r--r--files/vim/ftplugin/plantuml/plantuml.vim4
-rw-r--r--files/vim/ftplugin/plantuml/snips/template.txt9
2 files changed, 13 insertions, 0 deletions
diff --git a/files/vim/ftplugin/plantuml/plantuml.vim b/files/vim/ftplugin/plantuml/plantuml.vim
index eaa8911..e493e5b 100644
--- a/files/vim/ftplugin/plantuml/plantuml.vim
+++ b/files/vim/ftplugin/plantuml/plantuml.vim
@@ -10,6 +10,10 @@ setlocal list
call matchadd('ColorColumn', '\%81v', 100)
setlocal textwidth=80
+let mapleader = " "
+
+nnoremap <buffer> <leader>temp :-1r ~/.vim/ftplugin/plantuml/snips/template.txt<CR>Gdd?<+++><CR>cf>
+
nnoremap <buffer> <leader>C :sp ~/.vim/ftplugin/plantuml/plantuml.vim<CR>
nnoremap <buffer> <leader>e :Errors<CR>
diff --git a/files/vim/ftplugin/plantuml/snips/template.txt b/files/vim/ftplugin/plantuml/snips/template.txt
new file mode 100644
index 0000000..f649539
--- /dev/null
+++ b/files/vim/ftplugin/plantuml/snips/template.txt
@@ -0,0 +1,9 @@
+@startuml
+
+class <+++> {
+ <++>
+}
+
+<++>
+
+@enduml