On 30/01/09 09:14, [email protected] wrote:
> Hello all, I'm new to vim and having a bit of trouble. I'm using
> MacVim and trying to install scripts from vim.org into my ~/.vim
> folder. In my .vimrc I've got these lines to map keyboard shortcuts:
>
> autocmd FileType haskell nmap<C-c><C-l>  :GhciRange<CR>
> autocmd FileType haskell vmap<C-c><C-l>  :GhciRange<CR>
> autocmd FileType haskell nmap<C-c><C-f>  :GhciFile<CR>
>
> When I try to use these key combinations, I get a message saying "not
> an editor command." I've looked around on google and vim's built-in
> help, but I'm not really making much progress. Any suggestions on what
> I'm doing wrong?

- Does Vim tell you what command it does not recognize?
- Is GhciRange defined? Use ":command" to list user-commands.
- Is your Vim version compiled with +autocmd? (If it isn't, you cannot 
define autocommands). See the output of ":version" or check ":echo 
has('autocmd')" for a nonzero value.
- Is your Vim version compiled with +visual? (If it isn't, I doubt that 
you can use :vmap) Check the output of ":version" or ":echo has('visual')"


Best regards,
Tony.
-- 
If you want to understand your government, don't begin by reading the
Constitution.  It conveys precious little of the flavor of today's
statecraft.  Instead, read selected portions of the Washington
telephone directory containing listings for all the organizations with
titles beginning with the word "National".
                -- George Will

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to