diff options
Diffstat (limited to 'stow/vim/dot-vim/ftplugin/plantuml/plantuml.vim')
-rw-r--r-- | stow/vim/dot-vim/ftplugin/plantuml/plantuml.vim | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/stow/vim/dot-vim/ftplugin/plantuml/plantuml.vim b/stow/vim/dot-vim/ftplugin/plantuml/plantuml.vim new file mode 100644 index 0000000..5bab6a2 --- /dev/null +++ b/stow/vim/dot-vim/ftplugin/plantuml/plantuml.vim @@ -0,0 +1,20 @@ +" ~/.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 + +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>c :w<CR>:!compilePlantUML.sh "%"<CR><CR> +nnoremap <buffer> <leader>o :w<CR>:!compilePlantUML.sh -o "%"<CR><CR> |