From 9cfb09a7240e35a0885f6e700044a08ada72dd8c Mon Sep 17 00:00:00 2001 From: InigoGutierrez Date: Wed, 4 Mar 2020 23:19:34 +0100 Subject: Added PlantUML file type plugin for vim. --- files/vim/ftplugin/plantuml/plantuml.vim | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 files/vim/ftplugin/plantuml/plantuml.vim diff --git a/files/vim/ftplugin/plantuml/plantuml.vim b/files/vim/ftplugin/plantuml/plantuml.vim new file mode 100644 index 0000000..eaa8911 --- /dev/null +++ b/files/vim/ftplugin/plantuml/plantuml.vim @@ -0,0 +1,17 @@ +" ~/.vim/ftplugin/plantuml/plantuml.vim +" PlantUML-specific vim configuration + +" Tabs hate: tabs are expanded to 4 spaces +setlocal tabstop=4 shiftwidth=4 expandtab +" Show existing tabs (they can be deleted with :retab) +setlocal list + +" Column marker: 80 characters +call matchadd('ColorColumn', '\%81v', 100) +setlocal textwidth=80 + +nnoremap C :sp ~/.vim/ftplugin/plantuml/plantuml.vim +nnoremap e :Errors + +nnoremap c :w:!compilePlantUML.sh "%" +nnoremap o :w:!compilePlantUML.sh -o "%" -- cgit v1.2.1