diff --git a/.vimrc b/.vimrc index def50fe..c63651b 100644 --- a/.vimrc +++ b/.vimrc @@ -219,6 +219,7 @@ function SetIdentWidth() endfunction noremap i :call SetIdentWidth() +noremap r :call ToggleRelative() " Automatically user relative lines when not in insert mode " au InsertLeave * :set relativenumber @@ -255,3 +256,5 @@ endif digraphs \- 8866 digraphs -\ 8867 +" Markdown +let g:markdown_fenced_languages = ['python', 'typescript', 'javascript', 'haskell'] diff --git a/after/ftplugin/cabal.vim b/after/ftplugin/cabal.vim new file mode 100644 index 0000000..364956a --- /dev/null +++ b/after/ftplugin/cabal.vim @@ -0,0 +1 @@ +set expandtab softtabstop=4 shiftwidth=4 diff --git a/after/ftplugin/ocaml.vim b/after/ftplugin/ocaml.vim new file mode 100644 index 0000000..2af1cf3 --- /dev/null +++ b/after/ftplugin/ocaml.vim @@ -0,0 +1 @@ +set expandtab shiftwidth=2 tabstop=2 diff --git a/after/indent/c.vim b/after/indent/c.vim new file mode 100644 index 0000000..5996981 --- /dev/null +++ b/after/indent/c.vim @@ -0,0 +1 @@ +set cinoptions=(4