Josef Fortier | 31 Oct 17:28 2014
Picon

Trouble using blockwise actions on visual selections in a function/command

I'm trying to extend a "copy and comment" action (leveraging one of the numerous "smart comment" plugins).
I've a simple line-wise command and was trying to extend to it work on a visual selection.

It looks like vim is set to work linewise (and only linewise) here. Which is not ideal, as rather then
commenting a block all at once, I end up with single line comment -> copy repetitions.

Things I've tried:

A command with -range. This is meant to work in a blockwise fashion

A mapping to a function. I have trouble getting the start end end lines. I've tried using `< and `> but these
values don't get set (maybe the function is called too soon?).

It seems like there should be a way to manipulate visual blocks in a function, but it's not clear to me. Can
someone offer assistance?

-- 
--

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

--- 
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Vlad Ghitulescu | 31 Oct 00:17 2014
Picon
Picon

.vimrc not always used

Hello!

I'm using the current version of MacVim (Sanpshot 73) on an iMac running
OS X 10.10 Yosemite.

I have in my home-directory the .vimrc-file attached below.
However the .vimrc is working only when opening first MacVim and then a
file in a tab. Opening a file via the context-menu or from MacVim via
the menu File > Open opens the file in a standard MacVim-window (see the
two attached screenshots).

Do you have an idea?

Thanks!

Regards,
Vlad

P.S. Here comes my .vimrc:

---
set guifont=Source\ Code\ Pro:h24

" window-size
set lines=43
set columns=80

" linebreak
set textwidth=72
set linebreak
(Continue reading)

Shubham Shaw | 30 Oct 12:57 2014
Picon

header files

#include<dos.h> in gvim shows error what will be the correct header file that i should have to use to get the
desired result 

-- 
--

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

--- 
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Shlomi Fish | 29 Oct 15:18 2014

Fw: vim freeze from inside gnu

Dear ping song,

please make sure to reply to the list or to all recipients as I instruct in the
last line of my signature:

<<<
Please reply to list if it's a mailing list post - http://shlom.in/reply .
>>>

And you didn't reply to my questions.

Regards,

	Shlomi Fish

Begin forwarded message:

Date: Wed, 29 Oct 2014 10:10:10 -0400
From: ping song <songpingemail <at> gmail.com>
To: Shlomi Fish <shlomif <at> shlomifish.org>
Subject: Re: vim freeze from inside gnu

got that, resolved by restarting screen.
for now everything ok,  and I just wanted to quick experiences, not
like reporting a reproducible bug.
thanks anyway.

On Sat, Oct 25, 2014 at 4:18 AM, Shlomi Fish <shlomif <at> shlomifish.org> wrote:
> Hi ping song.
>
(Continue reading)

Jose Caballero | 26 Oct 16:35 2014
Picon

how to join all lines in a paragraph?

Hi,

I have been trying to find in google how to join all lines in a given
paragraph, or a range to lines.
I only found this

:set tw=1000000
gggqJ

or similar recipes.
But that joins all lines in the file.I would be interested only in a
portion of the file. How should I modify that recipe for that?

Thanks a lot in advance.
Cheers,
Jose

-- 
--

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

--- 
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

DwigtArmyOfChampions | 26 Oct 16:09 2014
Picon

Why does "set background" change my font colors?

I understand that "set background=dark" does not change the background color. "Setting this option does
not change the background color, it tells Vim what the background color looks like." Okay, so why does that
change the font colors that I've explicitly set in my colorscheme? And where can I control what happens if
the user sets background to dark or light? (in other words, if background == dark, set the following light
font colors to go with a dark background, else set these dark font colors to go with a light background)?

-- 
--

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

--- 
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

DwigtArmyOfChampions | 26 Oct 15:10 2014
Picon

automatically insert closing parentheses

How do you make it so that Vim automatically inserts a closing parenthesis when you type an opening
parenthesis? Or bracket? Or curly brace?

-- 
--

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

--- 
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Máté Timár | 25 Oct 21:39 2014
Picon

starting vim with defined options

Hi!

I'm a beginner in using vim, and I have a question:

How can I launch vim via terminal (I have ubuntu) with my favourite options?
When I open vim i have to set my favourite options all the time (like :colorscheme delek , :imap <TAB> <C-N>
and so on ) , and it would be nice if I could set these via terminal when I open vim. Like:
vim option_1 option_2 .... file

Does anyone has an idea about how it can be done?

Thanks in anticipation,

Mate

-- 
--

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

--- 
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Niels Kobschaetzki | 25 Oct 09:21 2014
Picon

set background=dark not working in vimrc

Hi,

I am using the solarized colorscheme which uses different colors
depending on background=light/dark.
When I manually do a ":set background=dark", I get the colors as
expected. But when I write
set background=dark
in my .vimrc, vim starts with a light background-setting anyway. Any
ideas what I could doing wrong? 
I checked all the files I am sourcing whether there is a set
background=light but I can't find anything.

Niels

-- 
--

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

--- 
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Steve Graham | 25 Oct 02:31 2014
Picon

Starting vim with number and wrap set in diff mode

I am starting vim in diff mode (vim -d) and find that I also need number and wrap set.  I can start vim with it (as
in vim -c 'set number' -c 'set wrap' -d file1 file2), but number and wrap are only set for the left window and
not the right one.

How can I have it set for both?

Thanks, Steve

-- 
--

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

--- 
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

ping song | 25 Oct 00:59 2014
Picon

vim freeze from inside gnu

this is reproduced at this time.
whenever I execute "register" command and hit enter, it freeze...

in the begining it only happen in one of my gnu window, but now it
happen in 3 of them... anyone experiences that?

-- 
--

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

--- 
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe <at> googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Gmane