Skip to content

Instantly share code, notes, and snippets.

" don't close window, when deleting a buffer
command! Bclose call <SID>BufcloseCloseIt()
fu! <SID>BufcloseCloseIt()
let l:currentBufNum = bufnr("%")
let l:alternateBufNum = bufnr("#")
if buflisted(l:alternateBufNum)
buffer #
else
fun! GetSnippets(dir)
let snippetFiles = split(globpath(expand(a:dir), '**/*.snippet'), '\n')
for fullpath in snippetFiles
let tail = strpart(fullpath, strlen(expand(a:dir)))
let ft = substitute(tail, '^/\([^/]*\).*', '\1', '')
let keyword = substitute(tail, '^/[^/]*\(.*\)', '\1', '')
if !exists('g:did_ft_{ft}')
call ExtractSnips(fullpath, ft)
function! s:Marker.addRevlookup(lnum, index, istab)
" get current list of tabstops per line
if !exists('s:Marker.revlookup[a:lnum]')
if a:istab
let lookupList = {'tab': [a:index], 'ph': []}
else
let lookupList = {'tab': [], 'ph': [a:index]}
endif
let s:Marker.revlookup = lookupList
let s:Marker = {}
let s:Marker.revlookup = {}
function! s:Marker.addRevlookup(lnum, index, istab)
" get current list of tabstops per line
if !exists('s:Marker.revlookup[a:lnum]')
if a:istab
let lookupList = {'tab': [a:index], 'ph': []}
else
let lookupList = {'tab': [], 'ph': [a:index]}
endif
***** automake *****
***** PWD: /opt/local/gentoo/var/tmp/portage/dev-libs/glib-2.20.1-r1/work/glib-2.20.1
***** automake --add-missing --copy
gtk-doc.make:7: GTK_DOC_USE_LIBTOOL does not appear in AM_CONDITIONAL
docs/reference/gio/Makefile.am:107: `gtk-doc.make' included from here
gtk-doc.make:50: ENABLE_GTK_DOC does not appear in AM_CONDITIONAL
docs/reference/gio/Makefile.am:107: `gtk-doc.make' included from here
gtk-doc.make:175: ENABLE_GTK_DOC does not appear in AM_CONDITIONAL
docs/reference/gio/Makefile.am:107: `gtk-doc.make' included from here
fun! Test123()
return 3
endf
fun! Test123()
return 3
endf
fun! Test123()
return 3
endf
fun! Test123()
return 3
endf
fun! Test123()
return 3
endf