From c3d44936c02773db598f87d10365c90b3f75bd13 Mon Sep 17 00:00:00 2001 From: Fabio Gallonetto Date: Sat, 16 Mar 2013 13:44:39 +0000 Subject: [PATCH] Move mapleader definition to vimrc It seems that the mapleader has to be defined before vundle starts to load the plugins. For this reason, I moved it from yadr-keymap back into the vimrc. I'm sure it's not a big deal having the leader mapped under the "general config" instead of inside settings. --- vim/plugin/settings/yadr-keymap.vim | 4 ---- vimrc | 6 ++++++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/vim/plugin/settings/yadr-keymap.vim b/vim/plugin/settings/yadr-keymap.vim index 7e0d56d..ed6f853 100644 --- a/vim/plugin/settings/yadr-keymap.vim +++ b/vim/plugin/settings/yadr-keymap.vim @@ -3,10 +3,6 @@ " ======================================== " " -" Change leader to a comma because the backslash is too far away -" That means all \x commands turn into ,x -let mapleader="," - " alias yw to yank the entire word 'yank inner word' " even if the cursor is halfway inside the word " FIXME: will not properly repeat when you use a dot (tie into repeat.vim) diff --git a/vimrc b/vimrc index 576634b..464a9df 100644 --- a/vimrc +++ b/vimrc @@ -27,6 +27,12 @@ set hidden "turn on syntax highlighting syntax on +" Change leader to a comma because the backslash is too far away +" That means all \x commands turn into ,x +" The mapleader has to be set before vundle starts loading all +" the plugins. +let mapleader="," + " =============== Vundle Initialization =============== " This loads all the plugins specified in ~/.vim/vundle.vim " Use Vundle plugin to manage all other plugins