Re: Display of CJK characters in a utf-8 file on MacOS X / Vim 7

2006-09-10 Thread A.J.Mechelynck
Elliot Shank wrote: I swear I saw something on this list about this before, but I can't find it. If someone can point me at the prior post, I'd appreciate it. I've got a utf-8 file with some CJK characters in it. These characters are being displayed on the line below they are actually on.

Display of CJK characters in a utf-8 file on MacOS X / Vim 7

2006-09-10 Thread Elliot Shank
I swear I saw something on this list about this before, but I can't find it. If someone can point me at the prior post, I'd appreciate it. I've got a utf-8 file with some CJK characters in it. These characters are being displayed on the line below they are actually on. 'guifont' is set to Co

ANN: New version (4.1) of the taglist plugin

2006-09-10 Thread Yegappan Lakshmanan
Hi all, I have uploaded version 4.1 of the taglist plugin to the Vim online website. You can download this version from: http://vim.sourceforge.net/scripts/script.php?script_id=273 The taglist plugin is a source code browser plugin for Vim. You can get more information about this plugin from: h

Re: Keeping tab indentation of blank lines

2006-09-10 Thread Laurent Birtz
":imap o o" means "add a space and delete it whenever you insert a lowercase o in _Insert_ mode". This creates an undo point after each lowercase o, which is probably not what you want. See ":map-overview" Eep! Indeed. I'm a vim newbie and I didn't RTFM properly. Thanks! Laurent Birtz

Re: Keeping tab indentation of blank lines

2006-09-10 Thread A.J.Mechelynck
Laurent Birtz wrote: Yes with these two mappings mentioned earlier in this thread, all lines are indented after o: :inoremap :nnoremap o o Got it! With these two mappings, it works correctly. Apparently on my system (vim version 6.4, modified by Gentoo) '

Re: Keeping tab indentation of blank lines

2006-09-10 Thread A.J.Mechelynck
Benjamin Esham wrote: Yakov Lerner wrote: Laurent Birtz wrote: When I press 'o', it starts an empty line correctly indented. If I press 'escape' immediately, the indentation is removed and the cursor moves to column 1. If I press 'enter' instead, the indentation is removed for the first line,

Re: Keeping tab indentation of blank lines

2006-09-10 Thread Laurent Birtz
Yes with these two mappings mentioned earlier in this thread, all lines are indented after o: :inoremap :nnoremap o o Got it! With these two mappings, it works correctly. Apparently on my system (vim version 6.4, modified by Gentoo) ':imap o o' does not wo

Re: Keeping tab indentation of blank lines

2006-09-10 Thread Yakov Lerner
On 9/10/06, Benjamin Esham <[EMAIL PROTECTED]> wrote: I get this behavior with 7.0.94, but it's done this for as long as I can remember (I've been using Vim since 6.2, I think). Some RedHat-8-based appliences around here have vim 6.1 :-) Yakov

Re: Keeping tab indentation of blank lines

2006-09-10 Thread Yakov Lerner
On 9/10/06, Benjamin Esham <[EMAIL PROTECTED]> wrote: Yakov Lerner wrote: > Laurent Birtz wrote: > >> When I press 'o', it starts an empty line correctly indented. If I >> press >> 'escape' immediately, the indentation is removed and the cursor >> moves to >> column 1. If I press 'enter' instead

Re: cpp ftplugins not loaded

2006-09-10 Thread Marius Roets
Hi Tony, On Sunday 10 September 2006 12:51, A.J.Mechelynck wrote: > AFAIK both sets should be loaded. See: > > - BufRead and BufNewFile autocommands for the concerned file extension > (*.c, *.cpp, *.c++, etc.) > - FileType autocommand > - function s:LoadFTPlugin in $VIMRUNTIME/ftplugin.vim > - "c"

Re: cpp ftplugins not loaded

2006-09-10 Thread Marius Roets
Hi Yakov, On Sunday 10 September 2006 12:27, Yakov Lerner wrote: > I created file ~/bat/my.dir.vim/after/ftplugin/c/xxx.vim containing line > call input("This is after/ftplugin/c/xxx.vim>") > and file ~/bat/my.dir.vim/after/ftplugin/cpp/cpp_xyz.vim containing line >call input("This is after

Re: Keeping tab indentation of blank lines

2006-09-10 Thread Benjamin Esham
Yakov Lerner wrote: Laurent Birtz wrote: When I press 'o', it starts an empty line correctly indented. If I press 'escape' immediately, the indentation is removed and the cursor moves to column 1. If I press 'enter' instead, the indentation is removed for the first line, but the subseque

Re: Keeping tab indentation of blank lines

2006-09-10 Thread Yakov Lerner
On 9/10/06, Laurent Birtz <[EMAIL PROTECTED]> wrote: > Can you try this to see whether it does what you want ?: > :imap > I get the following behavior: When I press 'o', it starts an empty line correctly indented. If I press 'escape' immediately, the indentation is removed and the cur

Re: Keeping tab indentation of blank lines

2006-09-10 Thread Laurent Birtz
Can you try this to see whether it does what you want ?: :imap I get the following behavior: When I press 'o', it starts an empty line correctly indented. If I press 'escape' immediately, the indentation is removed and the cursor moves to column 1. If I press 'enter' instead, the in

ANN: scrollfix.vim - keep cursor at fixed visual line of window

2006-09-10 Thread Yakov Lerner
http://vim.sourceforge.net/scripts/script.php?script_id=1649 "scrollfix.vim - keep cursor at fixed visual line of window" " This plugin, scrollfix, maintains cursor at fixed visual line of window " (except when near beginning of file and near end of file. The " latter is configurable. You can cho

Re: Counts for mapping

2006-09-10 Thread Tom Carr
> If you would accept using a user-command, then you could for instance define > command -nargs=0 -count=1 -bar L call MoveByThrees() > function MoveByThrees(count) > let i = a:count > while i > 0 > normal 3l > i = i - 1 > endwhile >

Re: Counts for mapping

2006-09-10 Thread Tom Carr
> In particular, here's a solution: > map = :RightShift > com! -count=1 RightShift call RightShifter() > fun! RightShifter(cnt) > exe "norm! ".(3*a:cnt)."l" > endfun That's an interesting hack, but there are a few problems with this solution: * This only works correctly on the first line of the

Re: testing patchlevel from script

2006-09-10 Thread A.J.Mechelynck
Jürgen Krämer wrote: Hi, Yakov Lerner wrote: How can a script test for specific patchlevel ? For example, I have vim 7.0.86 and I need to check in the script that patchlevel is >= 7.0.86. But v:version is 700. How ? It would be nice if to have patchlist available through some v: variable. you

Re: testing patchlevel from script

2006-09-10 Thread Yakov Lerner
On 9/10/06, Jürgen Krämer <[EMAIL PROTECTED]> wrote: Hi, Yakov Lerner wrote: > > How can a script test for specific patchlevel ? > For example, I have vim 7.0.86 and I need to check in the script that > patchlevel is >= 7.0.86. But v:version is 700. How ? It would be > nice if to have patchlist

Re: testing patchlevel from script

2006-09-10 Thread Jürgen Krämer
Hi, Yakov Lerner wrote: > > How can a script test for specific patchlevel ? > For example, I have vim 7.0.86 and I need to check in the script that > patchlevel is >= 7.0.86. But v:version is 700. How ? It would be > nice if to have patchlist available through some v: variable. you can check for

Re: Vim7: Turn syntax off while diffing

2006-09-10 Thread Yakov Lerner
On 9/10/06, A.J.Mechelynck <[EMAIL PROTECTED]> wrote: 2. This won't work if diff mode is entered after starting Vim, as opposed to invoking it as [g]vimdiff or [g]vim -d from the command-line. Right, but if all you use is vimdiff at shell prompt (as I do), this is good enough and simple. Other

Re: Vim7: Turn syntax off while diffing

2006-09-10 Thread Yakov Lerner
On 9/10/06, A.J.Mechelynck <[EMAIL PROTECTED]> wrote: Yakov Lerner wrote: > On 9/10/06, Yakov Lerner <[EMAIL PROTECTED]> wrote: >> On 9/10/06, Sven Brueggemann <[EMAIL PROTECTED]> wrote: >> > Hello, >> > >> > Vim 7 combines syntax colouring and diff colouring when diffing. This >> > often makes t

Re: Vim7: Turn syntax off while diffing

2006-09-10 Thread A.J.Mechelynck
Yakov Lerner wrote: On 9/10/06, Yakov Lerner <[EMAIL PROTECTED]> wrote: On 9/10/06, Sven Brueggemann <[EMAIL PROTECTED]> wrote: > Hello, > > Vim 7 combines syntax colouring and diff colouring when diffing. This > often makes the diffs hard to read. > > Is there a way to automagically turn syntax

Re: Vim7: Turn syntax off while diffing

2006-09-10 Thread Sven Brueggemann
Yakov Lerner wrote: >> Vim 7 combines syntax colouring and diff colouring when diffing. >> This often makes the diffs hard to read. >> Is there a way to automagically turn syntax colouring off when >> diffing? > put this into your ~/.vimrc: > if &diff | syntax off | endif Now that was fast... Tha

Re: Vim7: Turn syntax off while diffing

2006-09-10 Thread A.J.Mechelynck
Sven Brueggemann wrote: Hello, Vim 7 combines syntax colouring and diff colouring when diffing. This often makes the diffs hard to read. Is there a way to automagically turn syntax colouring off when diffing? Kind regards Sven (Untested) :setl syn= :diffthis :winc

Re: Vim7: Turn syntax off while diffing

2006-09-10 Thread Yakov Lerner
On 9/10/06, Yakov Lerner <[EMAIL PROTECTED]> wrote: On 9/10/06, Sven Brueggemann <[EMAIL PROTECTED]> wrote: > Hello, > > Vim 7 combines syntax colouring and diff colouring when diffing. This > often makes the diffs hard to read. > > Is there a way to automagically turn syntax colouring off when d

Re: Vim7: Turn syntax off while diffing

2006-09-10 Thread Yakov Lerner
On 9/10/06, Sven Brueggemann <[EMAIL PROTECTED]> wrote: Hello, Vim 7 combines syntax colouring and diff colouring when diffing. This often makes the diffs hard to read. Is there a way to automagically turn syntax colouring off when diffing? put this into your ~/.vunrc: if &diff | syntax off |

Vim7: Turn syntax off while diffing

2006-09-10 Thread Sven Brueggemann
Hello, Vim 7 combines syntax colouring and diff colouring when diffing. This often makes the diffs hard to read. Is there a way to automagically turn syntax colouring off when diffing? Kind regards Sven

Re: C++ indentation (vim 6.3)

2006-09-10 Thread Yongwei Wu
On 9/10/06, Dima <[EMAIL PROTECTED]> wrote: Hi, I don't find a way how to make C++ indentation when all function arguments are aligned in this way: int TcSomeClass::SomeMethod(int arg1, int arg2,

Re: "Oneshot" insertions ?

2006-09-10 Thread A.J.Mechelynck
Meino Christian Cramer wrote: Hi, I often want to insert _one_ "object" only while being in normal mode and return to normal mode as soon as possible. My currrent edit scheme looks similiar to this: (missing empty line in source code recognized) either "o" or "O" pressed which throws me i

Re: "Oneshot" insertions ?

2006-09-10 Thread Yakov Lerner
On 9/10/06, Meino Christian Cramer <[EMAIL PROTECTED]> wrote: Hi, I often want to insert _one_ "object" only while being in normal mode and return to normal mode as soon as possible. My currrent edit scheme looks similiar to this: (missing empty line in source code recognized) either "o"

C++ indentation (vim 6.3)

2006-09-10 Thread Dima
Hi, I don't find a way how to make C++ indentation when all function arguments are aligned in this way: int TcSomeClass::SomeMethod(int arg1, int arg2, char *arg3) { Currenly I receive the following

"Oneshot" insertions ?

2006-09-10 Thread Meino Christian Cramer
Hi, I often want to insert _one_ "object" only while being in normal mode and return to normal mode as soon as possible. My currrent edit scheme looks similiar to this: (missing empty line in source code recognized) either "o" or "O" pressed which throws me into insert mode ESCape from ins

Re: cpp ftplugins not loaded

2006-09-10 Thread A.J.Mechelynck
Marius Roets wrote: Hi everybody, I have a quick question regarding ftplugins. I created a directory in my after/ftplugin directory for each filetype, with several plugins in each. Up to now I had a directory called c, which served to hold plugins for both c and c++ files, and this worked well.

Re: cpp ftplugins not loaded

2006-09-10 Thread Yakov Lerner
On 9/10/06, Marius Roets <[EMAIL PROTECTED]> wrote: Hi everybody, I have a quick question regarding ftplugins. I created a directory in my after/ftplugin directory for each filetype, with several plugins in each. Up to now I had a directory called c, which served to hold plugins for both c and c

cpp ftplugins not loaded

2006-09-10 Thread Marius Roets
Hi everybody, I have a quick question regarding ftplugins. I created a directory in my after/ftplugin directory for each filetype, with several plugins in each. Up to now I had a directory called c, which served to hold plugins for both c and c++ files, and this worked well. However I decided to s

Re: Keeping tab indentation of blank lines

2006-09-10 Thread Yakov Lerner
On 9/9/06, Laurent Birtz <[EMAIL PROTECTED]> wrote: Hello, I need help to change the default behavior of the 'autoindent' option. The doc says: Copy indent from current line when starting a new line (typing in Insert mode or when using the "o" or "O" command). If you do not type a

Re: Keeping tab indentation of blank lines

2006-09-10 Thread Yakov Lerner
On 9/9/06, Laurent Birtz <[EMAIL PROTECTED]> wrote: Hello, I need help to change the default behavior of the 'autoindent' option. The doc says: Copy indent from current line when starting a new line (typing in Insert mode or when using the "o" or "O" command). If you do not type a