aboutsummaryrefslogtreecommitdiff
path: root/stow/vim/.vim/ftplugin/sent/sent.vim
blob: c9cc9746e2ac71fb0cea600902bfef7bcee9884d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
" ~/.vim/ftplugin/sent/sent.vim
" Vim configuration for writing sent presentations

" 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

call matchadd('ColorColumn', '\%41v', 100)
setlocal textwidth=40

setlocal spell

let mapleader = " "

nnoremap <buffer> <leader>C :sp ~/.vim/ftplugin/sent/sent.vim<CR>

nnoremap <buffer> <leader>c :w<CR>:!killall sent <CR>:!sent % & <CR><CR>
nnoremap <buffer> <leader>o :w<CR>:!sent % & <CR><CR>