Re: View dotted lines TABS

2011-11-15 Thread Matteo Landi
:set listchars=tab:.. Otherwise, if for example you want your tabs to look like this (a greater-than symbol, followed by multiple dashes): int main(int ac, char **av) { >---print("Hello, world!"); } you need to: :set listchars=tab:>- Cheers, Matteo On Tue, Nov 15, 2011 at 5:35 AM, Jean-Rene

Re: Yank, move to another split tab and jump to yanked line number

2011-11-15 Thread Sapfeer
Thanks a lot! Your solution works great! I suppose I just misunderstood some mapping features. Could you please explain why you use "i" command? AFAIK, "i" stands for "insert" - I don't understand how can you issue yank command, then go to insert mode and select a word there. Also I'm confused on h

Re: Where to put vim files while they are under development?

2011-11-15 Thread Gary Johnson
On 2011-11-14, Peng Yu wrote: > Hi, > > I'm developing some indent and syntax files. Instead of putting them > in ~/.vim. I'd like to put them in a different directory. In order to > load them automatically, I think that I just need to append the > directory to runtimepath. Is it going to cause so

Re: How to figure out what file cause a file to be indented?

2011-11-15 Thread Paul
On Monday, 14 November, 2011 at 22:51:54 GMT, Peng Yu wrote: I have a .jags file. I am able to indent it (although incorrectly). I don't find jags.vim in my ~/.vim/indent directory. I'm wondering how to figure out what cause the .jags file be indentable. ':set filetype?' will show you what file

New sh syntax highlighting

2011-11-15 Thread Timothy Madden
Hello Can the syntax file for sh scripts be updated to accept the new features for parameter, command and arithmetic substitution ? Parameter substitution: ${parameter:-word} ${parameter-word} ${parameter:=word} ${parameter=word} ${parameter:?word}

RE: Yank, move to another split tab and jump to yanked line number

2011-11-15 Thread John Beckett
Sapfeer wrote: > Thanks a lot! Your solution works great! I suppose I just > misunderstood some mapping features. Could you please explain > why you use "i" command? AFAIK, "i" stands for "insert" - I > don't understand how can you issue yank command, then go to > insert mode and select a word ther

jumping to error location

2011-11-15 Thread Gergely Buday
Hi there, do we have some built-in functionality in vi so that I could jump to the error location a compiler tells in its output? - Gergely -- 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

Re: jumping to error location

2011-11-15 Thread Christian Brabandt
On Tue, November 15, 2011 2:20 pm, Gergely Buday wrote: > do we have some built-in functionality in vi so that I could jump to > the error location a compiler tells in its output? If you mean vi as in plain old vanilla vi, than I doubt it is possible. Vim however has this feature builtin. Read the

Re: How to let syn keyword accept space?

2011-11-15 Thread Charles Campbell
Peng Yu wrote: [snip] Also is 'syn match' slower than 'syn keyword'? Yes -- keywords are matched using hashing; syn match uses the regular expression engine. Chip -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying

Re: New sh syntax highlighting

2011-11-15 Thread Charles Campbell
Timothy Madden wrote: Hello Can the syntax file for sh scripts be updated to accept the new features for parameter, command and arithmetic substitution ? Parameter substitution: ${parameter:-word} ${parameter-word} ${parameter:=word} ${parameter=word} ${parameter:?word}

Re: How to figure out what file cause a file to be indented?

2011-11-15 Thread Ben Fritz
On Nov 15, 3:24 am, Paul wrote: > On Monday, 14 November, 2011 at 22:51:54 GMT, Peng Yu wrote: > >I have a .jags file. I am able to indent it (although incorrectly). I > >don't find jags.vim in my ~/.vim/indent directory. I'm wondering how > >to figure out what cause the .jags file be indentable

Re: Where to put vim files while they are under development?

2011-11-15 Thread Ben Fritz
On Nov 14, 9:52 pm, Peng Yu wrote: > Hi, > > I'm developing some indent and syntax files. Instead of putting them > in ~/.vim. I'd like to put them in a different directory. In order to > load them automatically, I think that I just need to append the > directory to runtimepath. Is it going to c

Re: Keyboard shortcut to regard the entire line as a filename, and :edit that file?

2011-11-15 Thread Ben Fritz
On Nov 14, 6:47 pm, Dun Peal wrote: > Hi there, > > I'd like to setup a keyboard shortcut that would work similar to `gf`, > except it will regard the entire cursor line as the filename to open. > Map something to Vgf and you've got it. Or maybe 0v$gf (I'm not 100% certain line-wise visual acts

Re: Vim: Warning: Output is not to a terminal

2011-11-15 Thread Fuzzy Logic
I read :help 26.4 and I'm still a bit stuck. I was previously using Vim 7.2 with the following: file fixnbsp.vim contained: :%s/> />\ /g :%s/ />\ /g %s/ http://www.vim.org/maillist.php#vim clicking the "tips archive" from the "Comments" section gives a 404. Fuzzy -- You received this message

Re: :bd makes syntax highlight of the next window unavailable

2011-11-15 Thread Andy Wokula
Am 26.10.2011 22:47, schrieb Thilo Six: Peng Yu wrote the following on 25.10.2011 22:25 Hello -- -- I'm glad it works, but something is wrong here. -- -- It seems tabbar.vim is involved, though i haven't currently figured how. Peng do you also have tabbar.vim installed? No. I have t

Set GVim to open in tabs files launched by Unity

2011-11-15 Thread Alexandre Provencio
Hello all, the default behavior on Ubuntu system is to launch text files in new tabs on an existing Gedit instance. I have always liked to use Gvim instead but keeping this same scenario, so I make some changes on the gvim.desktop file as suggested here vim.wikia.com/wiki/Launch_files_in_new_tabs_

Can't find tag!

2011-11-15 Thread AK
When I do :tag trim_headers , I get 'tag pattern not found' error, even though this tag is in tags file and tags file is in :set tags. Some other tags can be found, though (in the same file), and some more tags also can't be found. It's a python file and this tag refers to function definition. H

Re: Can't find tag!

2011-11-15 Thread Andy Wokula
Am 15.11.2011 23:39, schrieb AK: When I do :tag trim_headers , I get 'tag pattern not found' error, even though this tag is in tags file and tags file is in :set tags. Some other tags can be found, though (in the same file), and some more tags also can't be found. It's a python file and this tag

Re: Synchronizing or merging undo across platforms

2011-11-15 Thread Paul
Maybe there's a way to make it work just for particular files, with an autocmd that sets a relative undodir? My experimentation has not paid off. -- 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, vi

Re: Can't find tag!

2011-11-15 Thread AK
On 11/15/2011 06:59 PM, Andy Wokula wrote: Am 15.11.2011 23:39, schrieb AK: When I do :tag trim_headers , I get 'tag pattern not found' error, even though this tag is in tags file and tags file is in :set tags. Some other tags can be found, though (in the same file), and some more tags also can'

Re: Can't find tag!

2011-11-15 Thread John Little
> How do I debug something like this? The tags option has tricky semantics, you may be picking up a tags file in an unexpected place. To eliminate this possibility, I'd set the tags option to point to a single full pathname, f. ex. :set tags=/tmp/aktags to be sure which tags file is being used

Why opening file with ctrl_W will result in different indentation from opening file from command line directly?

2011-11-15 Thread Peng Yu
Hi, If I open a file X from command line, the file can be indented correctly. But if I first open a file of different type, which include a string to X, then open X with ctrl_W, then the indentation is not correct. Does anybody know what I should check to fix this bug? -- Regards, Peng -- You

Re: Synchronizing or merging undo across platforms

2011-11-15 Thread Christian Brabandt
On Wed, November 16, 2011 2:59 am, Paul wrote: > Maybe there's a way to make it work just for particular files, with an > autocmd that sets a relative undodir? My experimentation has not paid > off. Well, first check that :echo undofile(@%) points to the same undofile across each platform. If this