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
pellCap" works as expected. Thanks! -Adam Related: - https://stackoverflow.com/questions/36993988/how-can-i-find-out-the-syntax-group-of-the-current-character - https://stackoverflow.com/questions/9464844/how-to-get-group-name-of-highlighting-under-cursor-in-vim - vim

Re: Multiple windows get corrupted

2022-12-19 Thread 'hilal Adam' via vim_use
Thanks for your reply. Yes, I did try Ctrl-L or the ex command :redraw as I found them when searching for similar experience from others.I am running in GUI mode.  Latest version meaning what? Vim 9 or the latest in 8.2xxx build? As I mentioned I am running 8.2.4919. However I would be glad

Re: Multiple windows get corrupted

2022-12-19 Thread 'hilal Adam' via vim_use
Thanks for your reply. I am not sure what '$ vim --clean' does. Is this another way running vim? On Monday, December 19, 2022 at 12:22:05 AM CST, Enan Ajmain <3nan.ajm...@gmail.com> wrote: Have you checked if '$ vim --clean' causes the same problem? -- Enan 3nan.ajm...@gmail.com

Comment auto formatting joins non-comment lines

2022-10-18 Thread Adam Levy
I like the autoformatting of comments when I'm writing them, however it's unusable because subsequent non-comment lines are always joined with the comment block. Use of fo+=w helps a little bit, but if I accidentally leave Insert mode when there is a trailing space on the last line of my

Vim starts with multiple (3) windows

2018-10-16 Thread 'hilal Adam' via vim_use
Hello All, All of sudden, today whenever I wanted to startup a new instance of gVim (does not do it in Vim) I get 3 horizontal windows at once. I don't remember changing any of my settings in sometime. I am running version 8.0.586. Thanks for your help in advance. Hilal -- -- You received

Recreating vim's newline at EOF logic

2018-08-02 Thread Adam Labbe
as binary, but the file contained the eol at EOF then vim will obviously put the eol back. Does this logic match what we expect vim to do? Is there a different way to get the contents of the buffer that includes the newline characters? Adam -- -- You received this message from the "vim_use

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

Here's an App I built for browsing Vim/Neovim docs offline

2018-05-10 Thread Adam Regasz-Rethy
Google Play Link: https://play.google.com/store/apps/details?id=com.bonnetrouge.vimhelp Currently it's only available on Android (free and no ads). You can browse and fuzzy search through the docs while taking advantage of a builtin jumplist (supports forwards and backwards jumping). Here is

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

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

2017-08-14 Thread Adam Monsen
n't figure this one out. Any ideas? Anyone else able to repro? -Adam My vim --version: VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Nov 24 2016 16:44:48) Included patches: 1-1689 Extra patches: 8.0.0056 Modified by pkg-vim-maintain...@lists.alioth.debian.org Compiled by pkg-vim-maintain...@lists.alioth.

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 <hair...@gmail.com> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > I think there's a problem with > http://vimdoc.sourceforge.net/htmldoc/digraph.html . > > 1. the server

Re: How do I yank a whole line, minus the carriage return?

2014-04-04 Thread Adam
You might find this plugin useful: http://www.vim.org/scripts/script.php?script_id=3355 ~Adam~ On Fri, Apr 4, 2014 at 11:51 AM, JP Lew jplew...@gmail.com wrote: great, that's what I was looking for. Funny how in visual mode, $ includes the carriage return, but in normal mode it doesn't

Re: Syntax highlighting

2012-11-15 Thread hilal Adam
From: Charles E Campbell drc...@campbellfamily.biz To: vim_use@googlegroups.com Sent: Wednesday, November 14, 2012 9:29 PM Subject: Re: Syntax highlighting Tony Mechelynck wrote: On 15/11/12 02:03, hilal Adam wrote: snip Oh. Yes I do. Following lines

Syntax highlighting

2012-11-14 Thread hilal Adam
I wasn't able to find a related fix for this problem. Sorry if this is a repeat question. Hope to get some help with this. I suddenly (not sure when) lost the syntax highlighting for my file types when I start VIM. When I attempt to do syntax on, I get following error: Error detected while

Re: Syntax highlighting

2012-11-14 Thread hilal Adam
  From: Tony Mechelynck antoine.mechely...@gmail.com To: vim_use@googlegroups.com Cc: hilal Adam hila...@yahoo.com Sent: Wednesday, November 14, 2012 6:00 PM Subject: Re: Syntax highlighting On 15/11/12 00:42, hilal Adam wrote: I wasn't able to find

Re: Problem with a regular expression in Vim

2012-10-02 Thread Adam
/==\zs\%(aaa\|ddd\)\ze==/ works ~Adam~ On Tue, Oct 2, 2012 at 9:37 PM, Xell Liu xell@gmail.com wrote: Hi all, Suppose this text fragment: xxx==aaa==bbbccc==ddd==yyy How can I match the aaa and ddd between the pair of == without matching the bbbccc (or, of course, xxx or yyy

Re: vim: session of sessions

2012-07-12 Thread Thomas Adam
On 12 July 2012 21:12, Simon Ruderich si...@ruderich.org wrote: Btw. I haven't found a good way to perform the same in tmux, suggestions are very welcome. choose-window choose-tree -- Thomas Adam -- You received this message from the vim_use maillist. Do not top-post! Type your reply below

Re: New build of official Vim?

2012-06-29 Thread Adam
You can download just the updated executables from Yongwei's website and replace vim.exe and gvim.exe wherever you already installed vim. I've been doing this for years and have had no issue so far. http://wyw.dcweb.cn/#download ~Adam~ -- You received this message from the vim_use maillist

Re: What is the largest file I can edit using vim?

2012-06-06 Thread Adam
For a file that large you'll need to make sure you have a lot of ram and are using a 64 bit version of vim. You should also consider using the LargeFile plugin (http://www.vim.org/scripts/script.php?script_id=1506) ~Adam~ -- You received this message from the vim_use maillist. Do not top-post

Re: Cross referencing in VIM

2012-05-24 Thread hilal Adam
this and better yet how to get cscope in Vim running? Thanks for any help. From: Ben Fritz fritzophre...@gmail.com To: vim_use@googlegroups.com Cc: v...@vim.org v...@vim.org; hilal Adam hila...@yahoo.com Sent: Friday, May 18, 2012 10:48 AM Subject: Re: Cross referencing

Cross referencing in VIM

2012-05-17 Thread hilal Adam
I am bias towards VIM when it comes to editors for doing development work (mainly C). But I have this problem regarding cross referencing. I use ctags which only provides half of the equation when I search for definitions of functions and variables. However, I haven't been able to find a

_vimrc

2012-04-19 Thread hilal Adam
I an not sure if this an acceptable request or not. My apologies if not. Would experts like Ben Fritz, Marcin, Jurgen share their vimrc files with this forum? HA -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For

vimgrep

2012-04-04 Thread hilal Adam
Sorry if not correct platform for this question. Need to use vimgrep/grep to find a particular string in c code.  I am trying to find all occurrences of '**' (pointer to pointer). But I get hundreds of lines of output for all comment lines which include a minimum of 2 '*'s. Any help is

Re: vimgrep

2012-04-04 Thread hilal Adam
@googlegroups.com Cc: v...@vim.org v...@vim.org; hilal Adam hila...@yahoo.com Sent: Wednesday, April 4, 2012 12:28 PM Subject: Re: vimgrep On Wednesday, April 4, 2012 12:22:19 PM UTC-5, Ben Fritz wrote: On Wednesday, April 4, 2012 12:12:28 PM UTC-5, hilal Adam wrote: Sorry if not correct platform

wrong encoding for digraph page

2012-02-26 Thread Adam Monsen
if I force it to be interpreted as UTF-8 HTH, - -Adam -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) iQEcBAEBAgAGBQJPSv+NAAoJEJtdmT+DbynAOl4H/jCMgvS6rLZUOHE13jBD0xOP 3jcNFC7ADBWgIkbHcA/fZBBr8YgeBsuaqMGM/YeC5Dq7OfGitMDfB+R4Wo8xnJrv

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: Vim search with multiple windows open

2011-10-29 Thread hilal Adam
I appreciate it if any help with this question. From: hilal Adam hila...@yahoo.com To: v...@vim.org v...@vim.org Sent: Wednesday, October 26, 2011 9:57 PM Subject: Vim search with multiple windows open Hi, Hope someone could help with this. My Vim session

Vim search with multiple windows open

2011-10-27 Thread hilal Adam
Hi, Hope someone could help with this. My Vim session usually have few vertical/horizantal windows open. Often I do a search within one window and since incsearch is set, screen scrolls down to first match and is highlighted. What I am looking for is to have all occurrences/matches within

Re: [ANN] TagHighlight 2.1 (was CTags Highlighter)

2011-08-23 Thread Thomas Adam
colour, but is there an easy way of achieving this? At the moment it requires a lot of knowledge about colourschemes for this plugin to be of any use. Kindly, -- Thomas Adam -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying

Re: highlight all words matching the word under the cursor

2011-05-31 Thread Adam Duck
it highlights in every filetype. But, I don't feel a slow down at all. http://www.vim.org/scripts/script.php?script_id=1510 cu, Adam. -- 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: 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_blanks.txt

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 own tags

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),

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

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 batch

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

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:

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 cfileCR But this breaks the handy use of {Visual}[count]gf. Anyone know why, and/or how to

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 cfileCR +nmap gf :split cfileCR -- You received this message from the vim_use maillist. Do not top-post! Type your reply

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 time

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 the

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

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

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.ws *

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 with

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 you

LFNW: Life-Changing Vim Plugins talk

2011-03-28 Thread Adam Monsen
there. If you aren't going to LFNW, consider it. It's fun, and free! http://linuxfestnorthwest.org/faq Heart, -Adam -- 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: 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 bottom of

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

autocomplete of ?xml... in xml files

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

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

Re: HowTo delete all lines ending in a certain string?

2011-03-10 Thread Horvath Adam
Hi Chris! Generally: :g/pattern/d Specific for you (delete all line ending with '.' char): :g/\.$/d Adam 2011/3/10 Chris Hudson chrishud...@gmail.com: Hi, I have a question.  I have a very big directory/subdirectory listing that has been outputted to a file. I would like to delete all

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:

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 as

Re: Delete, add 16, and insert

2011-01-30 Thread Adam
I'm curious why this doesn't work: :g/^\d/norm 16(press control-a) I tried just going :norm 16^A but that also doesn't work (they both just increment the number by 1). I know that pressing 16^a in normal mode works correctly so that isn't the problem. ~Adam~ -- You received this message from

Re: Delete, add 16, and insert

2011-01-30 Thread Adam
What you want is to enter the ^A literally which can be done by prefixing it with control+V: Oh sorry yeah that's what I did do (^V^A) I guess I left it out. When you do that it appears that it's only incrementing by 1 though instead of the prefix that you give it (16 in this case) ~Adam

Re: Delete, add 16, and insert

2011-01-30 Thread Adam
). I updated to a newer build of 7.3 and it worked as expected. Much appreciated! ~Adam~ -- 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: Matching Multiple Columns in Vim

2011-01-14 Thread Adam
/\%11c[^E]\%56cR I am using vim 7.0. Also, what's the difference between a virtual and a real column? I'm not really sure about using columns but you could try it with just straight regex: /^.\{10\}[^E].\{44\}R ~Adam~ -- You received this message from the vim_use maillist. Do not top-post! Type

Re: Matching Multiple Columns in Vim

2011-01-14 Thread Adam
Just an fyi I tried /\%11c[^E].*\%56cR/ and it does work for me (using vim 7.3) ~Adam~ -- 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: Move cursor to location of last change

2010-12-14 Thread Adam
'. should do the trick, though as far as I know it can only go back to the past edit location. ~Adam~ On Tue, Dec 14, 2010 at 13:17, Dotan Cohen dotanco...@gmail.com wrote: Hi all, does VIM have a way to move the cursor to the location of the last change? For instance, in Visual Studio one

Re: Move cursor to location of last change

2010-12-14 Thread Adam
I think there may be a plugin for change history. Hopefully someone else will help with that. -ak Gundo is a great plugin to navigate change history (provides a lot of functionality including working with undo trees). http://www.vim.org/scripts/script.php?script_id=3304 ~Adam~ -- You

Re: fvwm vim problem

2010-11-28 Thread Thomas Adam
. -- Thomas Adam -- 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: Digraphs displayed as funny characters

2010-11-01 Thread Adam
Would anyone know how the digraphs work? I'm pretty sure they depend on the font that you're using to display properly. Try using a few different ones and I think you'll get better results. ~Adam~ -- You received this message from the vim_use maillist. Do not top-post! Type your reply below

Re: Nice display of leading tabs

2010-11-01 Thread Adam
can't test - might have to escape the pipe) :set listchars=tab:|- -- ~Adam~ -- 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

windows resize, insert mode

2010-10-19 Thread Adam Duck
, but still no joy... VIM 7.3 20100815, win32, OLE cu, Adam. -- 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

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

Re: how to display window number?

2010-10-10 Thread Thomas Adam
away and read to conditionally only display this number if there's 1 split window? I basically only want to display that number from ${winnr()} if I've split a window, not if it just contains one split. Kindly, -- Thomas Adam -- You received this message from the vim_use maillist. Do not top-post

Re: snipMate doesn't work with pathogen

2010-10-05 Thread Adam
Try moving `set nocompatible` to the first line in your vimrc ~Adam~ -- 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

Split windows and spanning width of screen

2010-09-29 Thread Thomas Adam
point me to it! Kindly, -- Thomas Adam -- Deep in my heart I wish I was wrong. But deep in my heart I know I am not. -- Morrissey (Girl Least Likely To -- off of Viva Hate.) -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying

Re: Split windows and spanning width of screen

2010-09-29 Thread Thomas Adam
On 29 September 2010 23:07, Michael Henry v...@drmikehenry.com wrote: On 09/29/2010 05:55 PM, Thomas Adam wrote: Hi all, I'm wondering if it's possible to get a new window created with :sp to span the entire screen width -- specifically quickfix window. I always open the quickfix window

Re: Split windows and spanning width of screen

2010-09-29 Thread Thomas Adam
looking like a n00b. :) Thanks again! -- Thomas Adam -- 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

Inserting text where set tw=$FOO has already been set

2010-09-20 Thread Thomas Adam
} to get the formatting correct? Kindly, -- Thomas Adam P.S. For anyone's who's wondering, yes , I did need to use gq} numerous times throughout this email, due to the problems outlined therein. :) -- Deep in my heart I wish I was wrong. But deep in my heart I know I am not. -- Morrissey (Girl

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

Re: RegEx help

2010-09-01 Thread Adam
This should do it. Obviously I'm just doing a basic substitution so you can alter as you need to. s/\(John\s\+Travolta\)\s\+\(samuel\)\s\+\(jackson\)/\1\r\2\r\3/i ~Adam~ On Wed, Sep 1, 2010 at 12:00, Kunal Bajpai kunal.baj...@gmail.com wrote: The string is (including double quotes) - John

Re: vimdiff-like highlighting within the same file?

2010-08-31 Thread Adam Monsen
mailing list. In fact, the git solution might be the most elegant and flexible algorithm to emulate. That's all for now, cheers, -Adam -- 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: 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: Windows version with Python, Ruby and Lua support?

2010-08-23 Thread Adam Duck
, Adam. -- 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: 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
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-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: :g/regex command result to a buffer?

2010-08-04 Thread Adam
/Copy_the_search_results_into_clipboard but don't use it with a *lot* of matches or it'll freeze vim. ~Adam~ On Wed, Aug 4, 2010 at 14:33, Tim Chase v...@tim.thechases.com wrote: On 08/04/10 14:21, Jim Green wrote: Hi, when I examines the logs I need to do :g/regex to get relevant texts and vim splits

Re: :g/regex command result to a buffer?

2010-08-04 Thread Adam
Yeah I'm a huge fan of tabs, so I open up a new tab and ap to paste it in there. ~Adam~ On Wed, Aug 4, 2010 at 15:56, Jim Green student.northwest...@gmail.comwrote: On Aug 4, 4:22pm, Adam les...@gmail.com wrote: I actually just figured this out earlier today. First clear a register (qaq

Re: [SOLVE] Re: Some ideas , possible with vim ?

2010-07-26 Thread Adam Duck
/script.php?script_id=31 I prefer it to gf because you can have a quick look into the header file if you need it... cu, Adam. -- 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: Regex with logical not

2010-07-21 Thread Adam
/^...@]*$/ If you want to do something to the lines you can use the :v/@/ For example: clear the 'c' register qcq Find all the lines and copy them into the 'c' register :v/@/y C ~Adam~ On Wed, Jul 21, 2010 at 10:57, Chris Sutcliffe ir0nh...@gmail.com wrote: Hi All, I'm trying

Re: Mix TagList's tags with your own tags

2010-07-20 Thread Adam Duck
ctags is not set up correctly. Perhaps you need more definitions in your .ctags? Or you don't regenerate the tags often enough. Could you tell how the tags you're searching for look like? cu, Adam. -- You received this message from the vim_use maillist. Do not top-post! Type your reply below

Re: Mix TagList's tags with your own tags

2010-07-20 Thread Adam Duck
On 20.07.2010 12:25, Pablo Giménez wrote: 2010/7/20 Adam Duckadam.ian.d...@gmail.com: On 20.07.2010 02:16, Pablo Giménez wrote: 2010/7/19 Brett Stahlmanbrettstahl...@comcast.net: On Jul 19, 6:49 am, Pablo Giménezpablog...@gmail.comwrote: Hi. I am using

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 your

Re: Indentation Vertical Lines

2010-07-07 Thread Thomas Adam
/jedit/jedit_ss3.jpg). I use Charles Campbell's SeeTab.vim plugin to do this. -- Thomas Adam -- 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: ANN: OutlookVim - version 4.0

2010-06-21 Thread Adam Duck
' as follows? let g:outlook_javascript = expand('sfile:p:h') . '/outlookvim.js' This location can be overridden anyway, but I think this is a better default for users (like me), installing everything in %HOME%\vimfiles. Btw, thanks for the plugin! Works great! cu, Adam. -- You received

tabdo left or right

2010-05-27 Thread Adam
Does anybody know if it's possible to have :tabdo only execute on, say, the tabs to the right of the current tab? ~Adam~ -- 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: Is there a variable containing all tokens that matched a regex search term?

2010-04-09 Thread Adam
this a lot I have this shortcut defined in my vimrc: :noremap ,a qaq:%CopyMatches aCR So once I have my search down I just go ',a' and then everything is in buffer a :D ~Adam~ -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you

Re: When Vim 7.3 will be released

2010-03-09 Thread Adam Duck
for minor releases every 200 patches or so. If you really want an intermittent Vim, then use cream. Under cream.sf.net there are also vim versions without cream. 7.2.356 as of February 3rd. cu, Adam. -- You received this message from the vim_use maillist. Do not top-post! Type your reply

Re: Pasting columns with space or tab

2010-03-02 Thread Adam
Dear vim experts, I have two questions: 1st question: -rw-r--r-- 1 winkles mypc 4.6G Feb 1 17:29 s1.1.gml -rw-r--r-- 1 winkles mypc 4.6G Feb 1 17:57 s1.2.gml -rw-r--r-- 1 winkles mypc 5.0G Feb 1 18:28 s2.1.gml -rw-r--r-- 1 winkles mypc 5.0G Feb 1 18:59 s2.2.gml I want to remove

Re: Fold according to keyword before fold mark?

2010-03-01 Thread Adam Duck
{ :call FoldOnlyMatching('[ \t]*{', 'zo')CR nnoremap silent z} :call FoldOnlyMatching('[ \t]*{', 'zc')CR #v- I've never tried :call FoldOnlyMatching('Task1{', 'zo')CR or so, but it should work. cu, Adam. -- You received this message from the vim_use maillist. Do not top-post! Type your reply below

Re: Fold according to keyword before fold mark?

2010-03-01 Thread Adam Duck
FoldOnlyMatching('[ \t]*{', 'zo')CR nnoremap silent z} :call FoldOnlyMatching('[ \t]*{', 'zc')CR #v- I've never tried :call FoldOnlyMatching('Task1{', 'zo')CR or so, but it should work. cu, Adam. -- You received this message from the vim_use maillist. Do not top-post! Type your reply below

Re: Vim plugin to maintain journal?

2010-01-20 Thread Thomas Adam
for the sort of things you're describing above. -- Thomas Adam -- It was the cruelest game I've ever played and it's played inside my head. -- Hush The Warmth, Gorky's Zygotic Mynci. -- You received this message from the vim_use maillist. For more information, visit http://www.vim.org

Re: Pretty code program (for all developers)...

2010-01-14 Thread Kenneth Adam Miller
Thank you andre and Reid :) On Thu, Jan 14, 2010 at 6:04 AM, Reid Thompson reid.thomp...@ateb.comwrote: On 1/14/2010 4:21 AM, Andrey Voropaev wrote: The one I've once used is 'indent' (http://www.gnu.org/software/indent/indent.html) ditto, as well as cb, bcpp and one 'jalopy' that was

Pretty code program (for all developers)...

2010-01-13 Thread Kenneth Adam Miller
Recently, as I was asking for help on IRC I posted my code. Someone said it looked ugly. Of course, there are many coding preferences and one of them is spacing style. I was thinking about writing a simple vim plugin that could reformat source code to make it look according to a sample, and then

Re: automatic comments not working anymore

2010-01-11 Thread Kenneth Adam Miller
There's a comment plugin at the vim site that you can just get by downloading it after searching for comment I mean, it's not pretty, it doesn't offer really good stuff, but just by pressing ctrl+c you can comment a lot of lines. I know it's probably not what you're looking for, but with some

  1   2   >