I've got foldmethod set to syntax. How can I tell vim not to fold C++ namespace
blocks?
I was able to do it actually, by editing the cBlock sytanx region in the
default c.vim syntax file like this:
syn region cBlock start=\(namespace .* \)\@!{ end=} transparent fold
But it just doesn't look
On Monday, July 2, 2012 1:21:57 AM UTC-3, Ben Fritz wrote:
On Sunday, July 1, 2012 1:12:05 PM UTC-5, Gerardo Marset wrote:
Thanks for the suggestion, but how could I insert a BS in the line without
returning the function?
You can return the BS, that's not one of the things that break
I have sofftabstop (and shiftwidth) set to 4, and expandtab enabled. Thus, when
deleting groups of spaces, vim treats them as tabs and deletes them 4 at a
time. I want vim to do that only if from the start of the line and up to the
cursor's position there's only spaces and nothing else.
El 10/09/11 02:57, Gary Johnson escribió:
If, on the other hand, Command+C is seen only by the Mac OS and all
Vim sees is the text characters in its input stream, then you may have
to resort to some other, less attractive solution, such as changing
your 'formatoptions' as Taylor suggested, or
El 01/09/11 14:47, Andy Wokula escribió:
Am 26.08.2011 19:24, schrieb Gerardo Marset:
I'm looking for a way of knowing wether or not all the characters up
to the cursor position in the current line are spaces. How would I do
that?
Thanks!
I'd use the following test (echos 1 (= true
El 27/08/11 00:22, Tony Mechelynck escribió:
On 26/08/11 19:24, Gerardo Marset wrote:
I'm looking for a way of knowing wether or not all the characters up to
the cursor position in the current line are spaces.
How would I do that?
Thanks!
Spaces only, or spaces and tabs, or any whitespace
El 31/08/11 01:35, ZyX escribió:
Reply to message «Actual cursor position.»,
sent 02:12:13 31 August 2011, Wednesday
by Gerardo Marset:
I'm looking for a way to get the current cursor position in the line
(that is, the column) in *characters*.
col is no use, because it returns the position
I'm looking for a way to get the current cursor position in the line
(that is, the column) in *characters*.
col is no use, because it returns the position in bytes. I can't use
virtcol either because it returns the position on the screen: a tab
counts as 8 characters (or whatever tabstop is set
El 26/08/11 18:07, Russell Bateman escribió:
I would like to know how how to adjust the width (set columns) in gvim
based on filetype that, I assume, Vim knows by reason of the file I've
launched it on. For example, if it's a Java file (.java), I'd like to
make it 120 columns wide, but leave it
I'm looking for a way of knowing wether or not all the characters up to
the cursor position in the current line are spaces.
How would I do that?
Thanks!
--
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
El 28/07/11 12:35, Ben Fritz escribió:
On Jul 27, 1:50 pm, Gerardo Marsetgammer1...@gmail.com wrote:
Some time ago, I uploaded a script to the Vim website. Later I realized
I had made a little mistake in the description, so I went to edit
details to fix it. The link took me to a login page. I
Some time ago, I uploaded a script to the Vim website. Later I realized
I had made a little mistake in the description, so I went to edit
details to fix it. The link took me to a login page. I was logged in
already, and my username showed up at the top of the menu at the left,
along with a
Consider the following pseudo-code:
if file_is_code:
setlocal softtabstop=4
setlocal shiftwidth=4
setlocal expandtab
else:
setlocal softtabstop=8
setlocal shiftwidth=8
Is there a simple way to do this?
--
You received this message from the vim_use maillist.
Do not top-post!
El 11/04/11 20:33, Gary Johnson escribió:
On 2011-04-11, Gerardo Marset wrote:
Consider the following pseudo-code:
if file_is_code:
setlocal softtabstop=4
setlocal shiftwidth=4
setlocal expandtab
else:
setlocal softtabstop=8
setlocal shiftwidth=8
Is there a simple way
On 24/02/11 22:52, Ben Schmidt wrote:
On 25/02/11 10:06 AM, Gerardo Marset wrote:
I'm quite new at Vim and I love it already, but this question just
won't let me
sleep.
Why is it that the cursor doesn't go beyond the last character when
in command mode?
I find it kind of wierd, and because
I'm quite new at Vim and I love it already, but this question just won't
let me sleep.
Why is it that the cursor doesn't go beyond the last character when in
command mode?
I find it kind of wierd, and because of that I have to use either a or A
to append something to a line (instead of i).
16 matches
Mail list logo