mirror of
https://github.com/gryf/.vim.git
synced 2025-12-17 11:30:29 +01:00
Usunięcie pozostałości po taglist, wyrzucenie niepotrzebnych funkcji z pluginu taglisttoo
This commit is contained in:
1149
doc/fuf.jax
1149
doc/fuf.jax
File diff suppressed because it is too large
Load Diff
1501
doc/taglist.txt
1501
doc/taglist.txt
File diff suppressed because it is too large
Load Diff
143
doc/tags-ja
143
doc/tags-ja
@@ -1,143 +0,0 @@
|
|||||||
!_TAG_FILE_ENCODING utf-8 //
|
|
||||||
:FufAddBookmark fuf.jax /*:FufAddBookmark*
|
|
||||||
:FufAddBookmarkAsSelectedText fuf.jax /*:FufAddBookmarkAsSelectedText*
|
|
||||||
:FufBookmark fuf.jax /*:FufBookmark*
|
|
||||||
:FufBuffer fuf.jax /*:FufBuffer*
|
|
||||||
:FufChangeList fuf.jax /*:FufChangeList*
|
|
||||||
:FufDir fuf.jax /*:FufDir*
|
|
||||||
:FufDirWithCurrentBufferDir fuf.jax /*:FufDirWithCurrentBufferDir*
|
|
||||||
:FufDirWithFullCwd fuf.jax /*:FufDirWithFullCwd*
|
|
||||||
:FufEditInfo fuf.jax /*:FufEditInfo*
|
|
||||||
:FufFile fuf.jax /*:FufFile*
|
|
||||||
:FufFileWithCurrentBufferDir fuf.jax /*:FufFileWithCurrentBufferDir*
|
|
||||||
:FufFileWithFullCwd fuf.jax /*:FufFileWithFullCwd*
|
|
||||||
:FufHelp fuf.jax /*:FufHelp*
|
|
||||||
:FufJumpList fuf.jax /*:FufJumpList*
|
|
||||||
:FufLine fuf.jax /*:FufLine*
|
|
||||||
:FufMruCmd fuf.jax /*:FufMruCmd*
|
|
||||||
:FufMruFile fuf.jax /*:FufMruFile*
|
|
||||||
:FufQuickfix fuf.jax /*:FufQuickfix*
|
|
||||||
:FufRenewCache fuf.jax /*:FufRenewCache*
|
|
||||||
:FufTag fuf.jax /*:FufTag*
|
|
||||||
:FufTagWithCursorWord fuf.jax /*:FufTagWithCursorWord*
|
|
||||||
:FufTaggedFile fuf.jax /*:FufTaggedFile*
|
|
||||||
abc fuf.jax /*abc*
|
|
||||||
fuf fuf.jax /*fuf*
|
|
||||||
fuf-abbreviation fuf.jax /*fuf-abbreviation*
|
|
||||||
fuf-about fuf.jax /*fuf-about*
|
|
||||||
fuf-author fuf.jax /*fuf-author*
|
|
||||||
fuf-bookmark-mode fuf.jax /*fuf-bookmark-mode*
|
|
||||||
fuf-buffer-mode fuf.jax /*fuf-buffer-mode*
|
|
||||||
fuf-cache fuf.jax /*fuf-cache*
|
|
||||||
fuf-callbackfile-mode fuf.jax /*fuf-callbackfile-mode*
|
|
||||||
fuf-callbackitem-mode fuf.jax /*fuf-callbackitem-mode*
|
|
||||||
fuf-changelist-mode fuf.jax /*fuf-changelist-mode*
|
|
||||||
fuf-commands fuf.jax /*fuf-commands*
|
|
||||||
fuf-contact fuf.jax /*fuf-contact*
|
|
||||||
fuf-detailed-topics fuf.jax /*fuf-detailed-topics*
|
|
||||||
fuf-dir-mode fuf.jax /*fuf-dir-mode*
|
|
||||||
fuf-dot-sequence fuf.jax /*fuf-dot-sequence*
|
|
||||||
fuf-file-mode fuf.jax /*fuf-file-mode*
|
|
||||||
fuf-givencmd-mode fuf.jax /*fuf-givencmd-mode*
|
|
||||||
fuf-givendir-mode fuf.jax /*fuf-givendir-mode*
|
|
||||||
fuf-givenfile-mode fuf.jax /*fuf-givenfile-mode*
|
|
||||||
fuf-help-mode fuf.jax /*fuf-help-mode*
|
|
||||||
fuf-hiding-menu fuf.jax /*fuf-hiding-menu*
|
|
||||||
fuf-information-file fuf.jax /*fuf-information-file*
|
|
||||||
fuf-installation fuf.jax /*fuf-installation*
|
|
||||||
fuf-introduction fuf.jax /*fuf-introduction*
|
|
||||||
fuf-jumplist-mode fuf.jax /*fuf-jumplist-mode*
|
|
||||||
fuf-line-mode fuf.jax /*fuf-line-mode*
|
|
||||||
fuf-migemo fuf.jax /*fuf-migemo*
|
|
||||||
fuf-modes fuf.jax /*fuf-modes*
|
|
||||||
fuf-mrucmd-mode fuf.jax /*fuf-mrucmd-mode*
|
|
||||||
fuf-mrufile-mode fuf.jax /*fuf-mrufile-mode*
|
|
||||||
fuf-multiple-search fuf.jax /*fuf-multiple-search*
|
|
||||||
fuf-options fuf.jax /*fuf-options*
|
|
||||||
fuf-options-for-Bookmark-mode fuf.jax /*fuf-options-for-Bookmark-mode*
|
|
||||||
fuf-options-for-all-modes fuf.jax /*fuf-options-for-all-modes*
|
|
||||||
fuf-options-for-buffer-mode fuf.jax /*fuf-options-for-buffer-mode*
|
|
||||||
fuf-options-for-changelist-mode fuf.jax /*fuf-options-for-changelist-mode*
|
|
||||||
fuf-options-for-dir-mode fuf.jax /*fuf-options-for-dir-mode*
|
|
||||||
fuf-options-for-file-mode fuf.jax /*fuf-options-for-file-mode*
|
|
||||||
fuf-options-for-help-mode fuf.jax /*fuf-options-for-help-mode*
|
|
||||||
fuf-options-for-jumplist-mode fuf.jax /*fuf-options-for-jumplist-mode*
|
|
||||||
fuf-options-for-line-mode fuf.jax /*fuf-options-for-line-mode*
|
|
||||||
fuf-options-for-mrucmd-mode fuf.jax /*fuf-options-for-mrucmd-mode*
|
|
||||||
fuf-options-for-mrufile-mode fuf.jax /*fuf-options-for-mrufile-mode*
|
|
||||||
fuf-options-for-quickfix-mode fuf.jax /*fuf-options-for-quickfix-mode*
|
|
||||||
fuf-options-for-tag-mode fuf.jax /*fuf-options-for-tag-mode*
|
|
||||||
fuf-options-for-taggedfile-mode fuf.jax /*fuf-options-for-taggedfile-mode*
|
|
||||||
fuf-quickfix-mode fuf.jax /*fuf-quickfix-mode*
|
|
||||||
fuf-reusing-window fuf.jax /*fuf-reusing-window*
|
|
||||||
fuf-search-patterns fuf.jax /*fuf-search-patterns*
|
|
||||||
fuf-sorting-of-completion-items fuf.jax /*fuf-sorting-of-completion-items*
|
|
||||||
fuf-tag-mode fuf.jax /*fuf-tag-mode*
|
|
||||||
fuf-taggedfile-mode fuf.jax /*fuf-taggedfile-mode*
|
|
||||||
fuf-usage fuf.jax /*fuf-usage*
|
|
||||||
fuf-vimrc-example fuf.jax /*fuf-vimrc-example*
|
|
||||||
fuf.jax fuf.jax /*fuf.jax*
|
|
||||||
fuzzyfinder fuf.jax /*fuzzyfinder*
|
|
||||||
g:fuf_abbrevMap fuf.jax /*g:fuf_abbrevMap*
|
|
||||||
g:fuf_bookmark_keyDelete fuf.jax /*g:fuf_bookmark_keyDelete*
|
|
||||||
g:fuf_bookmark_prompt fuf.jax /*g:fuf_bookmark_prompt*
|
|
||||||
g:fuf_bookmark_searchRange fuf.jax /*g:fuf_bookmark_searchRange*
|
|
||||||
g:fuf_bookmark_switchOrder fuf.jax /*g:fuf_bookmark_switchOrder*
|
|
||||||
g:fuf_buffer_mruOrder fuf.jax /*g:fuf_buffer_mruOrder*
|
|
||||||
g:fuf_buffer_prompt fuf.jax /*g:fuf_buffer_prompt*
|
|
||||||
g:fuf_buffer_switchOrder fuf.jax /*g:fuf_buffer_switchOrder*
|
|
||||||
g:fuf_changelist_prompt fuf.jax /*g:fuf_changelist_prompt*
|
|
||||||
g:fuf_changelist_switchOrder fuf.jax /*g:fuf_changelist_switchOrder*
|
|
||||||
g:fuf_dir_exclude fuf.jax /*g:fuf_dir_exclude*
|
|
||||||
g:fuf_dir_prompt fuf.jax /*g:fuf_dir_prompt*
|
|
||||||
g:fuf_dir_switchOrder fuf.jax /*g:fuf_dir_switchOrder*
|
|
||||||
g:fuf_enumeratingLimit fuf.jax /*g:fuf_enumeratingLimit*
|
|
||||||
g:fuf_file_exclude fuf.jax /*g:fuf_file_exclude*
|
|
||||||
g:fuf_file_prompt fuf.jax /*g:fuf_file_prompt*
|
|
||||||
g:fuf_file_switchOrder fuf.jax /*g:fuf_file_switchOrder*
|
|
||||||
g:fuf_help_cache_dir fuf.jax /*g:fuf_help_cache_dir*
|
|
||||||
g:fuf_help_prompt fuf.jax /*g:fuf_help_prompt*
|
|
||||||
g:fuf_help_switchOrder fuf.jax /*g:fuf_help_switchOrder*
|
|
||||||
g:fuf_ignoreCase fuf.jax /*g:fuf_ignoreCase*
|
|
||||||
g:fuf_infoFile fuf.jax /*g:fuf_infoFile*
|
|
||||||
g:fuf_jumplist_prompt fuf.jax /*g:fuf_jumplist_prompt*
|
|
||||||
g:fuf_jumplist_switchOrder fuf.jax /*g:fuf_jumplist_switchOrder*
|
|
||||||
g:fuf_keyNextMode fuf.jax /*g:fuf_keyNextMode*
|
|
||||||
g:fuf_keyNextPattern fuf.jax /*g:fuf_keyNextPattern*
|
|
||||||
g:fuf_keyOpen fuf.jax /*g:fuf_keyOpen*
|
|
||||||
g:fuf_keyOpenSplit fuf.jax /*g:fuf_keyOpenSplit*
|
|
||||||
g:fuf_keyOpenTabpage fuf.jax /*g:fuf_keyOpenTabpage*
|
|
||||||
g:fuf_keyOpenVsplit fuf.jax /*g:fuf_keyOpenVsplit*
|
|
||||||
g:fuf_keyPrevMode fuf.jax /*g:fuf_keyPrevMode*
|
|
||||||
g:fuf_keyPrevPattern fuf.jax /*g:fuf_keyPrevPattern*
|
|
||||||
g:fuf_keyPreview fuf.jax /*g:fuf_keyPreview*
|
|
||||||
g:fuf_keySwitchMatching fuf.jax /*g:fuf_keySwitchMatching*
|
|
||||||
g:fuf_learningLimit fuf.jax /*g:fuf_learningLimit*
|
|
||||||
g:fuf_line_prompt fuf.jax /*g:fuf_line_prompt*
|
|
||||||
g:fuf_line_switchOrder fuf.jax /*g:fuf_line_switchOrder*
|
|
||||||
g:fuf_maxMenuWidth fuf.jax /*g:fuf_maxMenuWidth*
|
|
||||||
g:fuf_modesDisable fuf.jax /*g:fuf_modesDisable*
|
|
||||||
g:fuf_mrucmd_exclude fuf.jax /*g:fuf_mrucmd_exclude*
|
|
||||||
g:fuf_mrucmd_maxItem fuf.jax /*g:fuf_mrucmd_maxItem*
|
|
||||||
g:fuf_mrucmd_prompt fuf.jax /*g:fuf_mrucmd_prompt*
|
|
||||||
g:fuf_mrucmd_switchOrder fuf.jax /*g:fuf_mrucmd_switchOrder*
|
|
||||||
g:fuf_mrufile_exclude fuf.jax /*g:fuf_mrufile_exclude*
|
|
||||||
g:fuf_mrufile_maxItem fuf.jax /*g:fuf_mrufile_maxItem*
|
|
||||||
g:fuf_mrufile_prompt fuf.jax /*g:fuf_mrufile_prompt*
|
|
||||||
g:fuf_mrufile_switchOrder fuf.jax /*g:fuf_mrufile_switchOrder*
|
|
||||||
g:fuf_patternSeparator fuf.jax /*g:fuf_patternSeparator*
|
|
||||||
g:fuf_previewHeight fuf.jax /*g:fuf_previewHeight*
|
|
||||||
g:fuf_promptHighlight fuf.jax /*g:fuf_promptHighlight*
|
|
||||||
g:fuf_quickfix_prompt fuf.jax /*g:fuf_quickfix_prompt*
|
|
||||||
g:fuf_quickfix_switchOrder fuf.jax /*g:fuf_quickfix_switchOrder*
|
|
||||||
g:fuf_reuseWindow fuf.jax /*g:fuf_reuseWindow*
|
|
||||||
g:fuf_smartBs fuf.jax /*g:fuf_smartBs*
|
|
||||||
g:fuf_splitPathMatching fuf.jax /*g:fuf_splitPathMatching*
|
|
||||||
g:fuf_tag_cache_dir fuf.jax /*g:fuf_tag_cache_dir*
|
|
||||||
g:fuf_tag_prompt fuf.jax /*g:fuf_tag_prompt*
|
|
||||||
g:fuf_tag_switchOrder fuf.jax /*g:fuf_tag_switchOrder*
|
|
||||||
g:fuf_taggedfile_cache_dir fuf.jax /*g:fuf_taggedfile_cache_dir*
|
|
||||||
g:fuf_taggedfile_prompt fuf.jax /*g:fuf_taggedfile_prompt*
|
|
||||||
g:fuf_taggedfile_switchOrder fuf.jax /*g:fuf_taggedfile_switchOrder*
|
|
||||||
g:fuf_timeFormat fuf.jax /*g:fuf_timeFormat*
|
|
||||||
g:fuf_useMigemo fuf.jax /*g:fuf_useMigemo*
|
|
||||||
@@ -111,17 +111,6 @@ endif
|
|||||||
let s:show_current_error_displaying = 0
|
let s:show_current_error_displaying = 0
|
||||||
" }}}
|
" }}}
|
||||||
|
|
||||||
" Balloon(message) eclim/autoload/eclim/util.vim {{{2
|
|
||||||
" Function for use as a vim balloonexpr expression.
|
|
||||||
function! Balloon(message)
|
|
||||||
let message = a:message
|
|
||||||
if !has('balloon_multiline')
|
|
||||||
" remove any new lines
|
|
||||||
let message = substitute(message, '\n', ' ', 'g')
|
|
||||||
endif
|
|
||||||
return message
|
|
||||||
endfunction " }}}
|
|
||||||
|
|
||||||
" DelayedCommand(command, [delay]) eclim/autoload/eclim/util.vim {{{2
|
" DelayedCommand(command, [delay]) eclim/autoload/eclim/util.vim {{{2
|
||||||
" Executes a delayed command. Useful in cases where one would expect an
|
" Executes a delayed command. Useful in cases where one would expect an
|
||||||
" autocommand event (WinEnter, etc) to fire, but doesn't, or you need a
|
" autocommand event (WinEnter, etc) to fire, but doesn't, or you need a
|
||||||
@@ -156,11 +145,6 @@ function! EchoTrace(message, ...)
|
|||||||
endif
|
endif
|
||||||
endfunction " }}}
|
endfunction " }}}
|
||||||
|
|
||||||
" EchoWarning(message) eclim/autoload/eclim/util.vim {{{2
|
|
||||||
function! EchoWarning(message)
|
|
||||||
call s:EchoLevel(a:message, 3, g:EclimWarningHighlight)
|
|
||||||
endfunction " }}}
|
|
||||||
|
|
||||||
" EchoError(message) eclim/autoload/eclim/util.vim {{{2
|
" EchoError(message) eclim/autoload/eclim/util.vim {{{2
|
||||||
function! EchoError(message)
|
function! EchoError(message)
|
||||||
call s:EchoLevel(a:message, 2, g:EclimErrorHighlight)
|
call s:EchoLevel(a:message, 2, g:EclimErrorHighlight)
|
||||||
@@ -181,19 +165,6 @@ function! s:EchoLevel(message, level, highlight)
|
|||||||
endif
|
endif
|
||||||
endfunction " }}}
|
endfunction " }}}
|
||||||
|
|
||||||
" Echo(message) eclim/autoload/eclim/util.vim {{{2
|
|
||||||
" Echos a message using the info highlight regardless of what log level is set.
|
|
||||||
function! Echo(message)
|
|
||||||
if a:message != "0" && g:EclimLogLevel > 0
|
|
||||||
exec "echohl " . g:EclimInfoHighlight
|
|
||||||
redraw
|
|
||||||
for line in split(a:message, '\n')
|
|
||||||
echom line
|
|
||||||
endfor
|
|
||||||
echohl None
|
|
||||||
endif
|
|
||||||
endfunction " }}}
|
|
||||||
|
|
||||||
" EscapeBufferName(name) eclim/autoload/eclim/util.vim {{{2
|
" EscapeBufferName(name) eclim/autoload/eclim/util.vim {{{2
|
||||||
" Escapes the supplied buffer name so that it can be safely used by buf*
|
" Escapes the supplied buffer name so that it can be safely used by buf*
|
||||||
" functions.
|
" functions.
|
||||||
@@ -281,27 +252,6 @@ function! GoToBufferWindow(buf)
|
|||||||
return 0
|
return 0
|
||||||
endfunction " }}}
|
endfunction " }}}
|
||||||
|
|
||||||
" GoToBufferWindowOrOpen(name, cmd) eclim/autoload/eclim/util.vim {{{2
|
|
||||||
" Gives focus to the window containing the buffer for the supplied file, or if
|
|
||||||
" none, opens the file using the supplied command.
|
|
||||||
function! GoToBufferWindowOrOpen(name, cmd)
|
|
||||||
let name = EscapeBufferName(a:name)
|
|
||||||
let winnr = bufwinnr(bufnr('^' . name))
|
|
||||||
if winnr != -1
|
|
||||||
exec winnr . "winc w"
|
|
||||||
call DelayedCommand('doautocmd WinEnter')
|
|
||||||
else
|
|
||||||
let cmd = a:cmd
|
|
||||||
" if splitting and the buffer is a unamed empty buffer, then switch to an
|
|
||||||
" edit.
|
|
||||||
if cmd == 'split' && expand('%') == '' &&
|
|
||||||
\ !&modified && line('$') == 1 && getline(1) == ''
|
|
||||||
let cmd = 'edit'
|
|
||||||
endif
|
|
||||||
silent exec cmd . ' ' . escape(Simplify(a:name), ' ')
|
|
||||||
endif
|
|
||||||
endfunction " }}}
|
|
||||||
|
|
||||||
" GoToBufferWindowRegister(buf) eclim/autoload/eclim/util.vim {{{2
|
" GoToBufferWindowRegister(buf) eclim/autoload/eclim/util.vim {{{2
|
||||||
" Registers the autocmd for returning the user to the supplied buffer when the
|
" Registers the autocmd for returning the user to the supplied buffer when the
|
||||||
" current buffer is closed.
|
" current buffer is closed.
|
||||||
@@ -311,153 +261,6 @@ function! GoToBufferWindowRegister(buf)
|
|||||||
\ 'doautocmd BufEnter'
|
\ 'doautocmd BufEnter'
|
||||||
endfunction " }}}
|
endfunction " }}}
|
||||||
|
|
||||||
" SetLocationList(list, [action]) eclim/autoload/eclim/util.vim {{{2
|
|
||||||
" Sets the contents of the location list for the current window.
|
|
||||||
function! SetLocationList(list, ...)
|
|
||||||
let loclist = a:list
|
|
||||||
|
|
||||||
" filter the list if the current buffer defines a list of filters.
|
|
||||||
if exists('b:EclimLocationListFilter')
|
|
||||||
let newlist = []
|
|
||||||
for item in loclist
|
|
||||||
let addit = 1
|
|
||||||
|
|
||||||
for filter in b:EclimLocationListFilter
|
|
||||||
if item.text =~ filter
|
|
||||||
let addit = 0
|
|
||||||
break
|
|
||||||
endif
|
|
||||||
endfor
|
|
||||||
|
|
||||||
if addit
|
|
||||||
call add(newlist, item)
|
|
||||||
endif
|
|
||||||
endfor
|
|
||||||
let loclist = newlist
|
|
||||||
endif
|
|
||||||
|
|
||||||
if a:0 == 0
|
|
||||||
call setloclist(0, loclist)
|
|
||||||
else
|
|
||||||
call setloclist(0, loclist, a:1)
|
|
||||||
endif
|
|
||||||
if g:EclimShowCurrentError && len(loclist) > 0
|
|
||||||
call DelayedCommand('call ShowCurrentError()')
|
|
||||||
endif
|
|
||||||
call s:SignsUpdate()
|
|
||||||
endfunction " }}}
|
|
||||||
|
|
||||||
" ClearLocationList([namespace, namespace, ...]) eclim/autoload/eclim/util.vim {{{2
|
|
||||||
" Clears the current location list. Optionally 'namespace' arguments can be
|
|
||||||
" supplied which will only clear items with text prefixed with '[namespace]'.
|
|
||||||
" Also the special namespace 'global' may be supplied which will only remove
|
|
||||||
" items with no namepace prefix.
|
|
||||||
function! ClearLocationList(...)
|
|
||||||
if a:0 > 0
|
|
||||||
let loclist = getloclist(0)
|
|
||||||
if len(loclist) > 0
|
|
||||||
let pattern = ''
|
|
||||||
for ns in a:000
|
|
||||||
if pattern != ''
|
|
||||||
let pattern .= '\|'
|
|
||||||
endif
|
|
||||||
if ns == 'global'
|
|
||||||
let pattern .= '\(\[\w\+\]\)\@!'
|
|
||||||
else
|
|
||||||
let pattern .= '\[' . ns . '\]'
|
|
||||||
endif
|
|
||||||
endfor
|
|
||||||
let pattern = '^\(' . pattern . '\)'
|
|
||||||
|
|
||||||
call filter(loclist, 'v:val.text !~ pattern')
|
|
||||||
call setloclist(0, loclist, 'r')
|
|
||||||
endif
|
|
||||||
else
|
|
||||||
call setloclist(0, [], 'r')
|
|
||||||
endif
|
|
||||||
call s:SignsUpdate()
|
|
||||||
endfunction " }}}
|
|
||||||
|
|
||||||
" SetQuickfixList(list, [action]) eclim/autoload/eclim/util.vim {{{2
|
|
||||||
" Sets the contents of the quickfix list.
|
|
||||||
function! SetQuickfixList(list, ...)
|
|
||||||
let qflist = a:list
|
|
||||||
if exists('b:EclimQuickfixFilter')
|
|
||||||
let newlist = []
|
|
||||||
for item in qflist
|
|
||||||
let addit = 1
|
|
||||||
|
|
||||||
for filter in b:EclimQuickfixFilter
|
|
||||||
if item.text =~ filter
|
|
||||||
let addit = 0
|
|
||||||
break
|
|
||||||
endif
|
|
||||||
endfor
|
|
||||||
|
|
||||||
if addit
|
|
||||||
call add(newlist, item)
|
|
||||||
endif
|
|
||||||
endfor
|
|
||||||
let qflist = newlist
|
|
||||||
endif
|
|
||||||
if a:0 == 0
|
|
||||||
call setqflist(qflist)
|
|
||||||
else
|
|
||||||
call setqflist(qflist, a:1)
|
|
||||||
endif
|
|
||||||
if g:EclimShowCurrentError && len(qflist) > 0
|
|
||||||
call DelayedCommand('call ShowCurrentError()')
|
|
||||||
endif
|
|
||||||
call s:SignsUpdate()
|
|
||||||
endfunction " }}}
|
|
||||||
|
|
||||||
" ShowCurrentError() eclim/autoload/eclim/util.vim {{{2
|
|
||||||
" Shows the error on the cursor line if one.
|
|
||||||
function! ShowCurrentError()
|
|
||||||
let message = GetLineError(line('.'))
|
|
||||||
if message != ''
|
|
||||||
" remove any new lines
|
|
||||||
let message = substitute(message, '\n', ' ', 'g')
|
|
||||||
|
|
||||||
if len(message) > (&columns - 1)
|
|
||||||
let message = strpart(message, 0, &columns - 4) . '...'
|
|
||||||
endif
|
|
||||||
|
|
||||||
call WideMessage('echo', message)
|
|
||||||
let s:show_current_error_displaying = 1
|
|
||||||
else
|
|
||||||
" clear the message if one of our error messages was displaying
|
|
||||||
if s:show_current_error_displaying
|
|
||||||
call WideMessage('echo', message)
|
|
||||||
let s:show_current_error_displaying = 0
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
endfunction " }}}
|
|
||||||
|
|
||||||
" Simplify(file) eclim/autoload/eclim/util.vim {{{2
|
|
||||||
" Simply the supplied file to the shortest valid name.
|
|
||||||
function! Simplify(file)
|
|
||||||
let file = a:file
|
|
||||||
|
|
||||||
" Don't run simplify on url files, it will screw them up.
|
|
||||||
if file !~ '://'
|
|
||||||
let file = simplify(file)
|
|
||||||
endif
|
|
||||||
|
|
||||||
" replace all '\' chars with '/' except those escaping spaces.
|
|
||||||
let file = substitute(file, '\\\([^[:space:]]\)', '/\1', 'g')
|
|
||||||
let cwd = substitute(getcwd(), '\', '/', 'g')
|
|
||||||
if cwd !~ '/$'
|
|
||||||
let cwd .= '/'
|
|
||||||
endif
|
|
||||||
|
|
||||||
if file =~ '^' . cwd
|
|
||||||
let file = substitute(file, '^' . cwd, '', '')
|
|
||||||
endif
|
|
||||||
|
|
||||||
return file
|
|
||||||
endfunction " }}}
|
|
||||||
|
|
||||||
" System(cmd, [exec]) eclim/autoload/eclim/util.vim {{{2
|
" System(cmd, [exec]) eclim/autoload/eclim/util.vim {{{2
|
||||||
" Executes system() accounting for possibly disruptive vim options.
|
" Executes system() accounting for possibly disruptive vim options.
|
||||||
function! System(cmd, ...)
|
function! System(cmd, ...)
|
||||||
@@ -545,106 +348,6 @@ function! System(cmd, ...)
|
|||||||
return result
|
return result
|
||||||
endfunction " }}}
|
endfunction " }}}
|
||||||
|
|
||||||
" TempWindow(name, lines, [readonly]) eclim/autoload/eclim/util.vim {{{2
|
|
||||||
" Opens a temp window w/ the given name and contents which is readonly unless
|
|
||||||
" specified otherwise.
|
|
||||||
function! TempWindow(name, lines, ...)
|
|
||||||
let filename = expand('%:p')
|
|
||||||
let winnr = winnr()
|
|
||||||
|
|
||||||
call TempWindowClear(a:name)
|
|
||||||
let name = EscapeBufferName(a:name)
|
|
||||||
|
|
||||||
if bufwinnr(name) == -1
|
|
||||||
silent! noautocmd exec "botright 10sview " . escape(a:name, ' ')
|
|
||||||
let b:eclim_temp_window = 1
|
|
||||||
|
|
||||||
" play nice with maximize.vim
|
|
||||||
"if eclim#display#maximize#GetMaximizedWindow()
|
|
||||||
" call eclim#display#maximize#AdjustFixedWindow(10, 1)
|
|
||||||
"endif
|
|
||||||
|
|
||||||
setlocal nowrap
|
|
||||||
setlocal winfixheight
|
|
||||||
setlocal noswapfile
|
|
||||||
setlocal nobuflisted
|
|
||||||
setlocal buftype=nofile
|
|
||||||
setlocal bufhidden=delete
|
|
||||||
else
|
|
||||||
exec bufwinnr(name) . "winc w"
|
|
||||||
endif
|
|
||||||
|
|
||||||
setlocal modifiable
|
|
||||||
setlocal noreadonly
|
|
||||||
call append(1, a:lines)
|
|
||||||
retab
|
|
||||||
silent 1,1delete _
|
|
||||||
|
|
||||||
if len(a:000) == 0 || a:000[0]
|
|
||||||
setlocal nomodified
|
|
||||||
setlocal nomodifiable
|
|
||||||
setlocal readonly
|
|
||||||
endif
|
|
||||||
|
|
||||||
silent doautocmd BufEnter
|
|
||||||
|
|
||||||
" Store filename and window number so that plugins can use it if necessary.
|
|
||||||
if filename != expand('%:p')
|
|
||||||
let b:filename = filename
|
|
||||||
let b:winnr = winnr
|
|
||||||
|
|
||||||
augroup eclim_temp_window
|
|
||||||
autocmd! BufWinLeave <buffer>
|
|
||||||
call GoToBufferWindowRegister(b:filename)
|
|
||||||
augroup END
|
|
||||||
endif
|
|
||||||
endfunction " }}}
|
|
||||||
|
|
||||||
" TempWindowClear(name) eclim/autoload/eclim/util.vim {{{2
|
|
||||||
" Clears the contents of the temp window with the given name.
|
|
||||||
function! TempWindowClear(name)
|
|
||||||
let name = EscapeBufferName(a:name)
|
|
||||||
if bufwinnr(name) != -1
|
|
||||||
let curwinnr = winnr()
|
|
||||||
exec bufwinnr(name) . "winc w"
|
|
||||||
setlocal modifiable
|
|
||||||
setlocal noreadonly
|
|
||||||
silent 1,$delete _
|
|
||||||
exec curwinnr . "winc w"
|
|
||||||
endif
|
|
||||||
endfunction " }}}
|
|
||||||
|
|
||||||
" WideMessage(command, message) eclim/autoload/eclim/util.vim {{{2
|
|
||||||
" Executes the supplied echo command and forces vim to display as much as
|
|
||||||
" possible without the "Press Enter" prompt.
|
|
||||||
" Thanks to vimtip #1289
|
|
||||||
function! WideMessage(command, message)
|
|
||||||
let saved_ruler = &ruler
|
|
||||||
let saved_showcmd = &showcmd
|
|
||||||
|
|
||||||
let message = substitute(a:message, '^\s\+', '', '')
|
|
||||||
|
|
||||||
set noruler noshowcmd
|
|
||||||
redraw
|
|
||||||
exec a:command . ' "' . escape(message, '"\') . '"'
|
|
||||||
|
|
||||||
let &ruler = saved_ruler
|
|
||||||
let &showcmd = saved_showcmd
|
|
||||||
endfunction " }}}
|
|
||||||
|
|
||||||
" WillWrittenBufferClose() eclim/autoload/eclim/util.vim {{{2
|
|
||||||
" Returns 1 if the current buffer is to be hidden/closed/deleted after it is
|
|
||||||
" written, or 0 otherwise. This function is useful during a post write auto
|
|
||||||
" command for determining whether or not to perform some operation based on
|
|
||||||
" whether the buffer will still be visible to the user once the current
|
|
||||||
" command has finished.
|
|
||||||
" Note: This function only detects command typed by the user at the
|
|
||||||
" command (:) prompt, not any normal mappings which may hide/close/delete the
|
|
||||||
" buffer.
|
|
||||||
function! WillWrittenBufferClose()
|
|
||||||
return histget("cmd") =~ s:buffer_write_closing_commands
|
|
||||||
endfunction " }}}
|
|
||||||
|
|
||||||
" End Util: }}}
|
" End Util: }}}
|
||||||
|
|
||||||
" TagListToo: {{{1
|
" TagListToo: {{{1
|
||||||
|
|||||||
Reference in New Issue
Block a user