"shift+%" not working in newtab

2013-01-29 Thread naaj_ila
I added some commands in .vimrc source ~/vimfiles/matchit.vim let b:match_words = '\:\,'.'\:\,'.'\:\,'.'\:\' If the cursor is at "begin" and "shift+%" will go to "end" of the statement. If i opened another file in newtab or "sp " . "Shift+%" is not working.(Working only in the first file) And

how to use substitute() add a newline

2013-01-29 Thread h2ero
I use follow two method, but it only show ^M and ^@, who know how to add a newline. thanks let n_line = substitute(n_line,'\({\)','\r\1','g') let n_line = substitute(n_line,'\({\)','\n\1','g') -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply bel

Re: how to use substitute() add a newline

2013-01-29 Thread Tony Mechelynck
On 29/01/13 11:13, h2ero wrote: I use follow two method, but it only show ^M and ^@, who know how to add a newline. thanks let n_line = substitute(n_line,'\({\)','\r\1','g') let n_line = substitute(n_line,'\({\)','\n\1','g') In :s[ubstitute], \n in the pattern finds a newline, \r in the re

Re: How to determine the start of a visual block (C-V) when it starts in the void?

2013-01-29 Thread John Little
On Tuesday, January 29, 2013 8:13:59 PM UTC+13, Axel Bender wrote: > virtcol(...) doesn't "work" in the example given. Please note that the > end/start - depending from where you start to select - of the block is in the > "void", i.e. after the line's end (as indicated by "$"). Here even > virtc

Re: Word characters differ between spell files

2013-01-29 Thread Andrew
On 25.01.2013 03:15, Tony Mechelynck wrote: On 24/01/13 11:34, Andrew wrote: Hi there! Recently I've started using vim, and tried to enable spellchecking for russian. So I've tried ":setlocal spell spelllang=ru". Vim said, that it doesn't have spellfile for russian and offer to download it, I ac

Re: how to use substitute() add a newline

2013-01-29 Thread h2ero
On Tuesday, January 29, 2013 6:57:44 PM UTC+8, Tony Mechelynck wrote: > On 29/01/13 11:13, h2ero wrote: > > > > > > I use follow two method, but it only show ^M and ^@, who know how to add a > > newline. thanks > > > let n_line = substitute(n_line,'\({\)','\r\1','g') > > > let n_line = substi

Re: How to determine the start of a visual block (C-V) when it starts in the void?

2013-01-29 Thread Axel Bender
@John Thanks for the answer. You're right, I've actually set 'virtualedit' to 'block'. Nevertheless I would have assumed (hoped), that - whatever mode I'm in - 'block', or 'all' - virtcol("'<") would reflect the actual start column. One can - of course - argue in favor or against that, but I wo

Re: How to determine the start of a visual block (C-V) when it starts in the void?

2013-01-29 Thread Axel Bender
Addendum: It's obviously sufficient to set virtualedit to 'block' just before retrieving from virtcol(), and resetting it thereafter. I'm using this in a plugin mapping that operates on a visual area or on a motion. -- -- You received this message from the "vim_use" maillist. Do not top-post!

Re: alignment plugin

2013-01-29 Thread 月忧茗
Hi, guys vim-alignment has been updated, after you operate, the lines will be keep selected. 2013/1/29 月忧茗 > Yes,Byzanz is an awesome tool for record your desktop to GIF files > > > 2013/1/29 Christian Brabandt > >> Hi Aaron! >> >> On Mo, 28 Jan 2013, Aaron Webster wrote: >> >> > How di

Help: overwrite vim's standard email filetype

2013-01-29 Thread Bitterjug
Hi, mail.vim links syntax group mailSubject to LineNr. My preferred colourscheme makes line numbers receed, whereas I want mail subjects to stand out. How can I override vim's built-in mail.vim with my own version? thanks Mark -- -- You received this message from the "vim_use" maillist. Do

Re: Help: overwrite vim's standard email filetype

2013-01-29 Thread Christian Brabandt
On Tue, January 29, 2013 16:19, Bitterjug wrote: > Hi, > > mail.vim links syntax group mailSubject to LineNr. My preferred > colourscheme makes line numbers receed, whereas I want mail subjects to > stand out. > > How can I override vim's built-in mail.vim with my own version? As far as I can see,

ctags processing jumps to wrong tag?

2013-01-29 Thread Ben Fritz
I generate CTags for C code with the following: " -R : recursive " --extra=+f : include file name as a tag " --fields=+S : include signature (e.g. parameter list) " K : include kind of tag as full name " -k : not kind of tag as single letter " --totals : print

Re: alignment plugin

2013-01-29 Thread Ben Fritz
On Sunday, January 27, 2013 8:40:39 PM UTC-6, yueyoum wrote: > https://github.com/yueyoum/vim-alignment > > ctrl+v selete some lines > > > [ align the start positions of lines > =    align the = positions of lines. This looks neat, but what does it offer that Dr. Chip's Align.vim does not

Re: "shift+%" not working in newtab

2013-01-29 Thread Ben Fritz
On Tuesday, January 29, 2013 3:57:11 AM UTC-6, ali jaan wrote: > I added some commands in .vimrc > > > > > > source ~/vimfiles/matchit.vim > > let b:match_words = > > '\:\,'.'\:\,'.'\:\,'.'\:\' > > > > > > If the cursor is at "begin" and "shift+%" will go to "end" of the statement. >

Re: Is there way to search many results of cscope command in vim ?

2013-01-29 Thread Ben Fritz
On Monday, January 28, 2013 8:39:19 PM UTC-6, JoongKeun Kim wrote: > > Hello I am JK. I have same problem on cscope with vim. > > previous recommendation using ":copen" is now work for me. > > What do mean by "is not working for me"? Do you mean :copen shows no results? Do you mean it shows r

Re: foldmethod=indent: Show preceding & succeeding lines of context

2013-01-29 Thread Ben Fritz
On Monday, January 28, 2013 4:28:21 PM UTC-6, Paul wrote: > When using folds with foldmethod=indent, is there a way to show a user > > specified number of lines before actually folding? For example, if > > the user specified context is 2 lines before and after the fold, then > > a fold is only

Re: "shift+%" not working in newtab

2013-01-29 Thread Christian Brabandt
Hi naaj_ila! On Di, 29 Jan 2013, naaj_ila wrote: > I added some commands in .vimrc > > > source ~/vimfiles/matchit.vim > let b:match_words = > '\:\,'.'\:\,'.'\:\,'.'\:\' > > > If the cursor is at "begin" and "shift+%" will go to "end" of the statement. > If i opened another file in newtab or

Re: "shift+%" not working in newtab

2013-01-29 Thread Benji Fisher
On Tue, Jan 29, 2013 at 12:11 PM, Ben Fritz wrote: > On Tuesday, January 29, 2013 3:57:11 AM UTC-6, ali jaan wrote: > > I added some commands in .vimrc > > > > source ~/vimfiles/matchit.vim > > > > let b:match_words = > > > > > '\:\,'.'\:\,'.'\:\,'.'\:\' > > b:match_words is a buffer-local variab

Re: TOhtml reverses text/background color for default colorscheme

2013-01-29 Thread Ben Fritz
On Monday, January 28, 2013 4:20:24 PM UTC-6, Paul wrote: > > > > > There are multiple ways to get an up-to-date Vim on Windows, my > > > preferred method being the 32-bit "Vim without Cream" installer from > > > the Cream project. > > > See > > http://vim.wikia.com/wiki/Where_to_download_Vimo

Re: TOhtml reverses text/background color for default colorscheme

2013-01-29 Thread Steve Hall
On Tue, Jan 29, 2013 at 12:32 PM, Ben Fritz wrote: > On Monday, January 28, 2013 4:20:24 PM UTC-6, Paul wrote: > > > > There are multiple ways to get an up-to-date Vim on Windows, my > > preferred method being the 32-bit "Vim without Cream" installer > > from the Cream project. > > > > See http://

Re: How to determine the start of a visual block (C-V) when it starts in the void?

2013-01-29 Thread John Little
On Wednesday, January 30, 2013 3:08:04 AM UTC+13, Axel Bender wrote: >If(!) I'm able to create a block with corners in the void using 'block' mode, >>then why should virtcol() not adapt to that? It does, the point in your example is the observation affecting the result. By going to the command

Two questions for script 2666: Highlight several words in different colors simultaneously

2013-01-29 Thread Xiaopan Zhang
First , this script is a life change one, Thanks Ingo for it. However, I do have a few questions regarding to it. After playing with this script for a few hours, I still failed to figure out how to use it for two important scenario: 1, Suppose I am edit a big file, and I want to search for a pat

Re: Screen not redrawing on search

2013-01-29 Thread Ole Juul Andersen
Solution: Apparently, this error is not caused by vim itself. It seems to be a malfunctioning interplay between GNOME 3 and the NVIDIA drivers. Reverting to GNOME Classic solved the problem. Best regards Ole On Monday, January 21, 2013 4:31:22 PM UTC+1, Ole Juul Andersen wrote: > Hi. > > After

Re: ctags processing jumps to wrong tag?

2013-01-29 Thread Ivan Sichmann Freitas
On Tue, Jan 29, 2013 at 08:48:00AM -0800, Ben Fritz did gyre and gimble: I generate CTags for C code with the following: " -R : recursive " --extra=+f : include file name as a tag " --fields=+S : include signature (e.g. parameter list) " K : include kind of tag as full n

Windows ALT characters

2013-01-29 Thread John McGlynn
Hi Vim, I have a load of csv files in which some rows have an arrow at the end. The arrow seems to have been made using Windows ALT 26. It shows up in Vim as ^Z^M. Can anyone tell me how to remove these pesky objects? Thanks, John -- Time flies like an arrow. Fruit flies like bananas. ~-~-~-

Re: Windows ALT characters

2013-01-29 Thread Tim Chase
On Wed, 30 Jan 2013 12:53:20 +1100 John McGlynn wrote: > Hi Vim, > > I have a load of csv files in which some rows have an arrow at the > end. The arrow seems to have been made using Windows ALT 26. > > It shows up in Vim as ^Z^M. > > Can anyone tell me how to remove these pesky objects? I th

Re: Windows ALT characters

2013-01-29 Thread Ben Fritz
On Tuesday, January 29, 2013 7:53:20 PM UTC-6, John McG wrote: > Hi Vim, > > I have a load of csv files in which some rows have an arrow at the end. The > arrow seems to have been made using Windows ALT 26. > I assume you mean somebody entered a unicode RIGHTWARDS ARROW character by holding AL

Re: Possible to stretch cursor on tab character?

2013-01-29 Thread neolus
ah ok I found some hoops to jump through function! TabCursor() let currentchar = getline('.')[col('.')-1] if currentchar == '' if mode() == "n" normal v redraw sleep 4m