aboutsummaryrefslogtreecommitdiff
path: root/stow/vim/dot-vim/ftplugin/plantuml/plantuml.vim
blob: 5bab6a20756be7fb4a63c399fa6bec280da22f59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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>