and tags like the block tags they are
10 | let g:html_indent_tags = 'li\|p'
11 |
12 | " vim:ft=vim
13 |
--------------------------------------------------------------------------------
/vim/rcfiles/project-notes:
--------------------------------------------------------------------------------
1 | " Project Notes
2 | " -------------
3 |
4 | " Quick access to a local notes file for keeping track of things in a given
5 | " project. Add `.project-notes` to global ~/.gitignore
6 |
7 | let s:PROJECT_NOTES_FILE = '.project-notes'
8 |
9 | command! EditProjectNotes call SmartSplit(s:PROJECT_NOTES_FILE)
10 | nnoremap ep :EditProjectNotes
11 |
12 | autocmd BufEnter .project-notes call LoadNotes()
13 |
14 | function! s:SmartSplit(file)
15 | let split_cmd = (winwidth(0) >= 100) ? 'vsplit' : 'split'
16 | execute split_cmd . " " . a:file
17 | endfunction
18 |
19 | function! s:LoadNotes()
20 | setlocal filetype=markdown
21 | endfunction
22 |
23 | " vim:ft=vim
24 |
--------------------------------------------------------------------------------
/vim/rcfiles/prose:
--------------------------------------------------------------------------------
1 | " Prose - Configurations related to those times I write things that aren't code
2 |
3 | function! s:PreviewInMarked()
4 | silent! call system("open -a 'Marked 2' " . expand("%:p"))
5 | endfunction
6 | command! PreviewInMarked call PreviewInMarked()
7 | nnoremap md :PreviewInMarked
8 |
9 | function! s:FixLastSpellingError()
10 | let position = getpos('.')[1:3]
11 | let current_line_length = len(getline('.'))
12 | normal! [s1z=
13 | let new_line_length = len(getline('.'))
14 | let position[1] += (new_line_length - current_line_length)
15 | call cursor(position)
16 | silent! call repeat#set("\FixLastSpellingError", 0)
17 | endfunction
18 | command! FixLastSpellingError call FixLastSpellingError()
19 | nnoremap FixLastSpellingError :FixLastSpellingError
20 | imap :write