calibre/session.vim
Kovid Goyal 29cd8d64ea
Change shebangs to python from python2
Also remove a few other miscellaneous references to python2
2020-08-22 18:47:51 +05:30

40 lines
1.3 KiB
VimL

" Scan the following dirs (recursively for tags
let g:project_tags_dirs = ['src/calibre']
" Include directories for C++ modules
let g:syntastic_cpp_include_dirs = [
\'/usr/include/podofo',
\'/usr/include/qt/QtCore',
\'/usr/include/qt/QtGui',
\'/usr/include/qt',
\'/usr/include/freetype2',
\'/usr/include/fontconfig',
\]
let g:syntastic_c_include_dirs = g:syntastic_cpp_include_dirs
let g:syntastic_python_flake8_args = '--filename='. shellescape('*.py,*.recipe')
set wildignore+=resources/mathjax/*
set wildignore+=resources/rapydscript/lib/*
set wildignore+=build/*
set wildignore+=dist/*
set wildignore+=manual/generated/*
set wildignore+=manual/locale/*
set wildignore+=imgsrc/*
fun! CalibreLog()
" Setup buffers to edit the calibre changelog and version info prior to
" making a release.
enew
read ! git log "--pretty=\%an:::\%n\%s\%n\%b\%n" -500
setl nomodifiable noswapfile buftype=nofile
hi def link au Keyword
syntax match au /^.*:::$/
nnoremap <silent> <buffer> n :call cursor(1+search('\V:::\$', 'n'), 0)<CR>
nnoremap <silent> <buffer> yb v/#<CR>t<Space>y:nohl<CR>
normal! gg2j
edit Changelog.yaml
edit src/calibre/constants.py
endfun
nnoremap \log :call CalibreLog()<CR>