formatoptions + = a의 태그 파일에서 작업을 중지합니다

10180 단어 vim-endwise

묘사

endwise를 사용하여 태그 파일을 편집할 때 fo가 포함되면 새 줄을 만들지 않습니다.이 플러그인을 실행하기 위해 누드vimrc 파일을 사용해 보았고formatoptions를 'a' 로 설정했습니다.

토론 #1

의 최종 가치는 얼마입니까?'fo'atcqln
2014년 10월 29일 수요일 오후 12:42, 짐 보프[email protected]쓰기:

What is the end value of 'fo'?

— Reply to this email directly or view it on GitHub https://github.com/tpope/vim-endwise/issues/69#issuecomment-60969872.

토론 #2

태그 파일 유형 이외에 같은

토론 #셋

를 설정하면 문제가 발생합니까?'fo' 좋은 질문입니다.더 재미있는 행동.
파일 형식vim
fo:ncroqla
설명 줄을 클릭하면 줄 바꿈 (끊기) 이 생성되지 않습니다
동작)."행의 시작 부분에 전체 행이 주석으로 표시됩니다.
비평론 줄을 클릭하고 예상대로 일하세요.
2014년 10월 29일 수요일 오후 12:52, 짐 보프[email protected]쓰기:

And does the problem happen if you set the same 'fo' outside of a markdown file type?

— Reply to this email directly or view it on GitHub https://github.com/tpope/vim-endwise/issues/69#issuecomment-60971728.

토론 #4

나 자신을 테스트할 때 새 줄이 삽입되었지만 다음 단어를 입력할 때 다시 연결됩니다.나는 너의 Vim 버전에 빈틈이 있다고 의심한다.어쨌든, 나는 이것이 가격 인하를 겨냥한 것이라는 어떠한 증거도 볼 수 없다.

토론 #5

사용 중:
VIM-Vi가 7.4 향상(2013년 8월 10일, 2014년 4월 21일 14:54:22)
MacOS X 버전
패치 포함: 1-258
사용 가능한 최신 사전 컴파일된 MacVim의 일부입니다.
나는 네가 사용한 것이 Vim의 최신 버전이라고 추측한다. 그렇지?

토론 #6

나는 7.4.273과 7.4.007을 설치했는데 이 두 판본은 모두 설명에 따라 일한다.

토론 #7

CR이 작동하지 않는 상황에서도 나는 여전히 이 문제가 존재한다.vim 7.4.488을 실행합니다.endwise 플러그인 맵을 보았지만, 복구해야 할 곳이 있는지 모르겠습니다.내가 최근에 7.4.258에서vim를 업그레이드한 것도 문제다.
다음은 캡처입니다.http://youtu.be/SUQ1W4hWFCQ
vimrc 파일:
set nocompatible
set viminfo+=n~/.cache/viminfo
source ~/.vim/bundle/vim-endwise/plugin/endwise.vim

토론 #8

vim의 로그 파일 - V20log test.txt (형식 옵션 tcqa, 파손됨)...

chdir(/usr/local/share/vim)
fchdir() to previous dir
could not source "$VIM/vimrc"
chdir(/usr/local/share/vim/vim74)
fchdir() to previous dir
could not source "$VIMRUNTIME/macmap.vim"
chdir(/Users/Glenn)
fchdir() to previous dir
could not source "$HOME/.vimrc"
chdir(/Users/Glenn/.vim)
fchdir() to previous dir
sourcing "~/.vim/vimrc"
line 1: set nocompatible 
line 2: set viminfo+=n~/.cache/viminfo
line 3: source ~/.vim/bundle/vim-endwise/plugin/endwise.vim
chdir(/Users/Glenn/.vim/bundle/vim-endwise/plugin)
fchdir() to previous dir
line 3: sourcing "/Users/Glenn/.vim/bundle/vim-endwise/plugin/endwise.vim"
line 1: " Location:     plugin/endwise.vim
line 2: " Author:       Tim Pope <http://tpo.pe/>
line 3: " Version:      1.2
line 4: " License:      Same as Vim itself.  See :help license
line 5: " GetLatestVimScripts: 2386 1 :AutoInstall: endwise.vim
line 6: 
line 7: if exists("g:loaded_endwise") || &cp
line 8:   finish
line 9: endif
line 10: let g:loaded_endwise = 1
line 11: 
line 12: augroup endwise " {{{1
line 13:   autocmd!
line 18:   autocmd FileType lua let b:endwise_addition = 'end' | let b:endwise_words = 'function,do,then' | let b:endwise_pattern = '^\s*\zs\%(\%(local\s\+\)\=function\)\>\%(.*\<end\>\)\@!\|\<\%(then\|do\)\ze\s*$' | let b:endwise_syngroups = 'luaFunction,luaStatement,luaCond'
line 23:   autocmd FileType elixir let b:endwise_addition = 'end' | let b:endwise_words = 'do,fn' | let b:endwise_pattern = '.*[^.:@$]\zs\<\%(do\(:\)\@!\|fn\)\>\ze\%(.*[^.:@$]\<end\>\)\@!' | let b:endwise_syngroups = 'elixirKeyword'
line 28:   autocmd FileType ruby let b:endwise_addition = 'end' | let b:endwise_words = 'module,class,def,if,unless,case,while,until,begin,do' | let b:endwise_pattern = '^\(.*=\)\?\s*\%(private\s\+\|protected\s\+\|public\s\+\|module_function\s\+\)*\zs\%(module\|class\|def\|if\|unless\|case\|while\|until\|for\|\|begin\)\>\%(.*[^.:@$]\<end\>\)\@!\|\<do\ze\%(\s*|.*|\)\=\s*$' | let b:endwise_syngroups = 'rubyModule,rubyClass,rubyDefine,rubyControl,rubyConditional,rubyRepeat'
line 33:   autocmd FileType crystal let b:endwise_addition = 'end' | let b:endwise_words = 'module,class,lib,macro,struct,union,enum,def,if,unless,ifdef,case,while,until,for,begin,do' | let b:endwise_pattern = '^\(.*=\)\?\s*\%(private\s\+\|protected\s\+\|public\s\+\|abstract\s\+\)*\zs\%(module\|class\|lib\|macro\|struct\|union\|enum\|def\|if\|unless\|ifdef\|case\|while\|until\|for\|begin\)\>\%(.*[^.:@$]\<end\>\)\@!\|\<do\ze\%(\s*|.*|\)\=\s*$' | let b:endwise_syngroups = 'crystalModule,crystalClass,crystalLib,crystalMacro,crystalStruct,crystalDefine,crystalConditional,crystalRepeat,crystalControl'
line 38:   autocmd FileType sh,zsh let b:endwise_addition = '\=submatch(0)=="then" ? "fi" : submatch(0)=="case" ? "esac" : "done"' | let b:endwise_words = 'then,case,do' | let b:endwise_pattern = '\%(^\s*\zscase\>\ze\|\zs\<\%(do\|then\)\ze\s*$\)' | let b:endwise_syngroups = 'shConditional,shLoop,shIf,shFor,shRepeat,shCaseEsac,zshConditional,zshRepeat,zshDelimiter'
line 43:   autocmd FileType vb,vbnet,aspvbs let b:endwise_addition = 'End &' | let b:endwise_words = 'Function,Sub,Class,Module,Enum,Namespace' | let b:endwise_pattern = '\%(\<End\>.*\)\@<!\<&\>' | let b:endwise_syngroups = 'vbStatement,vbnetStorage,vbnetProcedure,vbnet.*Words,AspVBSStatement'
line 47:   autocmd FileType vim let b:endwise_addition = 'end&' | let b:endwise_words = 'fu,fun,func,function,wh,while,if,for,try' | let b:endwise_syngroups = 'vimFuncKey,vimNotFunc,vimCommand'
line 52:   autocmd FileType c,cpp,xdefaults let b:endwise_addition = '#endif' | let b:endwise_words = 'if,ifdef,ifndef' | let b:endwise_pattern = '^\s*#\%(if\|ifdef\|ifndef\)\>' | let b:endwise_syngroups = 'cPreCondit,cPreConditMatch,cCppInWrapper,xdefaultsPreProc'
line 57:   autocmd FileType objc let b:endwise_addition = '@end' | let b:endwise_words = 'interface,implementation' | let b:endwise_pattern = '^\s*@\%(interface\|implementation\)\>' | let b:endwise_syngroups = 'objcObjDef'
line 61:   autocmd FileType matlab let b:endwise_addition = 'end' | let b:endwise_words = 'function,if,for' | let b:endwise_syngroups = 'matlabStatement,matlabFunction,matlabConditional,matlabRepeat'
line 62:   autocmd FileType * call s:abbrev()
line 63: augroup END " }}}1
line 64: 
line 65: function! s:abbrev()
line 72: 
line 73: " Maps {{{1
line 74: 
line 75: if maparg("<Plug>DiscretionaryEnd") == ""
line 76:   inoremap <silent> <SID>DiscretionaryEnd <C-R>=<SID>crend(0)<CR>
line 77:   inoremap <silent> <SID>AlwaysEnd        <C-R>=<SID>crend(1)<CR>
line 78:   imap    <script> <Plug>DiscretionaryEnd <SID>DiscretionaryEnd
line 79:   imap    <script> <Plug>AlwaysEnd        <SID>AlwaysEnd
line 80: endif
line 81: 
line 82: if !exists('g:endwise_no_mappings')
line 83:   if maparg('<CR>','i') =~# '<C-R>=.*crend(.)<CR>\|<\%(Plug\|SNR\|SID\)>.*End'
line 84:     " Already mapped
line 85:   elseif maparg('<CR>','i') =~ '<CR>'
line 86:     exe "imap <script> <C-X><CR> ".maparg('<CR>','i')."<SID>AlwaysEnd"
line 87:     exe "imap <script> <CR>      ".maparg('<CR>','i')."<SID>DiscretionaryEnd"
line 88:   elseif maparg('<CR>','i') =~ '<Plug>\w\+CR'
line 89:     exe "imap <C-X><CR> ".maparg('<CR>', 'i')."<Plug>AlwaysEnd"
line 90:     exe "imap <CR> ".maparg('<CR>', 'i')."<Plug>DiscretionaryEnd"
line 91:   else
line 92:     imap <script> <C-X><CR> <CR><SID>AlwaysEnd
line 93:     imap <CR> <CR><Plug>DiscretionaryEnd
line 94:   endif
line 95: endif
line 96: 
line 97: " }}}1
line 98: 
line 99: " Code {{{1
line 100: 
line 101: function! s:mysearchpair(beginpat,endpat,synpat)
line 108: 
line 109: function! s:crend(always)
line 154: 
line 155: function! s:synname()
line 167: 
line 168: " }}}1
line 169: 
line 170: " vim:set sw=2 sts=2:
finished sourcing /Users/Glenn/.vim/bundle/vim-endwise/plugin/endwise.vim
continuing in /Users/Glenn/.dotfiles/_vim/vimrc
finished sourcing ~/.vim/vimrc
Searching for "plugin/**/*.vim" in "/Users/Glenn/.vim,/usr/local/share/vim/vimfiles,/usr/local/share/vim/vim74,/usr/local/share/vim/vimfiles/after,/Users/Glenn/.vim/after"
Searching for "/Users/Glenn/.vim/plugin/**/*.vim"
Searching for "/usr/local/share/vim/vimfiles/plugin/**/*.vim"
Searching for "/usr/local/share/vim/vim74/plugin/**/*.vim"
Searching for "/usr/local/share/vim/vimfiles/after/plugin/**/*.vim"
Searching for "/Users/Glenn/.vim/after/plugin/**/*.vim"
not found in 'runtimepath': "plugin/**/*.vim"
Reading viminfo file "/Users/Glenn/.cache/viminfo" info oldfiles
"test.txt" 
"test.txt" 7L, 476C
Reading viminfo file "/Users/Glenn/.cache/viminfo" marks
-- INSERT --
calling function <SNR>2_crend(0)

line 1:   let n = ""
line 2:   if !exists("b:endwise_addition") || !exists("b:endwise_words") || !exists("b:endwise_syngroups")
line 3:     return n
function <SNR>2_crend returning ''



Writing viminfo file "/Users/Glenn/.cache/viminfo"

토론 #9

플러그인에도 같은 문제가 있습니다.이 문제는 이미 매우 낡았지만, 나는 네가 @gww의 해결 방안을 찾았는지 알고 싶다

좋은 웹페이지 즐겨찾기