Re: Need a vim hard mode tutorial.

2013-05-13 Thread AK
need to remember 2 absolute line locations, e.g. 5 and 25 and go there directly without having to look them up, irrespective of current line location. -ak -- -- 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

Re: ANN: YankRing 17.0

2013-04-28 Thread AK
Hi David, one issue I've run into with yankring is that if I make a recording using q command, it works fine as I record it, but once I try to play it back, it gets stuck on a command like dt and yankring asks for a character. I use Vim 7.3. Is there a workaround for this? Thanks, -ak On 04

Re: ANN: YankRing 17.0

2013-04-28 Thread AK
does not show me patch number. Can you give me a line of text, and the macro you recorded. I don't see the problem when I record a macro with dt with version 17.0. e.g. line: join(SITE_ROOT, templates/forum), record commands: wdt^P when executing, I get Yankring: enter character: -ak

Re: clicking to open folds in Gui?

2013-04-02 Thread AK
of space one could put leftmouse or whatever. I actually would love to use mouse click for that, BUT: 1. it doesn't work for me, instead moving 1 char to the right, like l. 2. if I get it to work, how can I make it behave as a normal click when it's not on a fold? Thanks! -ak -- -- You

Re: Vim on the iPad

2013-03-07 Thread AK
can't understand how people can use touch keyboard for anything more than 5-8 characters at a time like typing in a url or something like that. -ak -- -- 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

conceal HTML tag attributes

2013-02-21 Thread AK
Hi, I would like to accomplish the following: tag attr1='val' attr2='val' /tag concealed: tag /tag I've mucked around with html.vim syntax file but I can't get anything to work, not even some very simplified example: syn match cTag +[a-z]\++ contained conceal containedin=concTag syn region

Re: Swap file already exists

2012-04-10 Thread AK
above the menu choices. I think it should also emphasize that, when swap file is recovered, the original is not deleted, and when the original opened, swap file is not deleted, because that's not immediately obvious to a new user. -ak -- You received this message from the vim_use maillist. Do

How to do a relative paste?

2012-04-10 Thread AK
| indicates where it should be pasted. It should end up looking like: style li { float: left } #slide { top: 10px; } /style It seems like a pretty reasonable default paste behaviour, doesn't it? -ak -- You received this message from the vim_use maillist. Do not top-post! Type

Re: How to do a relative paste?

2012-04-10 Thread AK
On 04/10/2012 06:22 PM, Benjamin R. Haskell wrote: On Tue, 10 Apr 2012, AK wrote: Hi, how can I paste keeping both the original indent and the indent of pasted text, but not increasing with each line? It sounds like you want ]p See: :help ]p That doesn't work for me when pasting from

Re: Swap file already exists

2012-04-09 Thread AK
to show the diff, when the choices are displayed. -ak -- 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: Swap file already exists

2012-04-09 Thread AK
On 04/09/2012 02:49 PM, Gary Johnson wrote: On 2012-04-09, AK wrote: I just want to comment that I find the 'swap file already exists' thingy to be very un-userfriendly. I think it would be immensely more useful if it first showed a text-only diff of the file and swap file, and then only gave

Re: Paste whole block by line number

2012-04-04 Thread AK
. -ak -- 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: don't want to type _

2012-04-03 Thread AK
On 04/03/2012 01:23 AM, sinbad wrote: i'm tired of typing underscore_ and - in insert mode, is there any way i can get around this. i thought of using abbr, but it won't work if its in word_like_this. any thoughts ? cheers Swap _ and - in code files via a mapping. -ak -- You received

Re: Paste whole block by line number

2012-04-03 Thread AK
be used to move or copy a whole block of text, specified by line number, to some other line-number specified block? Please see :help :copy and :help :move -ak -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying

Re: Paste whole block by line number

2012-04-03 Thread AK
the line number, so you need to have :set number option. -ak -- 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: Bash's vi command line editing mode

2012-03-27 Thread AK
while in the shell, not while in vim: Try 0D (move cursor to beginning of line, delete contents from cursor to end-ofline) Regards, Chip Campbell I think dd is easier. The OP said, though, that he is talking about vim launched from command line. -ak -- You received this message from

Re: Bash's vi command line editing mode

2012-03-27 Thread AK
On 03/27/2012 12:27 PM, Charles Campbell wrote: AK wrote: On 03/27/2012 12:03 PM, Charles Campbell wrote: Ven Tadipatri wrote: Well...duh..there's an easy fix for this. Just prefix the command with '#' Then hit :wq to save it and run it. Still...why does it behave this way? Shouldn't I

Re: Bash's vi command line editing mode

2012-03-27 Thread AK
On 03/27/2012 12:54 PM, Gary Johnson wrote: On 2012-03-27, AK wrote: When you hit Esc and v in bash (or zsh), it does start the vim editor, and when you exit it, it puts the buffer in command line, it doesn't run it immediately but waits for you to press Enter. It has never waited for me

Re: Bash's vi command line editing mode

2012-03-23 Thread AK
on it, and then exiting will run the saved version. I also use the same dd command when I edit the regular command line and then decide I don't want to run it. -ak -- 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

Re: Bash's vi command line editing mode

2012-03-23 Thread AK
that. -ak -- 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

random :set noet

2012-03-23 Thread AK
I have :set expandtab in my .vimrc but sometimes 'noet' gets set in other files, for example in .html files. I searched all of my plugins and I don't see any obvious offenders. I also tried doing :verbose set et? , but that doesn't tell me where it was set from, I'm not sure why? Thanks! -ak

Re: random :set noet

2012-03-23 Thread AK
On 03/23/2012 11:27 PM, Tim Chase wrote: On 03/23/12 20:45, AK wrote: I have :set expandtab in my .vimrc but sometimes 'noet' gets set in other files, for example in .html files. I searched all of my plugins and I don't see any obvious offenders. I also tried doing :verbose set et

Re: random :set noet

2012-03-23 Thread AK
On 03/23/2012 11:54 PM, Tim Chase wrote: On 03/23/12 22:51, AK wrote: Checked for 'cp', it's not being set anywhere.. I should add that this happens very rarely Since it happens rarely and doesn't seem to be easily reproducible, it would be interesting to see what :verbose set cp

Re: Trouble with :echomsg and html_autoclosetag

2012-03-15 Thread AK
reason (or is returning before your message). Did you exit and re-load Vim after modifying the plugin? Sorry - dumb mistake - there was another script in the directory with a similar name. Got it working now. -ak -- You received this message from the vim_use maillist. Do not top-post! Type

vim.org ratings

2012-03-14 Thread AK
I have absolutely no idea what e.g. 116/47 rating for a script on vim.org means, I bet 99.9% of new users to the site don't, either, and there's no explanation or a link to explanation anywhere near it. -ak -- You received this message from the vim_use maillist. Do not top-post! Type your

Re: vim.org ratings

2012-03-14 Thread AK
On 03/14/2012 12:35 PM, Taylor Hedberg wrote: AK, Wed 2012-03-14 @ 12:32:44-0400: I have absolutely no idea what e.g. 116/47 rating for a script on vim.org means, I bet 99.9% of new users to the site don't, either, and there's no explanation or a link to explanation anywhere near it. Yes

Re: vim.org ratings

2012-03-14 Thread AK
On 03/14/2012 12:55 PM, Taylor Hedberg wrote: AK, Wed 2012-03-14 @ 12:51:47-0400: It does not appear in navigation sidebar for me, only on the 'site help' page. You have to click on Scripts in the sidebar, and then Karma appears underneath it. Well, think of how a typical user might try

Re: vim.org ratings

2012-03-14 Thread AK
the explanation, I don't think there would be much of a problem. Yeah, sorry - didn't mean to sound so irate. -ak -- 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

Trouble with :echomsg and html_autoclosetag

2012-03-14 Thread AK
command, it's not displayed. What could be causing this? -ak -- 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 current line up

2012-03-13 Thread AK
the most hth, sc I think alt-k and alt-j are really handy mapping for these commands. -ak -- 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: Vim Script that displays site-packages source python

2012-02-28 Thread AK
to navigate to the code you want to see. That's what I do and it works really well. -ak -- 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

Suggestion: change in open fold by mouse behaviour

2012-02-28 Thread AK
of it after it's open is to scroll a few screens up. I run into this all the time. It's much easier to jump back with ctrl-o than to page up unknown number of times. What do you guys think? -ak -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you

Applying PEP8 to python sources

2012-02-20 Thread AK
( .., myvar) TO: func_call( .., myvar) I think that covers the most hard to read, annoying to fix things.. -ak -- You received this message from the vim_use maillist. Do not top-post! Type your reply

Re: vim-orgmode

2012-02-02 Thread AK
ext should be .org. How I found out: in ftdetect dir, there is a file org.vim. The name should correspond to the extension it applies to. Also: readme included is README.org. HTH, -ak -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you

Re: Better vertical align in code

2012-01-31 Thread AK
On 01/31/2012 10:36 AM, Ben Fritz wrote: I think it's funny that I read AK's when editing code as when editing C code, and you seem to have done the same, but apparently editing code was so self-evidently python for AK that it wasn't even mentioned in the post. Proof that everyone sees

Better vertical align in code

2012-01-30 Thread AK
Hi, when editing code, my vim setup indents next line to align with a brace from line above, e.g.: myvariable_name = ( |) But if I manually backspace the line to be closer to start of line: myvariable_name = ( x = something, |) On carriage return the

Re: Better vertical align in code

2012-01-30 Thread AK
On 01/30/2012 05:38 PM, Gary Johnson wrote: On 2012-01-30, AK wrote: Hi, when editing code, my vim setup indents next line to align with a brace from line above, e.g.: myvariable_name = ( |) But if I manually backspace the line to be closer to start of line

Re: Why is caret (^) so slow?

2012-01-29 Thread AK
have found this to be so. 0w is way faster, but may not always be the desired result. For me, it's instantaneous, and always been like that (I'm using gvim). What does :map ^ show? -ak -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you

Re: What did I do?

2012-01-24 Thread AK
to look at :h tm I took a look at it. Uncertain of the reason for the reference. It controls how quickly or slowly you can press the key sequence and have it trigger the mapping or not. c -- Chris Lottch...@chrislott.org Should be :h 'tm -ak -- You received this message from the vim_use

Re: foldtext question

2012-01-15 Thread AK
=~ '^\s*class\s' | let c = '(c)--' | endif let line = prefix . '+--' . c . ' ' . line -ak -- 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: foldtext question

2012-01-15 Thread AK
On 01/15/2012 01:56 PM, Gary Johnson wrote: On 2012-01-15, AK wrote: It does work for me but I'm dealing with lines that have leading spaces and I add leading spaces, here is a relevant snip: let l = getline(v:foldstart) let line = substitute(l, '^[ ]*', '', '') let prefix

Relative number 'jumps'; question about relative numbers

2012-01-13 Thread AK
a feature request to have an option to have relative numbers work in this fashion. Thanks! -ak -- 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: Request for feature upgrade/enhancement.....

2012-01-12 Thread AK
cleaner and more powerful. -ak -- 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: Request for feature upgrade/enhancement.....

2012-01-12 Thread AK
to make small changes or extensions to editor functionality, where a general purpose language would work perfectly well. -ak -- 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: Request for feature upgrade/enhancement.....

2012-01-12 Thread AK
for Vim, but either python, ruby or JS or perl would be fine. -ak -- 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: Request for feature upgrade/enhancement.....

2012-01-12 Thread AK
likely negligible. The one real issue is that this would be hard to do.. -ak -- 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

Don't repeat change that is not a change

2011-11-29 Thread AK
Sometimes I accidentally enter insert mode and then exit it, this causes . command to reset.. Is there any way to tell vim that, if there was no change, it does not count as last change? -ak -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text

Re: Can't find tag!

2011-11-17 Thread AK
On 11/17/2011 05:40 PM, John Little wrote: On Nov 17, 4:40 am, AKandrei@gmail.com wrote: My guess is that if vim sees a tag file with any tags from current file, it stops searching other tag files and assumes current tag does not exist? -ak (I was hoping someone who'd used tags

Re: Can't find tag!

2011-11-16 Thread AK
not exist? -ak -- 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

Can't find tag!

2011-11-15 Thread AK
. How do I debug something like this? Thanks!, -ak -- 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: Can't find tag!

2011-11-15 Thread AK
On 11/15/2011 06:59 PM, Andy Wokula wrote: Am 15.11.2011 23:39, schrieb AK: When I do :tag trim_headers , I get 'tag pattern not found' error, even though this tag is in tags file and tags file is in :set tags. Some other tags can be found, though (in the same file), and some more tags also

Re: python scripting: how to set the contents of a register.

2011-11-12 Thread AK
for your help. command('let @a = abc') -ak -- 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: python scripting: how to set the contents of a register.

2011-11-12 Thread AK
On 11/12/2011 08:57 AM, Gelonida N wrote: On 11/12/2011 02:29 PM, AK wrote: On 11/12/2011 08:15 AM, Gelonida N wrote: Hi, I know how to ge the contents of a register. reg = vim.eval('@0') fetches for example the contents of register 0 However I did not find a way to set a register

Re: python scripting: how to set the contents of a register.

2011-11-12 Thread AK
On 11/12/2011 05:39 PM, Gelonida N wrote: On 11/12/2011 11:16 PM, Gelonida N wrote: On 11/12/2011 03:02 PM, AK wrote: If I rephrase my question for non python users: How can I write a vim command, that puts fuloowing five characters in register '0' single_quite, double_quote, escape

Re: python scripting: how to set the contents of a register.

2011-11-12 Thread AK
On 11/12/2011 06:49 PM, Gelonida N wrote: On 11/12/2011 11:46 PM, AK wrote: def setreg(regname, val): sets register regname to string val all it does is replace with \ and use the 'let' command to set a register val = val.replace('',r

Re: python scripting: how to set the contents of a register.

2011-11-12 Thread AK
On 11/12/2011 08:04 PM, Gelonida N wrote: On 11/13/2011 01:27 AM, AK wrote: On 11/12/2011 06:49 PM, Gelonida N wrote: On 11/12/2011 11:46 PM, AK wrote: Knowing almost nothing about vim scripting, but knowing basic vim commands and knowing python quite well I was looking for the 'basic

Re: python scripting: get current visual selection

2011-11-11 Thread AK
-buffers and not the 'yank-buffers' Thanks a lot in advance. I think this should work: text = vim.eval(@a) print len(text) They are called registers, not yank buffers, and to get their value in script, see :h @r -ak -- You received this message from the vim_use maillist. Do not top-post! Type

Re: python scripting: get current visual selection

2011-11-11 Thread AK
On 11/11/2011 12:49 PM, Gelonida N wrote: On 11/11/2011 06:39 PM, AK wrote: On 11/11/2011 12:16 PM, Gelonida N wrote: Hi, I am rather new to the python scripting module of vim. I wanted to write a small test script, which is analyzing all text, that I yanked into named buffers. (not sure

Re: replacing all characters in the current line?

2011-11-02 Thread AK
often very useful, and I'd use it in this case if the line was indented. -ak -- 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: ANNC: DrawIt now supports utf-8 box drawing characters

2011-11-02 Thread AK
? Maybe single line and double line? -ak -- 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: Mapping shortcuts

2011-10-31 Thread AK
there means 'carriage return', i.e. Enter. -ak -- 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: Mapping shortcuts

2011-10-31 Thread AK
a vim expert and know exactly the command you need? Boy, do we have a really great tool to help you find it! Vim has a really great help system.. one of the best help systems I've used... for ~2-3,000 lines of content. Unfortunately, it has 130,000 lines of help. -ak -- You received

Re: how to make 'h,j,k,l' faster ?

2011-10-28 Thread AK
!!! -ak -- 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: how to make 'h,j,k,l' faster ?

2011-10-28 Thread AK
is not something I need that often. Absolute line number would need an extra column or two. I have relative line numbers column set to 3 - 2 digits and one column of padding (which looks like it's not possible to remove?) -ak -- You received this message from the vim_use maillist. Do not top-post

Re: Disabling ultra-annoying drag text with html markup from browsers

2011-10-23 Thread AK
or anything else, and a typical webpage will have the text surrounded by a great amount of unreadable markup that then has to be deleted. (This is on linux, by the way). -ak -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying

Re: Disabling ultra-annoying drag text with html markup from browsers

2011-10-23 Thread AK
great editor (I think vim is the most impressive program I've used). -ak -- 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

Disabling ultra-annoying drag text with html markup from browsers

2011-10-22 Thread AK
drops by default and have it available as an option? -ak -- 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: Disabling ultra-annoying drag text with html markup from browsers

2011-10-22 Thread AK
On 10/22/2011 05:00 PM, AK wrote: Hi, I asked about this (Disabling drag text with html markup from browsers) about a month ago and I finally got around to trying to find a fix and was able to do this by recompiling Gvim with following lines commented out: static const GtkTargetEntry

Re: How to conceal entire line including newline?

2011-10-07 Thread AK
about comments getting out of sync with the code, first of all because it happens all the time anyway and I do a review of all comments at the end of a session and update them all in one go. -ak -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text

How to conceal entire line including newline?

2011-10-05 Thread AK
Hi, I want to have an overview of code without comments or docstrings, with their lines completely omitted when in conceal mode, without showing them as blank lines. How can I do that? Thanks, -ak -- You received this message from the vim_use maillist. Do not top-post! Type your reply below

Re: How to conceal entire line including newline?

2011-10-05 Thread AK
On 10/05/2011 02:41 PM, Christian Brabandt wrote: Hi AK! On Mi, 05 Okt 2011, AK wrote: Hi, I want to have an overview of code without comments or docstrings, with their lines completely omitted when in conceal mode, without showing them as blank lines. How can I do that? You can't. Use

Re: How to conceal entire line including newline?

2011-10-05 Thread AK
On 10/05/2011 03:36 PM, Christian Brabandt wrote: Hi AK! On Mi, 05 Okt 2011, AK wrote: On 10/05/2011 02:41 PM, Christian Brabandt wrote: On Mi, 05 Okt 2011, AK wrote: Hi, I want to have an overview of code without comments or docstrings, with their lines completely omitted when in conceal

Re: How to conceal entire line including newline?

2011-10-05 Thread AK
On 10/05/2011 04:11 PM, Christian Brabandt wrote: Hi AK! On Mi, 05 Okt 2011, AK wrote: On 10/05/2011 03:36 PM, Christian Brabandt wrote: Hi AK! On Mi, 05 Okt 2011, AK wrote: On 10/05/2011 02:41 PM, Christian Brabandt wrote: On Mi, 05 Okt 2011, AK wrote: Hi, I want to have an overview

Re: How to conceal entire line including newline?

2011-10-05 Thread AK
On 10/05/2011 05:37 PM, Christian Brabandt wrote: Hi AK! On Mi, 05 Okt 2011, AK wrote: I would be willing to spend a few hours on this, but if it's going to be harder than that, I'll just use folding and syntax highlight to make folds invisible. I think this is harder then it sounds, because

Dealing with virtual indent inside a function

2011-10-02 Thread AK
with this but I don't know where it is or how it works, so if someone can point this out, that might help. Because I have another function that closes popup menu before triggering snippet when tab key is pressed, snipmate's workaround for this does not work. Any help appreciated! -ak -- You

Re: Insert a tab or call a function

2011-09-29 Thread AK
On 09/29/2011 08:15 AM, Christian Brabandt wrote: On Thu, September 29, 2011 1:52 pm, AK wrote: On 09/29/2011 01:58 AM, Benjamin R. Haskell wrote: On Wed, 28 Sep 2011, AK wrote: Hi, I'm trying to write a small function that is called when I press tab key and checks if current line is empty

Re: Insert a tab or call a function

2011-09-29 Thread AK
On 09/29/2011 08:15 AM, Christian Brabandt wrote: On Thu, September 29, 2011 1:52 pm, AK wrote: On 09/29/2011 01:58 AM, Benjamin R. Haskell wrote: On Wed, 28 Sep 2011, AK wrote: Hi, I'm trying to write a small function that is called when I press tab key and checks if current line is empty

Insert a tab or call a function

2011-09-28 Thread AK
, TriggerSnippet is a snipmate function that expands current snippet. Thanks! -ak -- 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: Lines displayed in wrong order on 'Load'

2011-09-25 Thread AK
plugins loaded. I'm also not sure why a restart fixed it. I should have tried it before sending the email. Thanks, - ak -- 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

Lines displayed in wrong order on 'Load'

2011-09-24 Thread AK
in latest vim, should I submit a bug report? -ak -- 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: Complete text object?

2011-09-22 Thread AK
of preceding / following text objects. Like 5 or 10. That'd be enough to be very useful. -ak -- 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

Complete text object?

2011-09-21 Thread AK
, in theory (I'm thinking of ideas for a new plugin)? Thanks! -ak -- 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: Repeat last search and replace

2011-09-14 Thread AK
to have to retype the command; dot won't work obviously.) Thanks, Russ Use @: command, see :help @: -ak -- 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: Repeat last search and replace

2011-09-14 Thread AK
to have to retype the command; dot won't work obviously.) Thanks, Russ Oh, and after doing @: once, you can repeat it easier with @@ -ak -- 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

Re: gvim or vim in console...

2011-09-12 Thread AK
with it. +1 except that I sometimes use vim with ctrl-z when using remote ssh session. -ak -- 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: question about foldmethod=indent

2011-09-10 Thread AK
already the very first indentation. I was convinced, that the last time, that I used vim with foldmethod=indent, I was able to fold the first level, but probably I just remember wrong. Thanks in advance for your help It has to be 4, not 5 spaces, I think then it will indent. -ak -- You

Re: reading a singly character from a python script for vim

2011-09-10 Thread AK
press without any prompt. Thanks in advance for suggestions. I think you can do something like: from vim import * c = eval(getchar()) -ak -- 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

Re: reading a singly character from a python script for vim

2011-09-10 Thread AK
On 09/10/2011 09:27 PM, Gelonida N wrote: Hi AK, Thanks a lot. Yes exactly what I was looking for. Now I can dstart a python script from vim and react on a few key presses No problem, glad it works for you. -ak -- You received this message from the vim_use maillist. Do not top-post

Re: The X bug with Gvim

2011-09-07 Thread AK
, so here's hoping for the future... -ak -- 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: repeat command line

2011-09-05 Thread AK
On 09/05/2011 05:01 AM, Joachim Hofmann wrote: Hello, @: repeats the last command line. How can I additionally automatically search for the last command which begings with ! for being executed? Thank You Joachim :!! will run the last :! command. :h :!! -ak -- You received this message

Re: repeat command line

2011-09-05 Thread AK
and running a script over and over. I even have an alt-key shortcut for it. -ak -- 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

Problem with text drag-and-drop from browser to gvim

2011-09-04 Thread AK
, abiword, terminal only get the text dropped without tags. How can I get plain text in Gvim? I know that I can set up a mapping to strip tags, but I hope there's a way to do this automatically. I googled for this issue with no luck. Thanks! -ak -- You received this message from the vim_use maillist

Re: Problem with text drag-and-drop from browser to gvim

2011-09-04 Thread AK
On 09/04/2011 12:40 PM, Marty Fried wrote: On Sun, Sep 4, 2011 at 8:40 AM, AK andrei@gmail.com mailto:andrei@gmail.com wrote: Hi, I often need to copy and paste snippets of text from webpages into gvim. The easiest way to do this is to highlight and drag and drop text

Re: :e handles one file

2011-08-22 Thread AK
on the order of five thousand commands and options that might conceivably work one way or another, one way is chosen as a more reasonable default and the other ways are available via a setting or some workaround. But for this command, out of thousands, it can't be done! -ak -- You received this message

Re: Tweaking $ command

2011-08-22 Thread AK
On 08/22/2011 01:58 PM, ZyX wrote: Reply to message «Re: Tweaking $ command», sent 22:17:27 21 August 2011, Sunday by AK: The 'k' was fixing downward movement of $ command. After replacing with normal! $, it works without that fix. `$' does not move downward on its own. I don't see why

Re: Tweaking $ command

2011-08-22 Thread AK
On 08/22/2011 02:56 PM, ZyX wrote: Reply to message «Re: Tweaking $ command», sent 22:26:44 22 August 2011, Monday by AK: It does move downward. 3$ moves 2 lines downward, etc. Now see this in help. For some reason it was not working before while testing (perhaps forgot to add more lines

Re: Tweaking $ command

2011-08-22 Thread AK
On 08/22/2011 04:01 PM, ZyX wrote: Reply to message «Re: Tweaking $ command», sent 23:08:55 22 August 2011, Monday by AK: I think it's also a particularly bad kludge because it's hard for a user to know what to look for in help system. If I am not mistaking, I found this just as you: from

Re: Tweaking $ command

2011-08-22 Thread AK
, as well. -ak I'm not sure what you mean about it not working right without the count. Without the count, it just acts like $ normally does (with the small exception that Vim remembers that it's in column-X instead of at-the-EOL, so subsequent vertical movements such as j/k stay in the same column

Re: Tweaking $ command

2011-08-21 Thread AK
On 08/20/2011 07:57 PM, ZyX wrote: Reply to message «Tweaking $ command», sent 03:05:13 21 August 2011, Sunday by AK: Is there a better way to do this? 0. You said you want just to change $ command to go to N chars before the end of line but what in this case `k' is doing

Re: Tweaking $ command

2011-08-21 Thread AK
On 08/20/2011 08:03 PM, Tim Chase wrote: On 08/20/2011 06:05 PM, AK wrote: Hi, I was trying to change $ command to go to N chars before the end of line, and found it surprisingly hard to do. Here's what I come up with: func! EndOfLine() exe normal \End let c = v:count let c2 = c - 1 let cmd

  1   2   3   >