Re: When is a keystroke dropped in Vim?

2010-03-11 Thread Tony Mechelynck
On 12/03/10 05:14, anna wrote: Hi all, I am wondering that under what condition a keystroke is dropped in Vim? Sometimes, when I source (:so) a script which takes time, this will make my keystrokes are dropped. However, when I type in insert mode so fast, and although I map that keystrokes to a

Re: #ifdef block's color

2010-03-11 Thread Tony Mechelynck
On 06/01/10 09:55, Gusman wrote: Dear All, Currently I'am working with a big source code in C language which have many #ifdef directives in there. It's so difficult for me to read the code flow while I can't determine which #ifdef is defined or not defined. Is there plugin can make undefined #i

Re: Fuzzyfinder | Tabs for cycling selections

2010-03-11 Thread voxner
Hi tyru, Thanks for your time and effort. Is it IRC? I never managed to get comfortable with IRC. Thanks again, voxner On Thu, Mar 11, 2010 at 9:49 PM, tyru wrote: > Hi. > > Sorry to send mails again and again. > 'inoremap' is better than 'imap'. > > autocmd FileType fuf inoremap > auto

When is a keystroke dropped in Vim?

2010-03-11 Thread anna
Hi all, I am wondering that under what condition a keystroke is dropped in Vim? Sometimes, when I source (:so) a script which takes time, this will make my keystrokes are dropped. However, when I type in insert mode so fast, and although I map that keystrokes to a function with long execution, the

Re: I forgot what this au is for but it causes a problem with NERDTree

2010-03-11 Thread Benjamin R. Haskell
On Fri, 12 Mar 2010, Philip Rhoades wrote: > People, > > I forgot what the following is supposed to do but it causes errors when I load > NERDTree: > > au VimEnter * au FileType * if !exists(b:match_words) | let b:match_words > =&matchpairs | endif > Also not sure what it's supposed to accompl

I forgot what this au is for but it causes a problem with NERDTree

2010-03-11 Thread Philip Rhoades
People, I forgot what the following is supposed to do but it causes errors when I load NERDTree: au VimEnter * au FileType * if !exists(b:match_words) | let b:match_words =&matchpairs | endif I get: Error detected while processing FileType Auto commands for "*": E121: Undefined variable: b

Re: best C++ plugin for vim?

2010-03-11 Thread Marc Weber
Hi Aman Jain, Goto www.vim.org -> mailinglist archive search for Eclim (or use google) I think this is best what you can get (?) You can ues vim-addon-actions to add a on buf write action calling make automatically easily. Also vim-addon-background let's you compile your app in a background pro

best C++ plugin for vim?

2010-03-11 Thread Aman Jain
Hi I would like to know what plugins are most useful while writing C++ code. I am currently using trinity which is a combination of Taglist, Source Explorer, NerdTree. I can see the definitions and all that simple stuff. But what seems to be lacking here is the understanding of C++ inheritance

RE: Odd tab behavior

2010-03-11 Thread John Beckett
Tobiah wrote: > I tried setting ts=2 for an html file. That worked fine, but > I often use '<' and '>' to indent or dedent blocks of code. > When I tried it under ts=2, the columns moved over eight > spaces, achieved by adding four tabs! What's up with that? More info here: http://vim.wikia.com/

Re: Mode for tab-delimited files?

2010-03-11 Thread Christian Brabandt
Hi Benjamin! On Do, 11 Mär 2010, Benjamin R. Haskell wrote: > Is there a filetype or way to set vim up nicely for tab-delimited files? > What I'm looking for is to have tab characters force vertical alignment > of the following characters. E.g., using » to indicate the tabs, I'd > like the f

Re: Naive question: scrolling down keeping only 1 line

2010-03-11 Thread Matt Wozniski
On Thu, Mar 11, 2010 at 7:11 AM, Andy Wokula wrote: > Am 27.02.2010 05:39, schrieb Matt Wozniski: >> >> On Fri, Feb 26, 2010 at 5:23 PM, Jean Johner  wrote: >>> >>> On Feb 26, 6:58 pm, Ben Fritz  wrote: >>> 2. Re-map CTRL-F/CTRL-B with an :nnoremap command that issues the command, then s

Re: Odd tab behavior

2010-03-11 Thread Tim Chase
Tobiah wrote: I tried setting ts=2 for an html file. That worked fine, but I often use '<' and '>' to indent or dedent blocks of code. When I tried it under ts=2, the columns moved over eight spaces, achieved by adding four tabs! What's up with that? I just want one tab to be inserted, and for

Re: display progress while waiting for errorformat copen list

2010-03-11 Thread epanda
> I also inserted this line above that one in my script: > >     set errorformat+=%-G%.%# > > That will keep the progress messages from appearing in the quickfix I don't see any progress message while cppcheck is doing its stuff but output is filtered with only advises of cppcheck at the end of pr

Odd tab behavior

2010-03-11 Thread Tobiah
I tried setting ts=2 for an html file. That worked fine, but I often use '<' and '>' to indent or dedent blocks of code. When I tried it under ts=2, the columns moved over eight spaces, achieved by adding four tabs! What's up with that? I just want one tab to be inserted, and for it to take up t

Re: Vim Tip 1530

2010-03-11 Thread Paul
On Thu, Mar 11, 2010 at 09:29:32AM +1100, John Beckett wrote: Is there a good way to jump to the start of the current function in a case like the following (or in other languages like Python)? I think you guys are concentrating too hard on jumping to the beginning of the function. How about ju

Re: display progress while waiting for errorformat copen list

2010-03-11 Thread Gary Johnson
On 2010-03-11, epanda wrote: > let &makeprg = "cppcheck " . g:workingDirectory . " --enable=all -- > verbose --template gcc $* " > > Gary I don't understand why $* is here for ? I must have thought I was going to need to follow those arguments with something else, then forgot to take that out

Re: display progress while waiting for errorformat copen list

2010-03-11 Thread epanda
let &makeprg = "cppcheck " . g:workingDirectory . " --enable=all -- verbose --template gcc $* " Gary I don't understand why $* is here for ? -- 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,

Re: vim-latex, acute letter

2010-03-11 Thread Tony Mechelynck
On 11/03/10 11:25, Eduard wrote: Hi Germain, On Mar 10, 10:04 am, Germain wrote: I just start to use the latex-suite plugins which looks like promising. Nevertheless, I can not use the é letter. If I it the é key of my AZERTY keybord this do nothing ! This FAQ does not fix the problem http

Re: Vertically-aligning text/comments/diagrams

2010-03-11 Thread Charles Campbell
Benjamin R. Haskell wrote: My other question about tab-delimited files reminded me to ask about this, too. I frequently want to vertically align text. E.g. the 'comment's in the following: create table blah ( id int primary key auto_increment comment 'autoid', info text

Vertically-aligning text/comments/diagrams

2010-03-11 Thread Benjamin R. Haskell
My other question about tab-delimited files reminded me to ask about this, too. I frequently want to vertically align text. E.g. the 'comment's in the following: create table blah ( id int primary key auto_increment comment 'autoid', info text comment 'some text',

Mode for tab-delimited files?

2010-03-11 Thread Benjamin R. Haskell
Is there a filetype or way to set vim up nicely for tab-delimited files? What I'm looking for is to have tab characters force vertical alignment of the following characters. E.g., using » to indicate the tabs, I'd like the following: 1»longer-than-a-tab»bar»long column with spaces »»baz»s

Re: Fuzzyfinder | Tabs for cycling selections

2010-03-11 Thread tyru
Hi. Sorry to send mails again and again. 'inoremap' is better than 'imap'. autocmd FileType fuf inoremap autocmd FileType fuf inoremap On Mar 12, 1:01 am, tyru wrote: > Hi. > > I asked this question at chat room about vim. > Room's member told me that [R] indicates readonly. > > And s

Re: Fuzzyfinder | Tabs for cycling selections

2010-03-11 Thread tyru
Hi. I asked this question at chat room about vim. Room's member told me that [R] indicates readonly. And someone also told my code was slightly bad. autocmd FileType fuf imap autocmd FileType fuf imap should be right. On Mar 11, 10:49 pm, voxner wrote: > Hi, > > Thanks. > > autocmd

Re: Fuzzyfinder | Tabs for cycling selections

2010-03-11 Thread tyru
Maybe that indicates type of items, I don't know for details though... On Mar 11, 10:49 pm, voxner wrote: > Hi, > > Thanks. > > autocmd BufEnter,BufFilePost \[fuf\] imap > > works. But I still see '[R]' at the beginning of each selection. Any idea > what it signifies? Hope it's not an issue. >

Re: Fuzzyfinder | Tabs for cycling selections

2010-03-11 Thread voxner
Hi, Thanks. autocmd BufEnter,BufFilePost \[fuf\] imap works. But I still see '[R]' at the beginning of each selection. Any idea what it signifies? Hope it's not an issue. Thanks, voxner On Thu, Mar 11, 2010 at 6:25 PM, tyru wrote: > > > On Mar 11, 9:34 pm, voxner wrote: > > Hi, > > > >

Re: motion end of line excluding space

2010-03-11 Thread Maxim Kim
On 11 мар, 15:32, sinbad wrote: > hi, > > how to move to end of line ignoring end of line spaces. meaning i have > to move to first space of end of line. Try :help g_ -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. F

Re: file manager recommendations

2010-03-11 Thread Daniel Fetchinson
> What has NERDTree more then WinManager. > > I checked both but find WinManager quicker and have not found any > difference between them. > > Why do almost all people use NERDTree? > (I suppose I haven't understand the plugin very well) > >> >> I use NERDTree to survive in Windows when I have to.

Re: Fuzzyfinder | Tabs for cycling selections

2010-03-11 Thread tyru
On Mar 11, 9:34 pm, voxner wrote: > Hi, > > Thanks for the tip. But I am facing a weird problem, the first time I press > tab key the behavior is insertion of tab-whitespace, but subsequently the > cycling of selections work. hmm, I'm using version 3.5(latest) and it works. But so, how about th

Re: motion end of line excluding space

2010-03-11 Thread Karthick Gururaj
On Thu, Mar 11, 2010 at 6:02 PM, sinbad wrote: > hi, > > how to move to end of line ignoring end of line spaces. meaning i have > to move to first space of end of line. > /\s\+$/s Search (/) for one or more spaces (\s\+) followed by end of line ($) and then move to the start of match (/s -- Yo

Re: Fuzzyfinder | Tabs for cycling selections

2010-03-11 Thread voxner
Hi, Thanks for the tip. But I am facing a weird problem, the first time I press tab key the behavior is insertion of tab-whitespace, but subsequently the cycling of selections work. I also noticed a "[R]" before the files which was not the case before adding the two lines. Any idea why it's there

motion end of line excluding space

2010-03-11 Thread sinbad
hi, how to move to end of line ignoring end of line spaces. meaning i have to move to first space of end of line. 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 information, visit http://www.vim.org/

Re: Naive question: scrolling down keeping only 1 line

2010-03-11 Thread Andy Wokula
Am 27.02.2010 05:39, schrieb Matt Wozniski: On Fri, Feb 26, 2010 at 5:23 PM, Jean Johner wrote: On Feb 26, 6:58 pm, Ben Fritz wrote: 2. Re-map CTRL-F/CTRL-B with an :nnoremap command that issues the command, then scrolls by 1 line with CTRL-Y/CTRL-E in the correct direction to get the desire

Re: Fuzzyfinder | Tabs for cycling selections

2010-03-11 Thread tyru
Hi voxner. ':set wildmenu' does not change fuzzyfinder's behavior. How about this? autocmd BufEnter \[fuf\] imap autocmd BufEnter \[fuf\] imap On Mar 11, 2:46 pm, voxner wrote: > Hi, > > I use fuzzyfinder to cycle between buffers. I am forced to use the > command to cycle between selec

Re: Fuzzyfinder | Tabs for cycling selections

2010-03-11 Thread tyru
Hi voxner. ':set wildmenu' does not change fuzzyfinder's behavior. How about this? autocmd BufEnter \[fuf\] imap autocmd BufEnter \[fuf\] imap On Mar 11, 2:46 pm, voxner wrote: > Hi, > > I use fuzzyfinder to cycle between buffers. I am forced to use the > command to cycle between selec

Re: ctags complexity

2010-03-11 Thread Rafael G.
J a g p r e e t wrote: Hi vimmers, While programming I want to use lot of c/c++ plugins e.g. omni completion, trinity, c-support etc. All of these plugins use tags file. Is it possible to create one single tags file which all the plugin can use. Also how this file(tags) can be automatically

Re: vim-latex, acute letter

2010-03-11 Thread Tony Mechelynck
On 11/03/10 10:52, Germain wrote: Hi The first option does not work, that : au VimEnter * au FileType tex silent! unmap! The é (e-acute) is missing at the end. does not fix the problem Nevertheless, I found a solution. I created the file tex.vim in ~/.vim/ ftplugins/ and I add the followi

Re: vim-latex, acute letter

2010-03-11 Thread Eduard
Hi Germain, On Mar 10, 10:04 am, Germain wrote: > I just start to use the latex-suite plugins which looks like > promising. Nevertheless, I can not use the é letter. If I it the é key > of my AZERTY keybord this do nothing ! > This FAQ does not fix the problem > http://vim-latex.sourceforge.net

Re: vim-latex, acute letter

2010-03-11 Thread Germain
Hi The first option does not work, that : au VimEnter * au FileType tex silent! unmap! does not fix the problem Nevertheless, I found a solution. I created the file tex.vim in ~/.vim/ ftplugins/ and I add the following line : imap Tex_InsertItemOnThisLine Actually you have to create the fi

Re: select the word under the cursor

2010-03-11 Thread Christian Brabandt
On Thu, March 11, 2010 9:24 am, Neshama wrote: > Is it possible to (visually) select a word under the cursor ? > > The reason I need that is to easily copy and paste words under the > cursor, without having to manually select them with 'v' first (which > is slow). > > I know that '*' and '#' finds

RE: select the word under the cursor

2010-03-11 Thread John Beckett
Neshama wrote: > Is it possible to (visually) select a word under the cursor ? > > The reason I need that is to easily copy and paste words > under the cursor, without having to manually select them with > 'v' first (which is slow). It is very easy to type the following (in normal mode): yiw

Re: vim with colored syntax highlighting on AIX

2010-03-11 Thread Jose Luis
I finally got vim's colored syntax. These are the steps that I followed: 1) On my telnet client (Secure CRT) select "xterm" as Terminal Emulation and the checkbox "ANSI Color" 2) Add "export TERM=aixterm" to my ".profile" 3) Copy "$VIMRUNTIME/vimrc_example.vim" to "$HOME/.vimrc" Regards, Jos

Re: select the word under the cursor

2010-03-11 Thread Andrey Voropaev
On Thu, Mar 11, 2010 at 9:24 AM, Neshama wrote: > Is it possible to (visually) select a word under the cursor ? byw or bvw the first one yanks the word, you can paste it later using p, the second visually selects the word (why would you need it?) If you don't want to hit 3 buttons, create a macr

select the word under the cursor

2010-03-11 Thread Neshama
Hi all, Is it possible to (visually) select a word under the cursor ? The reason I need that is to easily copy and paste words under the cursor, without having to manually select them with 'v' first (which is slow). I know that '*' and '#' finds me occurrences of the word under the cursor, so I

Re: can I configure the "default" commands?

2010-03-11 Thread Jorge Timón
I'm sorry, I think I've typed it wrong. ' ` ´ # 1 Tim's house # 2 vou à praza (portuguese) # 3 configuración (spanish) Then I think it should be: :nnoremap ´ { :nnoremap ç } For now I'll just replace keys that are useless in vim. Thank you all On 9 mar, 15:42, Tim Chase wrote: > > Will it work