~gpanders/dotfiles

c33503ed3b497bfcafd00aec96f345a722594eee — Greg Anders 2 years ago 1035b07
Expand option short names in filetype configs
M vim/.vim/after/ftplugin/cmake.vim => vim/.vim/after/ftplugin/cmake.vim +1 -1
@@ 1,2 1,2 @@
" CMake
setlocal cms=#%s
setlocal commentstring=#%s

M vim/.vim/after/ftplugin/cpp.vim => vim/.vim/after/ftplugin/cpp.vim +5 -5
@@ 1,9 1,9 @@
" C / C++
setlocal sw=2
setlocal ts=2
setlocal sts=2
setlocal cms=//%s
setlocal cin
setlocal shiftwidth=2
setlocal tabstop=2
setlocal softtabstop=2
setlocal commentstring=//%s
setlocal cindent

if executable('clang-format')
  setlocal formatprg=clang-format

M vim/.vim/after/ftplugin/python.vim => vim/.vim/after/ftplugin/python.vim +8 -4
@@ 1,5 1,9 @@
" Python specific settings
setlocal sw=4
setlocal ts=4
setlocal sts=4 kp=pydoc
noremap <silent> <buffer> gz :botright sp <Bar> term python<CR>
setlocal shiftwidth=4
setlocal tabstop=4
setlocal softtabstop=4
setlocal keywordprg=pydoc

" gz opens a split window one-third the height of the main window with a
" python shell
noremap <expr> <buffer> gz ":botright ".winheight(0)/3."sp \<Bar> term python\<CR>"

M vim/.vim/after/ftplugin/vim.vim => vim/.vim/after/ftplugin/vim.vim +1 -1
@@ 1,2 1,2 @@
" Vim
setlocal fdm=marker
setlocal foldmethod=marker