Re: nested expr in a mapping

2020-02-13 Thread Gary Johnson
On 2020-02-13, M Kelly wrote: > Hi, > > Is it posible to nest conditionals in a mapping, something like, just for > demonstration: > > vnoremap vv (strlen(@y) == 1) ? ':let ...' : '("vcl" =~ > getregtype("*")) > ? 'some foo' : 'some bar' ' some more ... > > Can we do this ? Yes. See

Re: nested expr in a mapping

2020-02-13 Thread M Kelly
Hi, I suppose I can call a function to do this :-) -m -- -- 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/maillist.php --- You received this message because you are

nested expr in a mapping

2020-02-13 Thread M Kelly
Hi, Is it posible to nest conditionals in a mapping, something like, just for demonstration: vnoremap vv (strlen(@y) == 1) ? ':let ...' : '("vcl" =~ getregtype("*")) ? 'some foo' : 'some bar' ' some more ... Can we do this ? Do I use ''' (3 single quotes) to embed quotes ? (and then 5

Re: Is "vim -C" supposed to override .vimrc?

2020-02-13 Thread 'Ottavio Caruso' via vim_use
On Thu, 13 Feb 2020 at 17:00, Gary Johnson wrote: > > On 2020-02-13, 'Ottavio Caruso' via vim_use wrote: > > Hi, > > > > this is a snippet or my vimrc: > > > > $ cat .vim/vimrc > > source $VIMRUNTIME/defaults.vim > > set dir=~/.vim/tmp > > set expandtab > > set autoindent > > iabbrev mydate

Re: Is "vim -C" supposed to override .vimrc?

2020-02-13 Thread Gary Johnson
On 2020-02-13, 'Ottavio Caruso' via vim_use wrote: > Hi, > > this is a snippet or my vimrc: > > $ cat .vim/vimrc > source $VIMRUNTIME/defaults.vim > set dir=~/.vim/tmp > set expandtab > set autoindent > iabbrev mydate =strftime("%a %d/%m/%Y") > digraph bl 8226 " Insert Bullet with +k bl > map

Is "vim -C" supposed to override .vimrc?

2020-02-13 Thread 'Ottavio Caruso' via vim_use
Hi, this is a snippet or my vimrc: $ cat .vim/vimrc source $VIMRUNTIME/defaults.vim set dir=~/.vim/tmp set expandtab set autoindent iabbrev mydate =strftime("%a %d/%m/%Y") digraph bl 8226 " Insert Bullet with +k bl map :1m$ which sources the default vim system file, which in turn sets