Re: NetrwC losing modified buffers

2018-07-07 Thread Justin M. Keyes
to re/move/preview/edit files all the > time, it provokes violent behaviour. > > Dirvish is very close to what I expected from a vim'ish file browser. > > On 03.07.2018 15:29, Justin M. Keyes wrote: > > One may be forgiven for thinking that netrw was designed to lose > > d

Re: NetrwC losing modified buffers

2018-07-03 Thread Justin M. Keyes
m because netrw is too complicated (eleven-thousand lines of Vim script). netrw drove me crazy enough to create https://github.com/justinmk/vim-dirvish , which focuses on reliability and harmony with Vi/Vim idioms. --- Justin M. Keyes -- -- You received this message from the "vim_use" mail

Re: Filter-like command -- but to insert instead of replacing

2017-02-09 Thread Justin M. Keyes
ith no discoverability or intuitive nature. Usability takes thought and deliberation. Every time someone asks for a random feature the solution should not be "let's add a new :dothisonething command". And yes, the usable/intuitive approach might take more work. --- Justin M.

Re: Issue with using gvim system() and fzy

2017-01-07 Thread Justin M. Keyes
Most likely, fzy wants to write to a tty, not a file. Justin M. Keyes On Jan 6, 2017 17:09, "justrajdeep" <justrajd...@gmail.com> wrote: > Hi experts > > Having an issue while doing a system() call with fzy(https://github.com/ > Dkendal/fzy-vim)from inside gvim >

Re: job_start the make command

2016-12-14 Thread Justin M. Keyes
would > like to include in Vim. > > What I would prefer is something that works just like :make, but in the > background. It would have the same arguments as :make and use the > 'makeprg' option. Only that the quickfix list is set much later. > Could call it :MakeBackground

Re: unsuscribe

2016-05-17 Thread Justin M. Keyes
Justin M. Keyes On May 17, 2016 22:12, "T.Lux" <t...@ghelew.ch> wrote: > > > I am using Emacs now. > > Riot Juiliett Class Submarine kibo Antiviral infowar Blackout mania > Steve Case sweeping Bomb threat TSCM Middleman Enriched HoHoCon DJC > > -- > -- &g

Re: BufNew not triggered for matching file specified on the command line

2016-05-16 Thread Justin M. Keyes
ping for a response from someone more > knowledgable about buffer behavior. I noticed this behavior as well, described here: https://github.com/justinmk/vim-dirvish/issues/23#issuecomment-182754960 I assumed it was intentional, or if not intentional then will be documented as intentional if an

Re: fugitive + git log --graph

2016-04-29 Thread Justin M. Keyes
t; > Anyway, any other suggestion on combining fugitive with --graph is > very welcome! https://github.com/junegunn/gv.vim exists for that purpose. It is an extension of fugitive. Justin M. Keyes -- -- You received this message from the "vim_use" maillist. Do not top-post! Type

Re: netrw :Explore setting current buffer to hidden

2016-02-29 Thread Justin M. Keyes
On Mon, Feb 29, 2016 at 12:31 PM, Charles E Campbell <drc...@campbellfamily.biz> wrote: > Justin M. Keyes wrote: >> netrw is 11,000 (eleven thousand) lines of code without any automated >> tests. > That, as it turns out, is not the case. I do have automated tests for &g

Re: netrw :Explore setting current buffer to hidden

2016-02-29 Thread Justin M. Keyes
netrw is 11,000 (eleven thousand) lines of code without any automated tests. You might want to try dirvish.vim[1] (400 lines of code, also no tests), the first file manager that actually leverages Vim's built-in features. https://github.com/justinmk/vim-dirvish Justin M. Keyes On Mon, Feb 29

Re: diffput does not trigger TextChanged event

2016-02-14 Thread Justin M. Keyes
ell-equipped to manipulate any buffer that is not the current buffer[1]. [1] https://github.com/neovim/neovim/issues/901 --- Justin M. Keyes -- -- 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 inf

Re: add mapping for buftype=nofile?

2016-01-27 Thread Justin M. Keyes
re" > mapping :-) The built-in "ZQ" normal mode command already does that. Justin M. Keyes -- -- 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

Re: Augmenting built in mappings

2016-01-27 Thread Justin M. Keyes
art' augmenter > function Smart() > if [some test] > [do augmented] > else > return [mapped letter] > endif > endfunction > > " and then a remap call > nnoremap [mapped letter] Smart() > That's perfectly fine. --- Justin M. Key

Re: Is it possible to use vim to allow multiple people editing a single file?

2016-01-18 Thread Justin M. Keyes
On Jan 18, 2016 11:10, "Ben Fritz" wrote: > > On Sunday, January 17, 2016 at 1:09:03 PM UTC-6, Peng Yu wrote: > > Hi, things like google drive allow multiple people to edit one > > document at the same time. I am wondering if there is something in vim > > that can help

Re: Is it possible to use vim to allow multiple people editing a single file?

2016-01-17 Thread Justin M. Keyes
aware of https://floobits.com/help/plugins/nvim ? Justin M. Keyes -- -- 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 b

Re: [ANN]: vimagit, a new way to use git within vim

2015-11-01 Thread Justin M. Keyes
n't see what's very different from using the `D` command on the "Changes to be committed:" line in a fugitive :Gstatus window. Are you sure you explored all of fugitive's functionality (some of which is a bit subtle)? Thanks Justin M. Keyes -- -- You received this message from the "

Re: [ANN] Plugin: VimCrypt: A small framework for encryption and decryption in vim. (supports openssl and gpg)

2015-09-14 Thread Justin M. Keyes
n. It also fixes some bugs > present in ssl.vim, and in particular the one where wrongly entering a > password after :w would just cause the file to be written out in plaintext. > > Github: https://github.com/mwnx/vimcrypt Other than support SSL, how does it compare to https://github.com/ja

Re: i_CTRL-R to the end of current line (and related stuff)

2015-09-11 Thread Justin M. Keyes
ight forward to get the > > *entire* line using the expression register: > > > > =getline('.') > > > > You can get fairly close to what you want with > > > > :cnoremap =getline('.')[col('.'):] > > This must be col('.')-1. Remember that columns s

Re: dot in iskeyword in C and sh files

2015-08-06 Thread Justin M. Keyes
be saved before sourcing syntax files and then restored https://github.com/neovim/neovim/issues/1285 Justin M. Keyes -- -- 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

Re: dbext.vim bug: jumplist pollution caused by BufRead handler

2015-07-31 Thread Justin M. Keyes
On Mon, Jul 27, 2015 at 12:35 PM, David Fishburn dfishburn@gmail.com wrote: On Sun, Apr 12, 2015 at 4:43 PM, Justin M. Keyes justi...@gmail.com wrote: dbext's BufRead handler (and maybe others) adds a spurious mark at line 1 of each buffer. This is very annoying. Steps to reproduce: :h

Re: Persistent undo and force quit

2015-07-30 Thread Justin M. Keyes
On Jul 28, 2015 18:31, David Besen dbe...@gmail.com wrote: Second draft, seems to work a little better: save undo if we qa! function! MyWundoQuit() let undoseq = undotree().seq_cur earlier 1f let undof = escape(undofile(expand('%')),'% ') exec wundo . undof silent!

Re: Persistent undo and force quit

2015-07-22 Thread Justin M. Keyes
!. Is there any way to do that? Seems like a bug. But to work around it you could :wundo before :qall! Justin M. Keyes -- -- 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

Re: Does C-wC-o trigger any event?

2015-05-24 Thread Justin M. Keyes
=readonly Although, I just noticed that Vim has a :redrawstatus command. Is there any need for the let ro=ro hack mentioned in :help 'statusline', given the existence of :redrawstatus? Justin M. Keyes -- -- You received this message from the vim_use maillist. Do not top-post! Type your reply

Re: configuring sytanstic - mainly ruby(rails), javascript, eruby

2015-05-23 Thread Justin M. Keyes
the documentation is impressive. Original author notwithstanding. Justin M. Keyes -- -- 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

Behavior of space and backspace

2015-05-04 Thread Justin M. Keyes
NONE -C (Vi-compatible) does not behave in this way. :help space implies that space is equivalent to `l`, which is clearly wrong. Likewise for :help backspace. Thanks. Justin M. Keyes -- -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text

Re: Behavior of space and backspace

2015-05-04 Thread Justin M. Keyes
On Mon, May 4, 2015 at 11:41 PM, Nikolay Pavlov zyx@gmail.com wrote: 2015-05-05 6:32 GMT+03:00 Justin M. Keyes justi...@gmail.com: With vim -u NONE -N, given the following text: ABC DEF - With cursor on D, backspace moves to C. - With cursor on D, `h` does nothing. - With cursor on C

dbext.vim bug: g:dbext_default_usermaps is ignored

2015-04-12 Thread Justin M. Keyes
If I set let g:dbext_default_usermaps = 0 The torrent of leader maps is still created. Justin M. Keyes -- -- 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

Re: MacVim: ce and cw both seem to do the same thing: Delete the word starting from the cursor to the end of the word and enable Insert mode.

2015-04-12 Thread Justin M. Keyes
word. Am I missing something here? It's a long-standing issue. See: - https://groups.google.com/d/msg/vim_use/aaBqT6ECkA4/42BkI0qV-aAJ - https://groups.google.com/d/msg/vim_dev/Dpn3xtUF16I/bSu0KOHDCSUJ - http://www.reddit.com/r/vim/comments/26nut8/why_does_cw_work_like_ce/ Justin M. Keyes

dbext.vim bug: jumplist pollution caused by BufRead handler

2015-04-12 Thread Justin M. Keyes
dbext's BufRead handler (and maybe others) adds a spurious mark at line 1 of each buffer. This is very annoying. Steps to reproduce: :h h :h a c-o The c-o step will go to the top of the file instead of the previous :h h location. Another c-o will then go to the :h h location. Justin M. Keyes

Re: How to stop buffer number incrementing when writing to a temp file?

2015-04-05 Thread Justin M. Keyes
. In the future I hope to see buffers made even more flexible and useful in Vim, like Emacs... Justin M. Keyes -- -- 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

Re: How to cancel [count] prefix?

2015-03-04 Thread Justin M. Keyes
On Mar 4, 2015 6:34 AM, Alexey Muranov alexey.mura...@gmail.com wrote: On 4 mars 2015, at 11:44, Jürgen Krämer jottka...@googlemail.com wrote: Say, i've typed '42' before a motion key, but then changed my mind and decided to use a different motion or a different count. How do i cancel '42'

Re: Search via syntax group

2015-02-14 Thread Justin M. Keyes
On Fri, Feb 13, 2015 at 1:51 AM, Christian Brabandt cbli...@256bit.org wrote: Am 2015-02-13 07:05, schrieb Dominique Pellé: Justin M. Keyes justi...@gmail.com wrote: How to search for the next instance of a syntax group? For example, say I have this .bashrc file: ls foo rm foo ls

Search via syntax group

2015-02-12 Thread Justin M. Keyes
like there should be. A syntax-highlighted buffer has lots of information encoded in it. There should be a way to leverage that with motions, /, :s, and :g. Justin M. Keyes -- -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you

Re: Looking for a plugin: HTTP REST API

2015-01-17 Thread Justin M. Keyes
is really nice. Justin M. Keyes -- -- 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

Re: Vim and Lisp

2015-01-10 Thread Justin M. Keyes
performance (for example I have to switch syntax off on two of that systems to get things edited...). https://github.com/guns/vim-sexp is quite good. Justin M. Keyes -- -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying

Re: [ANN] Vim for Windows build, contains all 3rd party dependencies

2015-01-01 Thread Justin M. Keyes
some package to be available, but it isn't because vim-single-drop uses a different site-packages, etc.? Justin M. Keyes -- -- 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

Re: Slow loading in Windows 7

2014-11-20 Thread Justin M. Keyes
On Nov 19, 2014 5:36 PM, Jack Donohue jmdono...@gmail.com wrote: I removed all the vim environment variables and copied C:\vim\vim74\gvim.exe to a random directory, ran gvim from the command line, still as long to load. Do you have a over-eager antivirus or some like that? -- -- You

Re: Bundling jar into a vim plugin

2014-08-05 Thread Justin M. Keyes
to the lein repl for evaluation. I imagine vimside does something similar. Neither bundles a jar. I would try to leverage the sbt repl or something similar. For java classpath resolution https://github.com/tpope/vim-classpath may also be very helpful. Justin M. Keyes -- -- You received this message

Re: Vim as prose editor - how to remove '~' and '@'

2014-06-10 Thread Justin M. Keyes
On Jun 7, 2014 2:21 PM, James Freer jessejazza3...@gmail.com wrote: On Sat, 7 Jun 2014, BPJ wrote: 2014-06-07 10:39, James Freer skrev: I am trying out gvim and vim for use as a prose editor for writing - rather than programmer coding. Whilst doing pgup and pgdn one gets ~ and @ on the

Re: Get expansion of digraph in VimL

2014-05-23 Thread Justin M. Keyes
()}).digraph\n This even did not alter cmd and expr history (it would if I typed :normal! argument myself). Thank you Nikolay and John! This is extremely useful. Justin M. Keyes -- -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you

lockvar: what is the purpose?

2014-04-08 Thread Justin M. Keyes
?) If so, should I use lockvar whenever possible in my plugins? Thanks! Justin M. Keyes -- -- 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

Re: lockvar: what is the purpose?

2014-04-08 Thread Justin M. Keyes
On Apr 8, 2014 4:36 PM, Nikolay Pavlov zyx@gmail.com wrote: On Apr 8, 2014 11:53 PM, Justin M. Keyes justi...@gmail.com wrote: Hi, It seems any plugin can :unlockvar any global variable that was locked by another plugin. So, is the purpose of lockvar simply a friendly warning/sanity

Re: Suggestion for vim -diff behavior change

2014-03-30 Thread Justin M. Keyes
Windows terminal Vim (invoked via vim -d a.txt b.txt). [1] http://vim.wikia.com/wiki/Ignore_white_space_in_vimdiff Justin M. Keyes -- -- 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

Re: Suggestion for vim -diff behavior change

2014-03-29 Thread Justin M. Keyes
can imagine, we want to **review** the changes. Auto-folding assumes that we are omniscient and do not need to review. I agree. The initial folding is welcome, but auto-folding after 'do' or 'dp' is jarring. You are talking about do/dp, right? Justin M. Keyes -- -- You received this message

Re: colorcolumn creates a large red block

2014-02-10 Thread Justin M. Keyes
Are you in the terminal? You didn't set ctermbg. highlight ColorColumn guibg=Black ctermbg=0 Justin M. Keyes On Feb 10, 2014 9:43 AM, brandon wallace nodn...@gmx.us wrote: I have these options in my .vimrc. set colorcolumn=80 let colorcolumn=join(range(81,244), ',') highlight

Re: problems (and bugs) with netrw

2014-01-14 Thread Justin M. Keyes
On Jan 14, 2014 9:13 AM, Charles Campbell charles.e.campb...@nasa.gov wrote: Matteo Cavalleri wrote: I'm starting to learn netrw (the version shipped with the latest vim 7.4.142) but I already have a couple of problems and maybe a bug. Try to do this: open any file :Explorecr press F1 for

Re: how to return to the previous file?

2014-01-13 Thread Justin M. Keyes
On Mon, Jan 13, 2014 at 9:28 PM, elearn2...@gmail.com wrote: When editing the file (no name file) i input `:%!xxd` to check the ascii. :%!xxd Vim quit If i input `:q`. :q I want to return to the previous file to continue my work. How can i do? ctrl-^ See :help CTRL-^ --

Re: getchar() / nr2char() with non-default 'keymap'

2014-01-06 Thread Justin M. Keyes
On Mon, Jan 6, 2014 at 7:35 AM, Andy Wokula anw...@yahoo.de wrote: Am 05.01.2014 22:28, schrieb Justin M. Keyes: Hi, I am using getchar() in a plugin to get input from the user. But getchar() returns the same keycode no matter what keymap is activated. So for example: :set keymap

getchar() / nr2char() with non-default 'keymap'

2014-01-05 Thread Justin M. Keyes
always returns 98, and nr2char(98) always returns b regardless of the keymap. Is there some other function instead of nr2char() that gets the keymapped character from a keycode? Vim 7.4.35 Thanks! Justin M. Keyes -- -- You received this message from the vim_use maillist. Do not top-post! Type

Re: Regular expression and VIm

2013-12-15 Thread Justin M. Keyes
use \v liberally when editing unless I explicitly want \V or default magic behavior. Justin M. Keyes -- -- 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

Re: Regular expression and VIm

2013-12-13 Thread Justin M. Keyes
of experience. Justin M. Keyes -- -- 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

Re: autocompletion for html (and other things)

2013-12-08 Thread Justin M. Keyes
with the cursor between. I think using C-S in insert mode. But I don't quite remember, consult the help. Those are great suggestions. I've also seen a lot of buzz about vim-emmet: http://mattn.github.io/emmet-vim/ Justin M. Keyes -- -- You received this message from the vim_use maillist. Do not top

Re: [Bulk] Re: Missing drive indicator, alien '=', missing ':' (gVim on Windows)

2013-11-11 Thread Justin M. Keyes
ignorance, someone would enlighten me :) Justin M. Keyes -- -- 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

Re: Missing drive indicator, alien '=', missing ':' (gVim on Windows)

2013-11-10 Thread Justin M. Keyes
(personally, I like it). If you open Windows Explorer, and enter /foo/ in the address bar (ctrl-d) it will take you to C:/foo/. This is a Windows feature, and I guess Vim is reflecting it (either intentionally or by accident). You can also try 'cd /' in cmd.exe. --- Justin M. Keyes -- -- You

Re: Missing drive indicator, alien '=', missing ':' (gVim on Windows)

2013-11-10 Thread Justin M. Keyes
On Sun, Nov 10, 2013 at 4:44 PM, Justin M. Keyes justi...@gmail.com wrote: On Sun, Nov 10, 2013 at 3:47 PM, Suresh Govindachar But the issue of the buffer name missing the 'c:' is valid. Funny to see someone else using c:\opt on Windows (I do that too). Anyways, I believe omitting C:/ from

Re: [Bulk] Re: Missing drive indicator, alien '=', missing ':' (gVim on Windows)

2013-11-10 Thread Justin M. Keyes
its behavior would match what you had expected with junctions. But with junctions, the application (Vim) has no knowledge of the fact that two paths happen to share the same blocks on the filesystem. --- Justin M. Keyes -- -- You received this message from the vim_use maillist. Do not top-post

Re: Simplified logo concept

2013-11-06 Thread Justin M. Keyes
of thing is a magnet for bike-shedding, so it's tough. Personally I am off-put by the dominance of the diamond shape. It makes Vim look like trialware for online poker. Justin M. Keyes -- -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you

Re: Help! OS X folded sections: invisible in Terminal (but visible in iTerm2)

2013-11-04 Thread Justin M. Keyes
On Mon, Nov 4, 2013 at 5:40 PM, Bruno Sutic bruno.su...@gmail.com wrote: Hi, I'm using terminal vim 7.4 on OS X. I was surprised to discover that in Terminal app, folded sections aren't displayed properly - they're invisible! If I open the same file (same vimrc, same colorscheme, same

matchadd() does not respect 'ignorecase'

2013-11-03 Thread Justin M. Keyes
! Justin M. Keyes -- -- 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

Re: matchadd() does not respect 'ignorecase'

2013-11-03 Thread Justin M. Keyes
On Sun, Nov 3, 2013 at 5:29 PM, LCD 47 lcd...@gmail.com wrote: On 3 November 2013, Justin M. Keyes justi...@gmail.com wrote: Is matchadd() supposed to respect 'ignorecase'? The documentation does not explicitly say, but it uses a {pattern} like search() and searchpos(), both of which *do