aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkatherine <shmibs@shmibbles.me>2017-09-23 01:00:37 -0700
committerkatherine <shmibs@shmibbles.me>2017-09-23 01:00:37 -0700
commit27a5a4ad68430d1a983d54f97634a4c4c0b71e5d (patch)
tree2d9e7ce2d28ed414b6be12c69650b3625833bab6
parentd937ba61393192da32a4bc4f7af1930f48b01b0b (diff)
downloaddotfiles-27a5a4ad68430d1a983d54f97634a4c4c0b71e5d.tar.gz
markdown settings
how i hadn't added these already i've no idea
-rw-r--r--.vimrc74
1 files changed, 40 insertions, 34 deletions
diff --git a/.vimrc b/.vimrc
index cc0a29b..75625f7 100644
--- a/.vimrc
+++ b/.vimrc
@@ -223,33 +223,34 @@ autocmd BufNewFile,BufRead *.mips set filetype=mips
"other filetype-specific settings. i can't figure out how to stick all
"the FileTypes in one dict (mostly because i have no idea what i'm
"doing with viml), so separate lines it is.
-autocmd FileType asm call Settings_asm()
-autocmd FileType bash call Settings_shell()
-autocmd FileType c call Settings_c()
-autocmd FileType coffee call Settings_coffee()
-autocmd FileType conf call Settings_conf()
-autocmd FileType cpp call Settings_c()
-autocmd FileType css call Settings_css()
-autocmd FileType d call Settings_c()
-autocmd FileType elixir call Settings_elixir()
-autocmd FileType tex call Settings_tex()
-autocmd FileType haskell call Settings_haskell()
-autocmd FileType html call Settings_html()
-autocmd FileType xhtml call Settings_html()
-autocmd FileType make call Settings_script()
-autocmd FileType matlab call Settings_matlab()
-autocmd FileType mips call Settings_mips()
-autocmd FileType mkd call Settings_text()
-autocmd FileType perl call Settings_perl()
-autocmd FileType php call Settings_html()
-autocmd FileType python call Settings_script()
-autocmd FileType ruby call Settings_ruby()
-autocmd FileType rust call Settings_rust()
-autocmd FileType scss call Settings_css()
-autocmd FileType sh call Settings_script()
-autocmd FileType text call Settings_text()
-autocmd FileType vim call Settings_vim()
-autocmd FileType zsh call Settings_shell()
+autocmd FileType asm call Settings_asm()
+autocmd FileType bash call Settings_shell()
+autocmd FileType c call Settings_c()
+autocmd FileType coffee call Settings_coffee()
+autocmd FileType conf call Settings_conf()
+autocmd FileType cpp call Settings_c()
+autocmd FileType css call Settings_css()
+autocmd FileType d call Settings_c()
+autocmd FileType elixir call Settings_elixir()
+autocmd FileType tex call Settings_tex()
+autocmd FileType haskell call Settings_haskell()
+autocmd FileType html call Settings_html()
+autocmd FileType xhtml call Settings_html()
+autocmd FileType make call Settings_script()
+autocmd FileType markdown call Settings_markdown()
+autocmd FileType matlab call Settings_matlab()
+autocmd FileType mips call Settings_mips()
+autocmd FileType mkd call Settings_text()
+autocmd FileType perl call Settings_perl()
+autocmd FileType php call Settings_html()
+autocmd FileType python call Settings_script()
+autocmd FileType ruby call Settings_script()
+autocmd FileType rust call Settings_rust()
+autocmd FileType scss call Settings_css()
+autocmd FileType sh call Settings_script()
+autocmd FileType text call Settings_text()
+autocmd FileType vim call Settings_vim()
+autocmd FileType zsh call Settings_shell()
function! Settings_asm()
"settings
@@ -320,7 +321,18 @@ function! Settings_html()
setlocal tabstop=4
setlocal softtabstop=4
"mappings
- nnoremap <buffer> -- O<Space>--><Esc>hhhi<!--<Space>
+ nnoremap <buffer> -- O<Space>--><Esc>3hi<!--<Space>
+endfunction
+
+function! Settings_markdown()
+ "settings
+ setlocal shiftwidth=4
+ setlocal tabstop=4
+ setlocal softtabstop=4
+ setlocal nojoinspaces "single-space sentences
+ setlocal spell
+ "mappings
+ nnoremap <buffer> -- O<Space>--><Esc>3hi<!--<Space>
endfunction
function! Settings_matlab()
@@ -355,12 +367,6 @@ function! Settings_perl()
inoremap <buffer> {<CR> }<Esc>i{<CR><Esc>O
endfunction
-function! Settings_ruby()
- call Settings_script()
- nnoremap <buffer> <leader>r :execute "silent w !sonic_pi"<CR>
- nnoremap <buffer> <leader>s :execute "silent !sonic_pi stop"<CR><C-l>
-endfunction
-
function! Settings_rust()
call Settings_c()
nnoremap <buffer> -_ O///<Space>