diff options
author | InigoGutierrez <inigogf.95@gmail.com> | 2020-03-04 23:19:34 +0100 |
---|---|---|
committer | InigoGutierrez <inigogf.95@gmail.com> | 2020-03-04 23:19:34 +0100 |
commit | 9cfb09a7240e35a0885f6e700044a08ada72dd8c (patch) | |
tree | 369962327c61e6a107691e81033d81cf5fb08c6f /files/vim/ftplugin/plantuml/plantuml.vim | |
parent | 4861dbabffa74795aea57a4a06c97c7d8059c62a (diff) | |
download | configs-9cfb09a7240e35a0885f6e700044a08ada72dd8c.tar.gz configs-9cfb09a7240e35a0885f6e700044a08ada72dd8c.zip |
Added PlantUML file type plugin for vim.
Diffstat (limited to 'files/vim/ftplugin/plantuml/plantuml.vim')
-rw-r--r-- | files/vim/ftplugin/plantuml/plantuml.vim | 17 |
1 files changed, 17 insertions, 0 deletions
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 <buffer> <leader>C :sp ~/.vim/ftplugin/plantuml/plantuml.vim<CR> +nnoremap <buffer> <leader>e :Errors<CR> + +nnoremap <buffer> <leader>c :w<CR>:!compilePlantUML.sh "%"<CR><CR> +nnoremap <buffer> <leader>o :w<CR>:!compilePlantUML.sh -o "%"<CR><CR> |