Working with European keyboard

5 views
Skip to first unread message

Wincent Colaiuta

unread,
May 17, 2009, 6:46:04 PM5/17/09
to xptemplate
So I just installed 0.3.7.16 (unpacked into the appropriate
subdirectories of ~/.vim/) and wanted to try it out, but I'm using a
Spanish keyboard so evidently <C-\> won't work.

So I add this to my ~/.vimrc:

let g:xptemplate_key='<F5>'

And I fire up Vim and point it at a file "foo.c", enter Insert mode,
type "for", and hit <F5> and nothing happens.

I've tried other keybindings as well and all of them have no visible
effect.

Is there something else I need to do to get this set-up for the first
time? I'm using MacVim 7.2 stabled 1.2 (33.3).

Cheers,
Wincent

dr-dr xp

unread,
May 18, 2009, 12:07:27 AM5/18/09
to xptem...@googlegroups.com
Well.. I've not yet test xpt in a mac box.. Since Mac is originally from BSD, I suppose that may not be a big problem. :)

I need some more information to track this issue :
When editing foo.c,  :mksession some_file<cr>  and send me that some_file. It's all configuration and setting of your current state of vim.
And the .vimrc you use.
--
要了几天饱饭就不记得西北风啥味了

Wincent Colaiuta

unread,
May 18, 2009, 5:04:32 AM5/18/09
to xptemplate
On 18 mayo, 06:07, dr-dr xp <drdr...@gmail.com> wrote:
> I need some more information to track this issue :
> When editing foo.c,  :mksession some_file<cr>  and send me that some_file.
> It's all configuration and setting of your current state of vim.
> And the .vimrc you use.

Ok, here is the output from the :mksession file:

http://pastie.org/481271

And here is my ~/.vimrc:

http://pastie.org/481349

And these are the plugins I have in my ~/.vim/plugin directory:

NERD_commenter.vim
NERD_tree.vim
fuzzyfinder.vim
ku.vim
minibufexpl.vim
rails.vim
repeat.vim
surround.vim
xpt.plugin.formatter.vim
xpt.plugin.highlight.vim
xpt.plugin.protect.vim
xptemplate.conf.vim
xptemplate.vim
xptemplateTest.vim

As an experiment, I also tried starting with a brand new ~/.vimrc and
~/.vim and reinstalling XP Template:

mv .vimrc oldvimrc
mv .vim oldvim
curl -o xpt-0.3.7.16.tgz http://www.vim.org/scripts/download_script.php?src_id=10621
tar xzf xpt-0.3.7.16.tgz
mv xpt .vim
echo "let g:xptemplate_key='<F5>'" > .vimrc

But that yields the same result (<F5> doesn't produce any output at
all). Here's the :mksession output:

http://pastie.org/481350

I am pretty sure the XP Template plugin can work with MacVim, as I've
seen a screencast that uses it (and in fact, you link to it on the
project page at vim.org):

http://vimeo.com/4449258

Cheers,
Wincent

dr-dr xp

unread,
May 18, 2009, 5:49:46 AM5/18/09
to xptem...@googlegroups.com
I saw the problem. you need these 2 setting on :
set nocompatible
filtetype plugin on

And it will work happily.

Your vimrc file is kind of unusual. It almost disables everything, but has some nice geek stuff. : D. Tasty
--
要了几天饱饭就不记得西北风啥味了

Wincent Colaiuta

unread,
May 18, 2009, 5:56:56 AM5/18/09
to xptemplate
On 18 mayo, 11:49, dr-dr xp <drdr...@gmail.com> wrote:
> I saw the problem. you need these 2 setting on :
> set nocompatible
> filtetype plugin on
>
> And it will work happily.

Thanks a lot. Adding "plugin" to the filetype line did the trick.
(Didn't need "nocompatible" because that's the default anyway whenever
a vimrc is found.)

> Your vimrc file is kind of unusual. It almost disables everything, but has
> some nice geek stuff. : D. Tasty

Yeah, I've only been using Vim for a few months, and wanted to keep a
fairly bare configuration while learning.

Cheers,
Wincent

dr-dr xp

unread,
May 18, 2009, 6:06:11 AM5/18/09
to xptem...@googlegroups.com
On Mon, May 18, 2009 at 5:56 PM, Wincent Colaiuta <w...@wincent.com> wrote:

On 18 mayo, 11:49, dr-dr xp <drdr...@gmail.com> wrote:
> I saw the problem. you need these 2 setting on :
> set nocompatible
> filtetype plugin on
>
> And it will work happily.

Thanks a lot. Adding "plugin" to the filetype line did the trick.
(Didn't need "nocompatible" because that's the default anyway whenever
a vimrc is found.)
 
: ), I'm always working on a server with a global vimrc file. That is annoying, So I always run vim as : vim -u ~/.vimrc . the global one is not reliable : |.



> Your vimrc file is kind of unusual. It almost disables everything, but has
> some nice geek stuff. : D. Tasty

Yeah, I've only been using Vim for a few months, and wanted to keep a
fairly bare configuration while learning.

Cheers,
Wincent





--
要了几天饱饭就不记得西北风啥味了
Reply all
Reply to author
Forward
0 new messages