Refactors ci( and ci[ behavior

This commit is contained in:
William Carroll 2016-12-30 05:20:13 -05:00
parent 94113a2dac
commit 74968572d9

View file

@ -83,6 +83,9 @@ Plugin 'flazz/vim-colorschemes'
" Dash integration (macOS only) " Dash integration (macOS only)
Plugin 'rizzatti/dash.vim' Plugin 'rizzatti/dash.vim'
" Better buffer mgt than CtrlP
Plugin 'yegappan/mru'
call vundle#end() " required call vundle#end() " required
filetype plugin indent on " required filetype plugin indent on " required
" Put your non-Plugin stuff after this line " Put your non-Plugin stuff after this line
@ -193,13 +196,15 @@ set relativenumber
" emulate ci" and ci' behavior " emulate ci" and ci' behavior
nnoremap ci( f)ci( nnoremap ci( f(%ci(
nnoremap ci[ f]ci[ nnoremap ci[ f[%ci[
" extend functionality of <C-e> & <C-y> scrolling " extend functionality of <C-e> & <C-y> scrolling
nnoremap <C-e> <C-e>j nnoremap <C-e> <C-e>j
vnoremap <C-e> <C-e>j
nnoremap <C-y> <C-y>k nnoremap <C-y> <C-y>k
vnoremap <C-y> <C-y>k
" Opens all folds within the buffer " Opens all folds within the buffer
@ -237,6 +242,10 @@ nnoremap <C-s> :w<CR>
nnoremap <leader><leader> <C-^> nnoremap <leader><leader> <C-^>
" Alternative MRU to CtrlP MRU
nnoremap <leader>b :MRU<CR>
" Supports mouse interaction. " Supports mouse interaction.
set mouse=a set mouse=a
@ -244,8 +253,8 @@ set mouse=a
" Highlights matches during a search. " Highlights matches during a search.
set hlsearch set hlsearch
" Search for gibberish to clear the most recent search " Clear highlight
noremap <leader>/ :silent! /__wc_gibberish__/<CR>:echo "Search cleared."<CR> noremap <leader>/ :nohlsearch<CR>
" backspace settings " backspace settings
@ -288,12 +297,7 @@ nnoremap sk <Esc>:sp<CR>
nnoremap <leader>q :bdelete<CR> nnoremap <leader>q :bdelete<CR>
" CtrlP config " Set CtrlP runtime path
" Set default CtrlP command.
let g:ctrlp_cmd = 'CtrlPBuffer'
" let g:ctrlp_cmd = 'CtrlPMRU'
" Set runtime path
set runtimepath^=~/.vim/bundle/ctrlp.vim set runtimepath^=~/.vim/bundle/ctrlp.vim