我在mac和windows中为vim使用相同的dotfiles。它们适用于Windows,但在Mac中不起作用。
的.vimrc
production:
clients:
default:
uri: <<URI>>
options:
read:
mode: :primary
max_pool_size: 1
ls -A~ / .vim / bundle
call pathogen#infect() " Reload all plugins
call pathogen#helptags() " Generate helptags for everything in 'runtimepath'
set nocompatible " Remove backwards compatibility with old Unix systems. This must be first, because it changes other options as a side effect.
" --------------------------------- NERDTree -----------------------------------
"Open NERDTree automatically when vim start up if no files were specified
autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
map <C-n> :NERDTreeToggle<CR> "To open NERDTree with Ctrl+n
"Close vim if only window left open is a NERDTree
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == "primary") | q | endif
" ---------------------------------- CtrlP -------------------------------------
" Change the default mapping and the default command to invoke CtrlP
let g:ctrlp_map = '<c-p>'
let g:ctrlp_cmd = 'CtrlP'
let g:ctrlp_working_path_mode = 'ra' " Unless a starting directory specified, CtrlP will set its local working directorPathogen does not load pluginsy
" Use a custom file listing command
let g:ctrlp_user_command = 'find %s -type f' " MacOSX/Linux
" let g:ctrlp_user_command = 'dir %s /-n /b /s /a-d' " Windows
:输出scriptnames
ctrlp.vim nerdtree