Permalink
Browse files

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.
  • Loading branch information...
1 parent 52407ac commit c3d44936c02773db598f87d10365c90b3f75bd13 Fabio Gallonetto committed Mar 16, 2013
Showing with 6 additions and 4 deletions.
  1. +0 −4 vim/plugin/settings/yadr-keymap.vim
  2. +6 −0 vimrc
@@ -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)
View
6 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

0 comments on commit c3d4493

Please sign in to comment.