1
0
mirror of https://github.com/amix/vimrc synced 2025-08-03 19:54:59 +08:00

Updated plugins

This commit is contained in:
amix
2016-12-27 11:46:49 -03:00
parent 04abc6907c
commit a6de243fca
67 changed files with 2836 additions and 1097 deletions

View File

@ -1,7 +1,7 @@
let s:buf_nr = -1
"OpenWindow opens a new scratch window and put's the content into the window
function! go#ui#OpenWindow(title, content, filetype)
function! go#ui#OpenWindow(title, content, filetype) abort
" Ensure there's only one return window in this session/tabpage
call go#util#Windo("unlet! w:vim_go_return_window")
" Mark the window we're leaving as such
@ -54,7 +54,7 @@ function! go#ui#OpenWindow(title, content, filetype)
echon
endfunction
function! go#ui#GetReturnWindow()
function! go#ui#GetReturnWindow() abort
for l:wn in range(1, winnr("$"))
if !empty(getwinvar(l:wn, "vim_go_return_window"))
return l:wn
@ -63,7 +63,7 @@ function! go#ui#GetReturnWindow()
endfunction
" CloseWindow closes the current window
function! go#ui#CloseWindow()
function! go#ui#CloseWindow() abort
" Close any window associated with the ui buffer, if it's there
if bufexists(s:buf_nr)
let ui_window_number = bufwinnr(s:buf_nr)
@ -82,7 +82,7 @@ endfunction
" OpenDefinition parses the current line and jumps to it by openening a new
" tab
function! go#ui#OpenDefinition(filter)
function! go#ui#OpenDefinition(filter) abort
let curline = getline('.')
" don't touch our first line or any blank line