Re: How to eliminate $-> from php words

2010-11-02 Thread John Little
On Nov 3, 12:48 pm, Tim Johnson wrote: > :setlocal iskeyword-=$-> > What am I doing wrong? (I see others are getting you where you want to go, but they didn't answer this question directly). That'll never work, for at least two reasons. 1. iskeyword is a comma separated list of items. The abov

Re: and set list problem

2010-11-02 Thread lingkun
2010/11/3 Tony Mechelynck > On 02/11/10 18:39, itx wrote: > >> thanks for help. >> >> >> What does Vim answer to >> >>:verbose set list? listchars? lazyredraw? >>:if !has('gui_running') | verbose set t_kb? t_kD? | endif >> >> and what appears if (in Insert or Comma

Re: How to eliminate $-> from php words

2010-11-02 Thread Tim Johnson
* sc [101102 17:11]: > On Tuesday 02 November 2010 19:51:49 Tim Johnson wrote: > > the verbose query will tell you, by providing a "Last set > from" line -- you have not shown us that, you've only shared > the verbose query from your --noplugin session I apologize for the oversight. I think the

Re: How to eliminate $-> from php words

2010-11-02 Thread sc
On Tuesday 02 November 2010 19:51:49 Tim Johnson wrote: > * sc [101102 16:20]: > > On Tuesday 02 November 2010 18:48:30 Tim Johnson wrote: > <.> > > first, test my theory by testing iskeyword with > > > > :verbose set iskeyword? > <..> > > ok, scratch that -- i just looked and php.vim

Re: How to eliminate $-> from php words

2010-11-02 Thread Tim Johnson
* sc [101102 16:20]: > On Tuesday 02 November 2010 18:48:30 Tim Johnson wrote: <.> > first, test my theory by testing iskeyword with > > :verbose set iskeyword? <..> > ok, scratch that -- i just looked and php.vim does not tamper > with iskeyword -- perhaps you have a plugin installed t

Re: How to eliminate $-> from php words

2010-11-02 Thread sc
On Tuesday 02 November 2010 18:48:30 Tim Johnson wrote: > using vim huge version with GTK2 GUI on ubuntu 10.04 > I mean to eliminate the following characters: > '$' , '-', and '>' (ascii 36,45,62) > from php word syntax. > Neither > :setlocal iskeyword-=$-> > as an ex command nor > autocmd B

How to eliminate $-> from php words

2010-11-02 Thread Tim Johnson
using vim huge version with GTK2 GUI on ubuntu 10.04 I mean to eliminate the following characters: '$' , '-', and '>' (ascii 36,45,62) from php word syntax. Neither :setlocal iskeyword-=$-> as an ex command nor autocmd BufRead,BufNewFile *.php setlocal iskeyword-=$-> in .vimrc has the effect

Re: wm and tw cause formatting problem

2010-11-02 Thread Simon Ruderich
On Tue, Nov 02, 2010 at 04:03:51PM +, Anthony Campbell wrote: > In insert mode, if a line starts with "-" the next line is indented. This is > not what I want. > > After a lot of experimenting, I found that it was because either > textwidth or wrapmargin was set to a non-zero value. Is there an

Re: Using Bash in Vi mode. How to map keys?

2010-11-02 Thread ZyX
Reply to message «Re: Using Bash in Vi mode. How to map keys?», sent 21:15:14 02 November 2010, Tuesday by aleCodd: > > what do you mean by that? waits for a command and reenters insert > > mode, but where does it MOVE? Just try it while at the end of non-empty line and see where cursor moves.

Re: Using Bash in Vi mode. How to map keys?

2010-11-02 Thread Benjamin R. Haskell
On Tue, 2 Nov 2010, aleCodd wrote: Reply to message «Re: Using Bash in Vi mode. How to map keys?», sent 19:57:06 02 November 2010, Tuesday by aleCodd: just for curiosity, why do you have in the last 5 or so commands the , why is not the enough to enter a normal mode command before returning

Re: and set list problem

2010-11-02 Thread Tony Mechelynck
On 02/11/10 18:39, itx wrote: thanks for help. What does Vim answer to :verbose set list? listchars? lazyredraw? :if !has('gui_running') | verbose set t_kb? t_kD? | endif and what appears if (in Insert or Command-line mode) you hit Ctrl- V (or Ctrl-Q if you us

Re: Using Bash in Vi mode. How to map keys?

2010-11-02 Thread aleCodd
Reply to message «Re: Using Bash in Vi mode. How to map keys?», sent 19:57:06 02 November 2010, Tuesday by aleCodd: > just for curiosity, why do you have in the last 5 or so commands the > , > why is not the enough to enter a normal mode command before > returning > to insert mode.. Because it

Re: Using Bash in Vi mode. How to map keys?

2010-11-02 Thread aleCodd
ZyX wrote: > > Reply to message «Re: Using Bash in Vi mode. How to map keys?», > sent 19:57:06 02 November 2010, Tuesday > by aleCodd: > >> just for curiosity, why do you have in the last 5 or so commands the >> , >> why is not the enough to enter a normal mode command before >> returning >>

Re: Using Bash in Vi mode. How to map keys?

2010-11-02 Thread ZyX
Reply to message «Re: Using Bash in Vi mode. How to map keys?», sent 19:57:06 02 November 2010, Tuesday by aleCodd: > just for curiosity, why do you have in the last 5 or so commands the , > why is not the enough to enter a normal mode command before returning > to insert mode.. Because it moves

Re: and set list problem

2010-11-02 Thread itx
thanks for help. What does Vim answer to :verbose set list? listchars? lazyredraw? :if !has('gui_running') | verbose set t_kb? t_kD? | endif and what appears if (in Insert or Command-line mode) you hit Ctrl- V (or Ctrl-Q if you use Ctrl-V to paste into Vim) followed

Re: Using Bash in Vi mode. How to map keys?

2010-11-02 Thread aleCodd
thanks so much just for curiosity, why do you have in the last 5 or so commands the , why is not the enough to enter a normal mode command before returning to insert mode.. and just to make sure, bindkey is a zsh command, and if so how do you rate zsh vs. bash when it comes to command line editi

Re: Using Bash in Vi mode. How to map keys?

2010-11-02 Thread ZyX
Reply to message «Re: Using Bash in Vi mode. How to map keys?», sent 19:15:44 02 November 2010, Tuesday by aleCodd: > hmm...what do you mean by 's>>' ? Do not use google groups, it fucks up unicode symbols. It is was a ``,s'' enclosed in "\u00ab" and "\u00bb" (left and right double angle quotati

Re: Using Bash in Vi mode. How to map keys?

2010-11-02 Thread aleCodd
ZyX wrote: > > I use «,s», «,f», «,u», «,h», «,"» «,'» for «()», «{}», «<>», «[]», «""», > «''» > respectively. Having «"» mapped to «""» is very annoying when I do not > need to > have two double strokes what is common. And having to type symbols from > the top > row even without shift (prog

wm and tw cause formatting problem

2010-11-02 Thread Anthony Campbell
In insert mode, if a line starts with "-" the next line is indented. This is not what I want. After a lot of experimenting, I found that it was because either textwidth or wrapmargin was set to a non-zero value. Is there any way to get round this? I do need to set textwidth but I don't want to ha

Re: Using Bash in Vi mode. How to map keys?

2010-11-02 Thread ZyX
Reply to message «Re: Using Bash in Vi mode. How to map keys?», sent 17:47:30 02 November 2010, Tuesday by aleCodd: > Can I be more specific? > > I want to bind in bash something equivalent to: > :inoremap " "" > > Now, this mapping is so common that i'm sure that millions of people hav

Re: Using Bash in Vi mode. How to map keys?

2010-11-02 Thread aleCodd
ZyX wrote: > > > Maybe you should try switching to zsh: its zle (z line editor) is highly > configurable. Though it does not have an equivalent to `noremap', you > could bind > keys to functions: your example could be written like that: > > function _-ins-aa() { LBUFFER+=aa } > zle -

Re: vim moving code block problem

2010-11-02 Thread Ben Fritz
On Nov 1, 4:51 am, "John Beckett" wrote: > Zhanglistar wrote: > > Vim manual says that to move to the start of the outer block > > use the "[[" command. But when I use "[[", it jumps to the > > head of file, which is a C program. And I when I use "]]", it > > jumps to the end of the C file. > >

Re: Using Bash in Vi mode. How to map keys?

2010-11-02 Thread Christian Brabandt
Hi ZyX! On Di, 02 Nov 2010, ZyX wrote: > It also has a vi mode and I saw an answer on stackoverflow that > explains how to change prompt when switching from/to `normal' mode: > http://stackoverflow.com/questions/3622943/zsh-vi-mode-status-line Here is another example: http://www.bewatermyfrien

Re: Using Bash in Vi mode. How to map keys?

2010-11-02 Thread ZyX
Reply to message «Re: Using Bash in Vi mode. How to map keys?», sent 15:40:29 02 November 2010, Tuesday by aleCodd: > I still have 2 problems with that, first i don't know how to "submit" the > command back to bash after editing the command on vim, and second its > really over the top, to switch

Re: Using Bash in Vi mode. How to map keys?

2010-11-02 Thread aleCodd
Eran Borovik wrote: > > In bash "vi" mode, one can press v and then get a full vim editor. > Then you will have everything you need. > > Hope it helps, > Eran. > I still have 2 problems with that, first i don't know how to "submit" the command back to bash after editing the command on vim, an

how to convert emacs-syntax file to vim-syntax file

2010-11-02 Thread Johann Schatzer
Is there a simple way to convert a major emacs mode syntax file into an vim-syntax file? -- Johann Schatzer PGP key: 0x4212C694 -- 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

Re: line number non copyable

2010-11-02 Thread Gestorm
Hi, I've written a plugin to solve this problem, see http://www.vim.org/scripts/script.php?script_id=2963 On 11月1日, 下午6时55分, statquant2 wrote: > Hi guys, > silly question, is it possible to set the line numbers such that you cannot > copy them ? > I like to have the line number but I am fed up wi

Re: line number non copyable

2010-11-02 Thread Gestorm
Hi, I've written a plugin to solve this problem, see http://www.vim.org/scripts/script.php?script_id=2963 On 11月1日, 下午6时55分, statquant2 wrote: > Hi guys, > silly question, is it possible to set the line numbers such that you cannot > copy them ? > I like to have the line number but I am fed up wi

Re: line number non copyable

2010-11-02 Thread statquant2
Hello JohnS Thank you for your messages, I am already doing what you are suggesting (not using gvim though) Thanks for the insight Cheers -- View this message in context: http://vim.1045645.n5.nabble.com/line-number-non-copyable-tp3244877p3246342.html Sent from the Vim - General mailing list ar

Re: Nice display of leading tabs

2010-11-02 Thread Андрей Хитров
For tabs and trailing spaces I use those display settings along with the theme "desert". To my taste it looks pretty cool, at least for development in Python. " displaying tab characters and trailing spaces " with special characters \u2592\u2591 and \u2593 set lcs=tab:▒░,trail:▓ set list -- You