From 103ce0c6cadce4192cc4bd92dc0b656d45800ce7 Mon Sep 17 00:00:00 2001 From: Michael Campagnaro Date: Fri, 16 Nov 2012 01:05:17 -0500 Subject: [PATCH] Fix ctrlp remapping and add split window movement --- .vimrc | 33 +++++++++++++++++++-------------- 1 file changed, 19 insertions(+), 14 deletions(-) diff --git a/.vimrc b/.vimrc index a0204a6..ea1e9e5 100644 --- a/.vimrc +++ b/.vimrc @@ -1,3 +1,5 @@ +let mapleader="," + """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " PLUGINS """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" @@ -8,18 +10,15 @@ call pathogen#helptags() set runtimepath^=~/.vim/bundle/ctrlp.vim let g:ctrlp_map = 'ff' let g:ctrlp_cmd = 'CtrlP' - -map fR :call ShowRoutes() -nmap fv :CtrlP app/views -nmap fc :CtrlP app/controllers -nmap fm :CtrlP app/models -map fh :CtrlP app/helpers -map fl :CtrlP lib -map fp :CtrlP public -map fs :CtrlP app/views/stylesheets -map gg :topleft 100 :split Gemfile - let g:ctrlp_custom_ignore = '\v[\/]\.(git|hg|svn)$' +map fR :call ShowRoutes() +map fv :CtrlP app/views +map fc :CtrlP app/controllers +map fm :CtrlP app/models +map fh :CtrlP app/helpers +map fl :CtrlP lib +map fp :CtrlP public +map fs :CtrlP app/stylesheets """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " BASIC EDITING CONFIGURATION @@ -98,8 +97,6 @@ augroup END """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " MISC KEY MAPS """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" -let mapleader="," - " insert an end tag with imap end @@ -109,7 +106,7 @@ imap => " set esc to imap -" remap semicovlon +" remap semicolon nmap . : " Quickly edit/reload the vimrc file @@ -126,6 +123,14 @@ nmap x :x :ca W w :ca Q q +" Map ctrl-movement keys to window switching +map +map +map +map + +map gg :topleft 100 :split Gemfile + " Clear the search buffer (highlighting) when hitting return function! MapCR() nnoremap :nohlsearch