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