Am 28.11.2020 um 01:05 schrieb Charles Campbell:
I'm having a bit of a problem with map(). I've had problems with map()
before, and consequently I really really hate to use it.
Here goes:
1: construct a comment:
" Testing: one two | three four | five | six |
"seven | eight
Am 19.08.2020 um 21:11 schrieb 'J S' via vim_use:
But I am curious as to why you say that the Vim Developers are trying
to avoid adding options. Is there any intrinsic reason why adding
options is undesirable?
I think it's more about the option in question:
(1) a global silent mode can too easi
Am 28.06.2020 um 16:48 schrieb Yegappan Lakshmanan:
Hi,
Try pressing Tab after entering the following (you need a space after Ni):
:hi Ni
I haven't noticed this easter egg mentioned before.
- Yegappan
Nice find for the 20 year an-Ni!-versary of Vim 5.7
(version for PC compiled Jun 24 20
Am 27.06.2020 um 16:59 schrieb Maxim Abalenkov:
Dear all,
I hope all is well with you. This is my first post to the vim mailing
list. I use vim for a long time and would consider myself a power
user. Occasionally, I need to type documents in Russian in LaTeX
format. To use Russian in vim I follo
Am 10.06.2020 um 12:05 schrieb Manas:
Hi guys, I want to know if it is possible to input digraphs
continuously.
To some extent, everything is possible.
For example, when writing some math related assignment, often I have
to write many symbols which I do using digraphs. But using
every time s
Am 27.04.2020 um 02:37 schrieb M Kelly:
Hi,
Is there a way to be in visual mode with some text highlighted and
popup a menu and keep the highlighted text during and after the popup
menu ?
thx, -m
I would think it could make sense for some popup menu entries, but not all ...
how about an examp
Am 08.04.2020 um 01:19 schrieb M Kelly:
Hi,
Is there a way to do an inline conditional such as for demonstration:
vnoremap':let [line_start, col_start] = getpos("v")[1:2] :let [line_end, col_end]
= getpos(".")[1:2] (line_end > line_start) ? "ge" : "b"'
I can do something in a function b
Am 17.01.2020 um 22:48 schrieb Erhy:
don't see the simple solution?
please tell me
Erhy
Get Vim 8.2.0128 and then use
:set!
--
Andy
--
--
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
Am 17.01.2020 um 19:39 schrieb Bram Moolenaar:
Andy Wokula wrote:
Am 15.01.2020 um 22:22 schrieb Erhy:
Hello!
I want to compare the options set in VIM.
Do you know, how to format of set all output
that I have *for each option a separate line *?
Thank you for tips
Erhy
Apparently
:set
Am 17.01.2020 um 08:48 schrieb Ni Va:
Hi,
Would like to match a string onto a part of List starting to Nth index ?
Thank you
Check out match(), matchstr(), matchstrpos() etc with List argument for {expr}
and {start} index.
--
Andy
--
--
You received this message from the "vim_use" maillist.
Am 15.01.2020 um 22:22 schrieb Erhy:
Hello!
I want to compare the options set in VIM.
Do you know, how to format of set all output
that I have *for each option a separate line *?
Thank you for tips
Erhy
Apparently
:set
always (?) produces multi-column output.
(sounds like one of those lit
Am 12.01.2020 um 21:48 schrieb Stevew:
thanks for your responses.
I'm really just looking for a command line option as I mentioned. I
didn't seem one and it appears there is none.
As far as being in memory or history. I'm not that concerned. The
files are not exactly the col
Am 16.11.2019 um 12:25 schrieb Matteo Landi:
Hello everyone,
I have been battling with trailing ^M on Windows
Are you using the Cygwin version of Vim?
:echo has('win32unix')
--
Andy
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the te
Am 15.10.2019 um 04:00 schrieb sergio:
Hello.
I'd like to publish my first script on vim.org. It updates bindzone's
serial on BufWrite. It's file type plugin, but not to be placed in
ftplugin folder.
So it's a file type plugin that's not a file type plugin?
Eg you can do `:au Bindzone BufWrit
Am 10.10.2019 um 10:44 schrieb Ni Va:
Don't understand why it returns 2 first chars on this example :
+ 20191009_191004_Vim.8.1.2125/
4.0 KiB [D] 2019-10-
echo substitute(getline(line('.')),'^..\zs\(.\+
Am 09.10.2019 um 14:16 schrieb Ni Va:
Anything chars contained in windows'filename before a lot of spaces
and begining on third char after start of line.
Anything chars of filename= \w\s-_. many times
^..filenamesome others chars.*$
/^..\zs.\+$
List of
Am 27.09.2019 um 08:06 schrieb 'J S' via vim_use:
Vim 7.something under (MS) Windows 7.
I want to do the equivalent of:
:!start http://something
But that doesn't work.
You need to put a space after `!':
:! start http://something
Non-blocking:
:sil ! start http://something
If you pu
Am 13.09.2019 um 13:24 schrieb Renato Fabbri:
I am almost sure I was able to do this...
Example:
:colo
shows the available colorschemes.
If I want to have them in a variable,
redir @a
colo ^D
redir END
does not work, in any variation of colo ^D I tried
(exe 'colo ^D', exe 'colo ', etc).
He
Am 29.08.2019 um 17:36 schrieb Christian Brabandt:
On Do, 29 Aug 2019, Christian Brabandt wrote:
On Di, 27 Aug 2019, Gary Johnson wrote:
On 2019-08-28, Christian Brabandt wrote:
On Di, 27 Aug 2019, Gary Johnson wrote:
I just tried exposing the search count message by removing 'S' from
's
Am 14.08.2019 um 21:51 schrieb Kai Weber:
* 'Andy Wokula' via vim_use :
The plugin srstevenson/vim-picker defines a list of mappings:
I read those https://github.com/srstevenson/vim-picker README for you:
it suggests :nmap for your mappings ... no cargo-cult here.
You are righ
Am 14.08.2019 um 16:26 schrieb Kai Weber:
The plugin srstevenson/vim-picker defines a list of mappings:
I read those https://github.com/srstevenson/vim-picker README for you:
it suggests :nmap for your mappings ... no cargo-cult here.
--
Andy
--
--
You received this message from the "vim_use
Am 01.08.2019 um 14:49 schrieb Kai Weber:
I found out about 'setglobal' and read the documentation. It seems I am
still confused and think that 'set' is more global than 'setglobal'
despite the name suggests.
I tried to set my spelllang with setglobal
First note that spelllang is a "buffer-lo
Am 17.05.2019 um 20:11 schrieb Shlomi Fish:
On Fri, 17 May 2019 19:36:26 +0200
"'Andy Wokula' via vim_use" wrote:
Am 17.05.2019 um 14:15 schrieb Shlomi Fish:
Hi all!
With gvim -U NONE -u NONE .jwmrc (which the XML file here
https://github.com/shlomif/shlomif-computer-
Am 17.05.2019 um 14:15 schrieb Shlomi Fish:
Hi all!
With gvim -U NONE -u NONE .jwmrc (which the XML file here
https://github.com/shlomif/shlomif-computer-settings/blob/master/shlomif-settings/jwm/jwm.jwmrc
) pressing Ctrl-x and ctrl-f in insert mode in line 130 causes $HOME to expand
into /home/
Am 09.05.2019 um 20:20 schrieb Mathieu Roux:
I have so many questions:
1) map :set isk+=#-normal *
Vim's help about "bar" does not allow me to understand what it means.
Relevant help sections are
:h :bar
:h
The bar character `|' separates most Ex-commands. And to escape the
special
Am 07.05.2019 um 20:52 schrieb Mathieu Roux:
On lun., 2019-05-06 at 20:52 +0200, 'Andy Wokula' via vim_use wrote:
Am 06.05.2019 um 15:33 schrieb Tony Mechelynck:
On Sun, May 5, 2019 at 9:35 PM Gary Johnson
wrote:
On 2019-05-05, Mathieu Roux wrote:
On dim., 2019-05-05 at 18:50 +
Am 06.05.2019 um 17:02 schrieb 'Lifepillar' via vim_use:
I would like to create a new buffer "in the background", without opening
any new window, put some text into the buffer then write it to disk,
without ever showing the buffer (the reason why I am not populating
a List and use writefile() dir
Am 06.05.2019 um 15:33 schrieb Tony Mechelynck:
On Sun, May 5, 2019 at 9:35 PM Gary Johnson wrote:
On 2019-05-05, Mathieu Roux wrote:
On dim., 2019-05-05 at 18:50 +0200, Tony Mechelynck wrote:
On Sun, May 5, 2019 at 6:44 PM Mathieu Roux wrote:
Hello,
I would like to search the word under m
Am 14.03.2019 um 21:21 schrieb nivaem...@gmail.com:
Hi All,
I'm wokring on that kind of files'content, initially configured with ff=dos,
ffs=unix,dos
1/ Instead of the whole content up above, I see only one line with ^M in place
of endline CR LF.
2/ Copying this inline containing ^M in
Am 07.03.2019 um 21:32 schrieb John Passaro:
The mapping is implemented essentially like this:
nmap =* :set operatorfunc=SetSearchPatterng@
This function sets the search pattern @/ and does a couple of other
things. If I set v:searchforward inside it, the assignment is
ignored.
Maybe you can
Am 08.01.2019 um 19:09 schrieb Gua Chung Lim:
Hi all,
I'm trying to create a syntax for my own mine.vim.
I always highlight [words between square brackets in one line] in red.
What if the mentioned square brackets are nested like ...
[words [inside another brackets]]?
I got red color only the fi
Am 02.01.2019 um 15:01 schrieb David Fishburn:> :ver
VIM - Vi IMproved 8.1 (2018 May 18, compiled Dec 30 2018 14:48:55)
MS-Windows 32-bit GUI version with OLE support
Included patches: 1-662
I have the following augroup:
augroup MyTest
autocmd!
autocmd FocusGained * :if has('clipboar
Am 08.12.2018 um 14:16 schrieb M Kelly:
Hi,
Something like:
:update|next
perhaps?
ok, cool. I didn't know about :update.
(I could even maybe handle E163, E165 for the last one)
take care,
and thank you and everyone for vim,
-m
and check out
:h 'autowrite
--
Andy
--
--
You rec
Am 26.11.2018 um 14:38 schrieb Vladimir Stenbock:
If you want to convert strings of hexadecimal (0xa), octal (0755),
binary (0b) to integers, you can use unary + operator.
:echo +'0xa'
=> 10
:echo +'0755'
=> 493
:echo +'0b'
=> 240
P.S.
Vim script can treat an exponential notat
Am 13.09.2018 um 17:10 schrieb Dave Woodfall:
I'm trying to detect whether or not a g// command worked by checking
v:errmsg. AFAICT this is almost identical to the example to the
example in :help errmsg, although there it is using 'silent! next':
let v:errmsg = ""
silent! g/^>/
if v:errmsg == "
Am 13.06.2018 um 21:04 schrieb Bok Woon Chua:
I don't use the cursorline, but I would find it helpful to set it
during a whenever I press 'n' or 'N' to make the line of the current
search match pop out. However once I press anything other than n or
N, I'd like to turn the cursorline off. I can do
Am 02.06.2018 um 09:29 schrieb Bram Moolenaar:
Andy Wokula wrote:
Am 01.06.2018 um 08:25 schrieb dmcco...@comcast.net:
Hello,
I have encountered what appears to be a bug in vim,
but it might be a feature that I would like to disable.
To reproduce the problem:
Use vim to create a new file,
Am 01.06.2018 um 08:25 schrieb dmcco...@comcast.net:
Hello,
I have encountered what appears to be a bug in vim,
but it might be a feature that I would like to disable.
To reproduce the problem:
Use vim to create a new file, and add 10 or so lines of text to the file.
In the first line, put at
Am 13.05.2018 um 22:24 schrieb M Kelly:
Yes, this is default behaviour on linux. You need to remap
first, then map .
thx so much
nnoremap
works great :-)
-mark
Same on Windows.
You don't need .
I'd rather map
:nnoremap
--
Andy
--
--
You received this message from the "vim_use"
Am 02.05.2018 um 17:04 schrieb Yegappan Lakshmanan:
Hi all,
The plugins available at https://github.com/vim-scripts are not
updated for a long time now. This is supposed to mirror
the latest plugins from www.vim.org. Is the maintainer of
https://github.com/vim-scripts still subscribed to this l
Am 10.02.2018 um 17:40 schrieb Ni Va:
Hi,
Like :h ruby says, I use this kind of script ruby interface below.
How can i make vim switch automatically to ruby syntax in EOF section and rest
of time stay in vim syntax ?
Thank you
Example Vim script: >
function! RedGem()
ruby <<
Am 08.02.2018 um 18:56 schrieb Ni Va:
Hi,
I got a list and would get index of item matching a pattern.
index(list, string_item) works
index(list, pattern_item) ??
match(list, pattern)
--
Andy
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply belo
Am 11.12.2017 um 03:16 schrieb Pablo Giménez:
Hello.
I want to customize some of the shortcuts in Netrw.
I have seen it provides a global variable which is a dictionary of key mappings
and function calls.
I paste here a snippet from the help:
Example: Clear netrw's marked file list via a mappin
Am 10.11.2017 um 13:55 schrieb Renato Fabbri:
I did not find explicitly in the manual,
e.g. in :h key-notation, so...
does anyone know if there is any difference in:
, ,
for Vim?
It's all the same, and the preferred notation is `'.
But at least for gVim, `' is different from `'.
Also, when
Am 28.08.2017 um 19:02 schrieb Graham Lawrence:
I have the customary mappings for :help,
nmap :exec "help " . expand("")
nmap :exec "help " . expand("")
and have been trying to develop similar do the option on the cursor
word, something like
nmap \\ yiw:h ^R"^[
But ^[ means
Am 19.08.2017 um 08:17 schrieb Lifepillar:
It seems impossible to have autocmd! followed by another command, i.e.:
autocmd! some_group |
According to `:help autocmd`, autocmd may be followed by another command
when the '|' appears before {cmd}. This does not seem to be the case for
autocmd!. I
Am 14.08.2017 um 17:06 schrieb 'Andy Wokula' via vim_use:
Am 11.08.2017 um 21:08 schrieb Ben Fritz:
On Thursday, August 10, 2017 at 10:57:27 AM UTC-5, Chris Lott wrote:
I'm constantly needing to wrap a series of comma separated titles
with html tags, so this:
John has pu
Am 11.08.2017 um 21:08 schrieb Ben Fritz:
On Thursday, August 10, 2017 at 10:57:27 AM UTC-5, Chris Lott wrote:
I'm constantly needing to wrap a series of comma separated titles
with html tags, so this:
John has published work in foo, fubar, boo review, and many more.
Becomes this
Am 22.05.2017 um 20:14 schrieb Brett Stahlman:
I would like to be able to save and restore mappings
programmatically. In order to do so, however, I need to be able to
determine the exact lhs and rhs used to create the mapping. I had
assumed the lhs/rhs members of the dictionary returned by maparg
Am 11.05.2017 um 18:52 schrieb Efraim Yawitz:
Hi,
The docs for the matchit plugin say that the mappings in it may cause
strange behavior, but I think this example is worth noting.
I was trying to do yV% on lines like this:
#ifdef SOMETHING ... #endif //SOMETHING
expecting to yank all the line
Am 12.03.2017 um 21:56 schrieb George Skuse:
Hi,
vim -c "silent edit filename.txt" starts vim with an unsaved file named
filename.txt...
I'd like to have the filename dynamically datestamped (MMdd_hhmmss), ie:
filename-20170312_165737.txt
Does anyone know how this could be accomplished a
Am 29.11.2016 um 20:18 schrieb Brett Stahlman:
The 'write-plugin' section of the help recommends the following
3-level map approach:
map ,c TypecorrAdd
noremap
Am 04.11.2016 um 21:35 schrieb Bryce Orgill:
Was that a change that was put in version 8? In my opinion that is a
big change. It now means I can't yank in the global command or in
macros. I have macros and scripts that use this. It means it won't
work there. I have to also use the 'set clipb
Am 28.09.2016 um 18:45 schrieb Bee:
In a 'normal' version of vim
:lcd %:h
will change to the directory of the current file by stripping the
filename from the full path.
But in a 'small' vim '%:h' does not exist and '%' refers to the full
file path.
Is there a way in 'small' vim to strip the f
Am 31.03.2016 um 17:40 schrieb Axel Bender:
Given the following description in the docs
"The global commands work by first scanning through the [range] lines and
marking each line where a match occurs (for a multi-line pattern, only the
start of the match matters).
In a second scan the [cmd] is
Am 26.03.2016 um 21:03 schrieb Gary Johnson:
On 2016-03-26, Andy Wokula wrote:
if has("vim_starting")
" init on VimEnter
else
" init immediately
endif
That's a very odd application of has().
The has() function is clearly intended to indicate presence or
absence of some feature that is
Am 03.02.2016 um 11:13 schrieb Elmar Hinz:
Hello,
I am working on a Python clone of vim, which requires to inspect Vim
behaviour in detail. Some behaviour looks odd and I like to know if
it is a bug or what is the reasoning of that behaviour. This is my
first observation:
Given, cursor on first
Am 04.12.2015 um 13:01 schrieb Christian Brabandt:
Hi,
let's say I have script, that wants to work on the last visually
selected region, e.g. highlight it.
Is there any way, to find out, whether the last block-wise selected
region used '$' for selection (see :h v_$) or not? This matters, since
w
Am 19.11.2015 um 23:23 schrieb Dmitri Vereshchagin:
More precisely question is about unmapping. I am using keymap to edit
texts in Russian. In my vimrc I have
set keymap=russian-jcukenwin
set iminsert=0
set imsearch=-1
When langmap mappings are enabled it translates `#' to `№'
59 matches
Mail list logo