Re: Idea and prototype: Vim independent event based communication & completions?
2017-08-03 0:23 GMT+03:00 Marc Weber : > Vim8 / NeoVim / maybe Emacs and more > languages: VimL/Python (maybe lua)/ others > > But common features such as > - completion > - templates > - describe thing at cursor > - goto thing at cursor > - show errors > - run compilation > - ... > > 500 plugins - but how to make them work together? > > http://github.com/MarcWeber/editor-cells > > Is an attempt to implement the features in an independent manner so that > those parts can talk to each other by message passing style no matter > what language they are written in. Almost everything in your list is covered by language server protocol: completion, describing things at cursor, goto definition, … It is more logical to extend LSP then invent something else. Currently LSP does not support only “templates” and, probably, “run compilation” ([code action request][1] is documented to have different purpose) from your list. What it does not support and what neither is on your list, but what would be good to have is syntax highlighting support, [LSP’s document highlight][2] is a different thing. >From what I have read it looks like you are trying to create an LSP, but without the “server” part, looking like a mesh network. Please, do not do useless job, better work on LSP. Though I am very unsure whether I understood right regarding how you are going to implement anything you claim. [1]: https://github.com/Microsoft/language-server-protocol/blob/master/protocol.md#textDocument_codeAction [2]: https://github.com/Microsoft/language-server-protocol/blob/master/protocol.md#textDocument_documentHighlight. > > Because reinventing the wheel sucks. > > It is an experiment, maybe it will hit speed bottlenecks, but I felt its > the most flexible way to learn from the past. > > https://github.com/MarcWeber/editor-cells/blob/master/vimrc > and SetupVimTestCells() shows how to setup completion and a simple auto > triggering implementation. You see that you can add custom completions > to existing omnifuncs easily by using wrappers around existing omnifuncs > such as CompleteMonth. > > The long term goal is to provide completions which you could combine > with machine learning to see which options should be ranked highest for > instance. > > So the idea is that you can compose individual features the way you > need. > > SetupPy2TestCells works, the py3 async code needs more work - but its > enough to get an idea. > > Once there is a 'common format' many editors car do basic things with > then libraries even can provide their own snippets / dsls / stuff and be > done. Currently its a lot of work for everyone. > > Feedback welcome - its very early stage. > > Marc Weber > > -- > -- > You received this message from the "vim_use" maillist. > Do not top-post! Type your reply below the text you are replying to. > For more information, visit http://www.vim.org/maillist.php > > --- > You received this message because you are subscribed to the Google Groups > "vim_use" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to vim_use+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
complete twp consecutive words
Is it possible to complete 2 consecutive words? That is match the first and include the second? -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
rectangular (block) paste from clipboard ?
Hi, Anyone know of a way to block paste from the external clipboard buffer ? I can paste but its not block paste. For example, I use tmux and block-copy selection to clipboard but cannot get this to block paste in vim. thx, m -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Idea and prototype: Vim independent event based communication & completions?
Vim8 / NeoVim / maybe Emacs and more languages: VimL/Python (maybe lua)/ others But common features such as - completion - templates - describe thing at cursor - goto thing at cursor - show errors - run compilation - ... 500 plugins - but how to make them work together? http://github.com/MarcWeber/editor-cells Is an attempt to implement the features in an independent manner so that those parts can talk to each other by message passing style no matter what language they are written in. Because reinventing the wheel sucks. It is an experiment, maybe it will hit speed bottlenecks, but I felt its the most flexible way to learn from the past. https://github.com/MarcWeber/editor-cells/blob/master/vimrc and SetupVimTestCells() shows how to setup completion and a simple auto triggering implementation. You see that you can add custom completions to existing omnifuncs easily by using wrappers around existing omnifuncs such as CompleteMonth. The long term goal is to provide completions which you could combine with machine learning to see which options should be ranked highest for instance. So the idea is that you can compose individual features the way you need. SetupPy2TestCells works, the py3 async code needs more work - but its enough to get an idea. Once there is a 'common format' many editors car do basic things with then libraries even can provide their own snippets / dsls / stuff and be done. Currently its a lot of work for everyone. Feedback welcome - its very early stage. Marc Weber -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Changing Word with Yanked Word
> I am looking for a quick way to change a word(cw?) with one that was > yanked (yw). I do not want to enter insert mode, and would like to do it > in command mode. > yw move the cursor immediately before the word to change (however you wish) p 2dw is one way to do it. -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Changing Word with Yanked Word
Hi, I am looking for a quick way to change a word(cw?) with one that was yanked (yw). I do not want to enter insert mode, and would like to do it in command mode. --PB -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Configure DBext mac for SQLite
Glad you managed to get it working using DBI. I would like to resolve this issue though Brian. If there are any Mac users who might have some input into this I would appreciate it. Please read below. On Sun, Jul 23, 2017 at 5:43 PM, Brian Libgober wrote: > ... > select * from CIK limit 5; > > The error I get back > > Connection: T(SQLITE) D(/Users/brianlibgober/Dropbox > /Collaborations/CleanMake/Main.sqlite) at 17:32 > Error: near "<": syntax error > ... > Last command(rc=1): > sqlite3 /Users/brianlibgober/Dropbox/Collaborations/CleanMake/Main.sqlite > < /var/folders/p2/nkftf47s5vb8zr6slgc7fc94gn/T/v5uxPIb/dbext.sql > Last SQL: > .mode column > .headers ON > select * from CIK limit 5 > > The bizarreness of this is that the following run on terminal: > > sqlite3 /Users/brianlibgober/Dropbox/Collaborations/CleanMake/Main.sqlite > < /var/folders/p2/nkftf47s5vb8zr6slgc7fc94gn/T/v5uxPIb/dbext.sql > > Yields > > index CIK COMPANYNAME > -- -- --- > 0 0001438823 !J INC > 1 0001509607 #1 A LIFESA > 2 0001457512 #1 ARIZONA > 3 0001433777 #1 PAINTBAL > 4 0001427189 $ LLC > > ... Sorry, Brian I have been away. Yes, your analysis above is definitely strange, if that command worked from the command line, then I would think it also should have worked from the system() command. What happens when you try these steps: 1. Use the SQLite connection type (instead of DBI as you did before) 2. Set a couple of dbext options :DBSetOption delete_temp_file=0 :DBSetOption display_cmd_line=1 3. Run the SQL statement :Select * from CIK limit 5 4. Try it in Vim, without using the dbext plugin At this point you should have the same error. But with those options set, the dbext.sql file should still be available and the command line executed should be shown. Use Vim's echo statement to see the results: :echo system('sqlite3 /Users/brianlibgober/Dropbox/C ollaborations/CleanMake/Main.sqlite < /var/folders/p2/nkftf47s5vb8zr 6slgc7fc94gn/T/v5uxPIb/dbext.sql') This should result in the same error as you initially reported. If you do get an error (I hope you do) when using the :echo statement, if you could possibly play with these settings in Vim: :h 'shellquote' :h 'shellslash' :h 'shellpipe' :h 'shellxquote' :h 'shellxescape' :h 'shelltype' Perhaps :h shellpipe, since it is really complaining about the http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Advice on opening large/huge files
On 02.08.17 11:49, Lifepillar wrote: > From time to time, I need to edit large files (~10^2-10^3 MB). > In my tests, Vim loads large files relatively quickly (~100MB/s). > It's (some) filetype plugins that hog Vim. > > For instance, take any large file and change its suffix to have > it recognized as Markdown. After Vim has read it (you'll see > the line/char count in the command line), it gets stuck. > > I have tried the LargeFile plugin, but I haven't noticed any > difference. > > Any suggestions? Even having folding enabled can slow things down markedly on big files. If usable responsiveness is desired, ISTM that all slow stuff simply needs to be disabled. Even without the decorative frills, Vim offers a lot of comfort. Erik -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Advice on opening large/huge files
From time to time, I need to edit large files (~10^2-10^3 MB). In my tests, Vim loads large files relatively quickly (~100MB/s). It's (some) filetype plugins that hog Vim. For instance, take any large file and change its suffix to have it recognized as Markdown. After Vim has read it (you'll see the line/char count in the command line), it gets stuck. I have tried the LargeFile plugin, but I haven't noticed any difference. Any suggestions? Thanks, Life. -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.