Code Monkey home page Code Monkey logo

qfixhowm's Issues

autoload化

結構コードが大きめなので、autoload化してメモリを節約したい。

起動時にエラーが発生する

正規表現がなんたらというエラーが出る。おそらくファイル名で正規表現オペレータを使ってしまっている為。
一応、以下で動いていますが、正しいかどうかは分かりません。

diff --git a/plugin/qfixmemo.vim b/plugin/qfixmemo.vim
index 0c176ef..039470d 100644
--- a/plugin/qfixmemo.vim
+++ b/plugin/qfixmemo.vim
@@ -876,7 +876,7 @@ endfunction

 function! s:isQFixMemo(file)
   let file = fnamemodify(a:file, ':p')
-  if file =~ substitute(expand(g:qfixmemo_submenu_title), '\\', '/', 'g')
+  if file == fnamemodify(expand(g:qfixmemo_submenu_title), ':p')
     return 1
   endif
   if fnamemodify(file, ':e') != g:qfixmemo_ext

'<Leader>g エントリをgrep' が機能しない

キーマップが衝突しているようです。

diff --git a/autoload/qfixgrep.vim b/autoload/qfixgrep.vim
index 883d475..816791d 100644
--- a/autoload/qfixgrep.vim
+++ b/autoload/qfixgrep.vim
@@ -164,14 +164,10 @@ if g:MyGrep_Keymap
   exe 'silent! vnoremap <unique> <silent> '.s:MyGrep_Key.'b  :<C-u>call <SID>BGrep("", -1, 0)<CR>'
   exe 'silent! nnoremap <unique> <silent> '.s:MyGrep_Key.'e  :<C-u>call <SID>QFGrep("Grep")<CR>'
   exe 'silent! vnoremap <unique> <silent> '.s:MyGrep_Key.'e  :<C-u>call <SID>QFGrep("GrepV")<CR>'
-  exe 'silent! nnoremap <unique> <silent> '.s:MyGrep_Key.'g  :<C-u>call <SID>QFGrep("Grep")<CR>'
-  exe 'silent! vnoremap <unique> <silent> '.s:MyGrep_Key.'g  :<C-u>call <SID>QFGrep("GrepV")<CR>'
   exe 'silent! nnoremap <unique> <silent> '.s:MyGrep_Key.'f  :<C-u>call <SID>QFGrep("FGrep")<CR>'
   exe 'silent! vnoremap <unique> <silent> '.s:MyGrep_Key.'f  :<C-u>call <SID>QFGrep("FGrepV")<CR>'
   exe 'silent! nnoremap <unique> <silent> '.s:MyGrep_Key.'re :<C-u>call <SID>QFGrep("RGrep")<CR>'
   exe 'silent! vnoremap <unique> <silent> '.s:MyGrep_Key.'re :<C-u>call <SID>QFGrep("RGrepV")<CR>'
-  exe 'silent! nnoremap <unique> <silent> '.s:MyGrep_Key.'rg :<C-u>call <SID>QFGrep("RGrep")<CR>'
-  exe 'silent! vnoremap <unique> <silent> '.s:MyGrep_Key.'rg :<C-u>call <SID>QFGrep("RGrepV")<CR>'
   exe 'silent! nnoremap <unique> <silent> '.s:MyGrep_Key.'rf :<C-u>call <SID>QFGrep("RFGrep")<CR>'
   exe 'silent! vnoremap <unique> <silent> '.s:MyGrep_Key.'rf :<C-u>call <SID>QFGrep("RFGrepV")<CR>'
   exe 'silent! nnoremap <unique> <silent> '.s:MyGrep_Key.'v  :<C-u>call <SID>QFGrep("Vimgrep")<CR>'

windowsで:helpが化ける

なぜか分からないのですが、windows上で:help qfixhowmとすると化けます。
他の日本語を含んだhelpはちゃんと見れています。

verbosefileで確認するとqfixhowmのエラーが多い

vimrcに

set verbosefile=foo

とし、起動直後に終了しただけでもこれだけ出ました。

c:\Documents and Settings\mattn\vimfiles\bundle\qfixhowm\plugin\qfixmemo.vim の処理中にエラーが検出されました:
行  267:
E122: 関数 QFixMemoBufWritePre は定義済です, 再定義するには ! を追加してください
c:\Documents and Settings\mattn\vimfiles\bundle\qfixhowm\plugin\qfixmemo.vim の処理中にエラーが検出されました:
行  479:
E122: 関数 QFixMemoVimEnter は定義済です, 再定義するには ! を追加してください
c:\Documents and Settings\mattn\vimfiles\bundle\qfixhowm\plugin\qfixmemo.vim の処理中にエラーが検出されました:
行  483:
E122: 関数 QFixMemoInit は定義済です, 再定義するには ! を追加してください
c:\Documents and Settings\mattn\vimfiles\bundle\qfixhowm\plugin\qfixmemo.vim の処理中にエラーが検出されました:
行  573:
E122: 関数 QFixMemoFoldingLevel は定義済です, 再定義するには ! を追加してください
c:\Documents and Settings\mattn\vimfiles\bundle\qfixhowm\plugin\qfixmemo.vim の処理中にエラーが検出されました:
行  592:
E122: 関数 QFixMemoBufEnterPre は定義済です, 再定義するには ! を追加してください
c:\Documents and Settings\mattn\vimfiles\bundle\qfixhowm\plugin\qfixmemo.vim の処理中にエラーが検出されました:
行 1744:
E122: 関数 QFixMemoQFBufWinEnterPost は定義済です, 再定義するには ! を追加してください
c:\Documents and Settings\mattn\vimfiles\bundle\qfixhowm\plugin\qfixmemo.vim の処理中にエラーが検出されました:
行 2062:
E122: 関数 QFixMemoRebuildKeyword は定義済です, 再定義するには ! を追加してください
c:\Documents and Settings\mattn\vimfiles\bundle\qfixhowm\plugin\qfixmemo.vim の処理中にエラーが検出されました:
行 2070:
E122: 関数 QFixMemoUserModeCR は定義済です, 再定義するには ! を追加してください
c:\Documents and Settings\mattn\vimfiles\bundle\qfixhowm\plugin\qfixmru.vim の処理中にエラーが検出されました:
行  264:
E122: 関数 QFixNormalizePath は定義済です, 再定義するには ! を追加してください
c:\Documents and Settings\mattn\vimfiles\bundle\qfixhowm\plugin\qfixmru.vim の処理中にエラーが検出されました:
行  305:
E122: 関数 QFixPreviewReadOpt は定義済です, 再定義するには ! を追加してください

ちなみに、関数の宣言が

function! Foo()

ではなく

silent! function Foo()

なのは意図してでしょうか?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.