Re: ask Vim why the word under the cursor is misspelled

2023-05-17 Thread Adam Monsen
Bram Moolenaar wrote: > You can use spellbadword() for that. Oh, nice! I completely missed that. Works like a charm. \\\sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// > \\\help me help AIDS victims -- http://ICCF-Holland.org > /// > Good idea. Done. --

ask Vim why the word under the cursor is misspelled

2023-05-17 Thread Adam Monsen
Is there a way to directly ask the Vim spell checker precisely why the word under the cursor is misspelled? It took me a bit to figure out how it paints a blue background behind bare words on a line because they are not capitalized. For example: foo I can figure it out pretty easily from the sug

compressed undofiles

2018-06-02 Thread Adam Monsen
I use undofiles heavily. I often copy a file along with its undofile when creating a new similar file. I notice (a) the undofiles can get quite large and (b) they compress very efficiently. I tested compressing a few ".test.txt.un~" files with gzip and saw 90% compression. Anyone interested in com

Re: cursor drawn over wrong character after cursoring over unicode character, Ubuntu 16.04, Vim 7.4

2017-08-18 Thread Adam Monsen
*Does not repro with Vim 8*. Looks like the bug was fixed. Yay! I confirmed by downloading and compiling version 8.0 (2016 Sep 12, compiled Aug 18 2017 16:16:46) with patches: 1-586 from here . I upgraded the version on my desktop using packages from https://l

cursor drawn over wrong character after cursoring over unicode character, Ubuntu 16.04, Vim 7.4

2017-08-14 Thread Adam Monsen
Vim (in a terminal) is drawing the cursor over the wrong character after I walk over some crazy high Unicode characters. Here's a screenshot: https://imgur.com/VjrddEK Notice how the broken heart is highlighted, but the text on the bottom terminal line shows the result of me typing ga in normal m

Re: wrong encoding for digraph page

2017-08-14 Thread Adam Monsen
Looks like this is still an issue. On Sun, Feb 26, 2012 at 7:59 PM, Adam Monsen wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > I think there's a problem with > http://vimdoc.sourceforge.net/htmldoc/digraph.html . > > 1. the server doesn't say what

wrong encoding for digraph page

2012-02-26 Thread Adam Monsen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I think there's a problem with http://vimdoc.sourceforge.net/htmldoc/digraph.html . 1. the server doesn't say what character encoding is used 2. the HTML says 3. it only looks correct if I force it to be interpreted as UTF-8 HTH, - -Adam -BEGIN

The vi restaurant

2011-11-23 Thread Adam Monsen
http://www.flickr.com/photos/meonkeys/6388985805/in/photostream signature.asc Description: OpenPGP digital signature

Re: bash script using vim commands?

2011-05-23 Thread Adam Monsen
Antonio Recio wrote: > I would like to execute a bash script from the terminal with two > vim commands. Vim can be driven from a Bash script. Here's an example. Save this as "noblanks.vim": " remove blank lines :g/^$/d " write, quit :wq Usage: $ vim -es < noblanks.vim file_with_blank

Re: Tags file not sorted

2011-04-22 Thread Adam Monsen
Gary Johnson writes: > Another thing to think about is how 'sort' sorts your data. > I've had to set > > LC_COLLATE=C > > in the environment of some of the systems I work on to have > 'sort' and 'ls' use the ASCII collating sequence which I > prefer. Ah, thank you! I'm trying to create my ow

Re: Vim: Warning: Input is not from a terminal

2011-04-21 Thread Adam Monsen
> But why *is* that even a mistake? What is the purpose/origin/history > of the first example, the vim "sans-dash" behavior? Whoops, I should have searched a bit more before posting. I found :help 26.4 so I understand that the sans-dash calling convention is most useful when using Vim in "ba

Vim: Warning: Input is not from a terminal

2011-04-21 Thread Adam Monsen
You've this mistake before, right? cat /tmp/foo.txt | vim when you meant to do cat /tmp/foo.txt | vim - Somewhere early in my Vim learning I figured out the latter, so I usually don't repeat the mistake. But why *is* that even a mistake? What is the purpose/origin/history of the first exam

Re: editing vim help files

2011-04-21 Thread Adam Monsen
On 04/20/2011 06:02 PM, Tim Chase wrote: > While I don't know what other folks use, and I don't do it myself, > this one-liner can be made into a :command! or mapped to make it > pretty easy/straight-forward: > > :%s/^\(.*\)\>\s*\(\*[^*]*\*\)$/\=printf('%s%*s', submatch(1), > (&tw?&tw:80)-(strlen

Re: standard ubuntu lucid vim package is not +multibyte

2011-04-20 Thread Adam Monsen
> +multibyte Just a small nit: this should be +multi_byte. And there is no "standard lucid vim package" of Vim 7.3. Looks like only "natty" has Vim 7.3. See: http://packages.ubuntu.com/search?keywords=vim Looks like there is a backport in progress: https://bugs.launchpad.net/lucid-backports/+bu

editing vim help files

2011-04-20 Thread Adam Monsen
Anyone handy with editing help files? I'm wondering how to align a title and tag, ala SPONSOR VIM DEVELOPMENT *sponsor* where the title is left-aligned and the tag right-aligned, on the same line. The vim (built-in) help files seem consistent enough, I'm w

Re: Any non-programmer users of Vim here?

2011-04-11 Thread Adam Monsen
Erik Christiansen wrote: > Simply capitalising keywords in the file allows rapid access to the > desired information How does that work? Will you share an example? Also, will you share your .vimrc? -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below

Re: Any non-programmer users of Vim here?

2011-04-11 Thread Adam Monsen
On 04/07/2011 06:13 PM, Eric Weir wrote: > Hope to find some free time in the next few days just to mess > around with it -- actually, to do the tutorial -- and maybe get > over the initial hump of total bafflement. Based on your participation on this list, looks like you've got plenty of free tim

Re: gf split hack breaks visual mode

2011-04-11 Thread Adam Monsen
Ben Fritz wrote: > Maybe use CTRL-W_f instead? I'm not sure whether it will work in a > mapping but it probably will. Aha, found a fix. Here's a pseudo-diff: -map gf :split +nmap gf :split -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the tex

gf split hack breaks visual mode (was: regarding using "gf" command)

2011-04-11 Thread Adam Monsen
Christian Brabandt wrote: > I usually use visual mode together with gf. Ah, nice! I hadn't thought of trying that. I usually use this hack in my .vimrc to make gf always use a new window: map gf :split But this breaks the handy use of {Visual}[count]gf. Anyone know why, and/or how to make th

Sharing images on mailing lists (was: why not remove www? Currently http://vim.org/ doesn't work)

2011-04-10 Thread Adam Monsen
On 04/08/2011 02:44 AM, Linda W wrote: > I wish there was a way to post a screen shot. There are places online which host images for free. Seems like they are called "image pastebins" or "photo pastbins". You can upload an image to one of these sites, then link to it in your post. * http://inky.w

Re: name conflicts: vim-addon-manager, snipmate

2011-04-10 Thread Adam Monsen
On 04/08/2011 10:10 AM, Marc Weber wrote: > Changing the name would take several hours of work including > finding many references on the web. > > Can we add a disambiguitation instead at a place you searched? IIRC, I just searched Google for "vim snippets", and that led me to http://www.vim.org/

request to remove "vim-on-rails" group from mailing list info page

2011-04-10 Thread Adam Monsen
I found https://groups.google.com/forum/#!forum/vim-on-rails on http://www.vim.org/maillist.php . The vim-on-rails google group appears plagued with porn and/or spam. Will someone please remove the reference to it from http://www.vim.org/maillist.php ? It just makes vim.org look bad. And if the o

name conflicts: vim-addon-manager, snipmate

2011-04-08 Thread Adam Monsen
I was confused and frustrated the other day because it took me a while to figure out that there are *two* versions of something called "vim-addon-manager". Then, again, when I found two different versions of "snipmate". Are both forks are still alive and kicking? If so, will you please come up wit

Re: enhanced asciidoc editing with exuberant ctags and taglist.vim

2011-03-30 Thread Adam Monsen
> Can you provide an example of an asciidoc file? Sure, here's one: http://www.methods.co.nz/asciidoc/asciidoc.txt Here's the user guide: http://www.methods.co.nz/asciidoc/userguide.html -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text yo

LFNW: Life-Changing Vim Plugins talk

2011-03-28 Thread Adam Monsen
Hi all, I'm stoked to be giving a talk at LinuxFest Northwest this year: "Beyond :wq ... Life-Changing Vim Plugins" Come check it out! Lately I've discovered some really incredible plugins for the Vim text editor. I'll showcase them with live demonstrations. I'll also cover some small tips th

enhanced asciidoc editing with exuberant ctags and taglist.vim

2011-03-24 Thread Adam Monsen
Has anyone done work on enhancing editing of asciidoc text (perhaps using exuberant ctags and taglist.vim)? I thought it might be nice to, for instance, have taglist provide an outline of an asciidoc file. signature.asc Description: OpenPGP digital signature

Re: snipMate destructive tab

2011-03-24 Thread Adam Monsen
On 03/23/2011 10:16 PM, Marc Weber wrote: >> 1. If default placeholder text is left alone, a subsequent TAB key >> destroys it! Is this expected behavior? Is there any way to just >> *leave* the default placeholder text? > > snipmate is simple. Consider using one of the alternatives. Eg see > b

snipMate destructive tab

2011-03-23 Thread Adam Monsen
I'm playing around with https://github.com/MarcWeber/snipmate. I installed it using https://github.com/MarcWeber/vim-addon-manager. Very cool so far! Couple of questions: 1. If default placeholder text is left alone, a subsequent TAB key destroys it! Is this expected behavior? Is there any way to

autocomplete of

2011-03-23 Thread Adam Monsen
Does Vim know how to complete the first part of an XML declaration/header/whatchamacallit ("") ? I see some code in /usr/share/vim/vim72/autoload/xmlcomplete.vim that looks like it should, but doesn't work for me. I'm using Vim 7.2.330 on Ubuntu 10.04.2 LTS. -- You received this message from t

Re: better browsing of IRC logs

2011-02-22 Thread Adam Monsen
Benjamin wrote: > ==> ~/.vim/plugin/irssi-log-date.vim <== That's excellent! I'm using this now, thank you. Erik wrote: > I don't have the impression that you are aware of irssi's /lastlog > command: Wow, nice! That is way cool. I'm now using this too. :) Thanks guys, I didn't realize this was

better browsing of IRC logs

2011-02-22 Thread Adam Monsen
I use irssi for IRC. I like to quickly browse (local) logs (in vim) sometimes before sending a message. I've got a rather clunky way of browsing them, and I'm fishing for ideas on how to improve the process. Here's a log snippet: --- Day changed Fri Feb 11 2011 00:12 < foo> this should help:

looking for a decent Freemarker (.ftl) syntax highlighting file

2010-10-11 Thread Adam Monsen
Anyone got one? http://freemarker.sourceforge.net/download/editor/ftl.vim only highlights double-quoted strings in Freemarker blocks (ex: [...@macro "arg"]) and a few Freemarker keywords. Most folks using Freemarker are probably generating HTML. it would be nice if that syntax highlighting file w

Re: vimdiff-like highlighting within the same file?

2010-09-02 Thread Adam Monsen
> Neil Fraser's diff_match_patch ... might be of interest. Awesome! Thanks for the pointer, James! The Python version of diff-match-patch seems to work pretty dang well. I did a few quick tests with diff_main() and diff_cleanupSemantic(). The API is simple, clear, and predictable! This could be u

Re: vimdiff-like highlighting within the same file?

2010-08-30 Thread Adam Monsen
>> I'm still hacking on my "highlight only" version, but it's slow going. > > Please share! I don't really have anything useful to share at this point, but I can tell you where I'm at. I'll start at the beginning so folks can join in even if they've missed earlier posts in this thread. I want imp

Re: vimdiff-like highlighting within the same file?

2010-08-25 Thread Adam Monsen
> This is an experimental feature, but please try it out. I did, and I'm impressed! Nice work! This is actually a novel way to tweak a diff, if one wanted to do such a thing. The only issue I ran into was when I did ":only!" in the window with the original .diff file I got a bunch of errors. I'm

Re: vimdiff-like highlighting within the same file?

2010-08-20 Thread Adam Monsen
> How would you like the plugin to handle that automatically. If you make > good suggestions, I might implement that. Do you mean the narrow region plugin? Actually, that plugin may not be involved at all. Here's a use case for what I'm envisioning. (1) one plain text file in unified diff format

Re: vimdiff-like highlighting within the same file?

2010-08-19 Thread Adam Monsen
> May I suggest that you look into Christian Brabandt's NarrowRegion plugin. > A procedure, after having installed NarrowRegion: > > * edit buffer > * select lines with V > * :NR(this will make a "narrow region" buffer holding just those lines) > * select other lines with V > * :NR > * in each

Re: vimdiff-like highlighting within the same file?

2010-08-19 Thread Adam Monsen
> FYI, I also asked this question on stackoverflow.com: > > http://tinyurl.com/363f8he Someone posted a response to that question. Apparently there's another editor that does highlight intra-line differences in a unified diff file. It's interesting, it works... I tried it out. Having used Vim for

Re: vimdiff-like highlighting within the same file?

2010-07-12 Thread Adam Monsen
FYI, I also asked this question on stackoverflow.com: http://stackoverflow.com/questions/3231759/how-can-i-visualize-per-character-differences-in-a-unified-diff-file (same link, tiny: http://tinyurl.com/363f8he ) -- You received this message from the "vim_use" maillist. Do not top-post! Type you