Sha256: b4e0a5a0e300be8ea2bbaf5b22e9bcf2400128e48a142515832873d52172121c

Contents?: true

Size: 590 Bytes

Versions: 10

Compression:

Stored size: 590 Bytes

Contents

" This function prints the list of open files
" Usage:
" vim --servername "<server>" --remote-expr "watchtower#ls()"

" Make sure the function is loaded only once
if exists("loaded_watchtower_ls_function")
  finish
endif
let loaded_watchtower_ls_function = 1

" Provided by Marcin Szamotulski <mszamot@gmail.com>
" Modified by Wael Nasreddine <wael.nasreddine@gmail.com>
" http://groups.google.com/group/vim_use/msg/3dfb796c366b2e50
function! watchtower#ls()
  let list=[]
  for i in range(1, bufnr('$'))
    call add(list, fnamemodify(bufname(i), ':p'))
  endfor
  return list
endfunction

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
watch_tower-0.0.3 lib/watch_tower/editor/extensions/watchtower.vim
watch_tower-0.0.2 lib/watch_tower/editor/extensions/watchtower.vim
watch_tower-0.0.1 lib/watch_tower/editor/extensions/watchtower.vim
watch_tower-0.0.1.beta12 lib/watch_tower/editor/extensions/watchtower.vim
watch_tower-0.0.1.beta11 lib/watch_tower/editor/extensions/watchtower.vim
watch_tower-0.0.1.beta10 lib/watch_tower/editor/extensions/watchtower.vim
watch_tower-0.0.1.beta9 lib/watch_tower/editor/extensions/watchtower.vim
watch_tower-0.0.1.beta8 lib/watch_tower/editor/extensions/watchtower.vim
watch_tower-0.0.1.beta7 lib/watch_tower/editor/extensions/watchtower.vim
watch_tower-0.0.1.beta6 lib/watch_tower/editor/extensions/watchtower.vim