File: session.vim

package info (click to toggle)
calibre 8.16.2%2Bds%2B~0.10.5-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 446,076 kB
  • sloc: python: 456,770; cpp: 151,500; ansic: 85,816; javascript: 57,787; xml: 1,247; sh: 957; sql: 735; objc: 330; makefile: 77; sed: 3
file content (27 lines) | stat: -rw-r--r-- 860 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
" Scan the following dirs (recursively for tags
let g:project_tags_dirs = ['src/calibre']

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.txt
    edit src/calibre/constants.py
endfun

nnoremap \log :call CalibreLog()<CR>