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
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
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
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
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
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
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
| 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
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
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
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
. -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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
(
..,
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
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
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
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
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
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
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
=~ '^\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
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
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
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
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
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
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
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
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
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
.
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
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
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
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
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
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
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
-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
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
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
?
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
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
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
!!!
-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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
, 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
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
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
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
, 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
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
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
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
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
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
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
, 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
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
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
, 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
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
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
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
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
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
, 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
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
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 - 100 of 293 matches
Mail list logo