Changing vimrc around: removing ctrl-p custom search, changing split keymap, changing trim-whitespace keymap

This commit is contained in:
Dustin Swan
2012-07-20 10:39:04 -05:00
parent 9f86ddf648
commit e8419b4fe4
4 changed files with 9 additions and 13 deletions

View File

@@ -16,3 +16,5 @@ set -x PATH /usr/local/bin $PATH # Homebrew
set -x PATH $HOME/.rvm/bin $PATH # RVM set -x PATH $HOME/.rvm/bin $PATH # RVM
set -x PATH /Applications/Postgres.app/Contents/MacOS/bin $PATH # Postgres set -x PATH /Applications/Postgres.app/Contents/MacOS/bin $PATH # Postgres
set -x PATH $HOME/Library/Haskell/bin $PATH # Haskell set -x PATH $HOME/Library/Haskell/bin $PATH # Haskell
set -x IGVERBOSE 3

16
vimrc
View File

@@ -157,6 +157,8 @@ else
let g:loaded_syntastic_plugin=1 let g:loaded_syntastic_plugin=1
endif endif
nnoremap <leader>s :SyntasticToggleMode<cr>
" Supertab " Supertab
" let g:SuperTabDefaultCompletionType="context" " let g:SuperTabDefaultCompletionType="context"
@@ -164,10 +166,10 @@ endif
nnoremap <leader>4 :! p4 edit %<cr> nnoremap <leader>4 :! p4 edit %<cr>
" open vsplit and switch to it " open vsplit and switch to it
nnoremap <leader>w <c-w>v<c-w>l nnoremap <leader>v <c-w>v<c-w>l
" trim whitespace " trim whitespace
nnoremap <leader>W :%s/\s\+$//e<cr> nnoremap <leader>w :%s/\s\+$//e<cr>
" open Ack " open Ack
nnoremap <leader>a :Ack<space> nnoremap <leader>a :Ack<space>
@@ -180,14 +182,6 @@ nnoremap ! :Clam<space>
" CtrlP " CtrlP
nnoremap <leader>b :CtrlPBuffer<cr> nnoremap <leader>b :CtrlPBuffer<cr>
" Set the max files " Set the max files
let g:ctrlp_max_files = 10000 let g:ctrlp_max_files = 10000
" Optimize file searching
"if has("unix")
"let g:ctrlp_user_command = {
"\ 'types': {
"\ 1: ['.git/', 'cd %s && git ls-files']
"\ },
"\ 'fallback': 'find %s -type f | head -' . g:ctrlp_max_files
"\ }
"endif