bairui

EditFileInList

Jul 8th, 2011
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 0.15 KB | None | 0 0
  1. function! EditFileInList()
  2.   let list = ['foo.c', 2, 10]
  3.   exe "edit " . list[0]
  4.   call setpos('.', [bufnr('%'), list[1], list[2], 0])
  5. endfunction
Advertisement
Add Comment
Please, Sign In to add comment