Skip to content

Commit

Permalink
A ton of changes, a few new plugins, removing a few old ones... prepp…
Browse files Browse the repository at this point in the history
…ing for release
  • Loading branch information
spf13 committed Jan 27, 2012
1 parent 95b7ab5 commit 0e0d125
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 14 deletions.
35 changes: 23 additions & 12 deletions .vimrc
Expand Up @@ -42,21 +42,25 @@
Bundle 'altercation/vim-colors-solarized'
Bundle 'spf13/vim-colors'
Bundle 'tpope/vim-surround'
Bundle 'ervandew/supertab'
"Bundle 'ervandew/supertab'
" Pick one of delimitMate or AutoClose
"Bundle 'Raimondi/delimitMate'
Bundle 'AutoClose'
Bundle 'wincent/Command-T'
"Bundle 'wincent/Command-T'
Bundle 'kien/ctrlp.vim'
Bundle 'spf13/vim-preview'
Bundle 'vim-scripts/sessionman.vim'
"Bundle 'greyblake/vim-preview'
Bundle 'matchit.zip'
Bundle 'Lokaltog/vim-powerline'
Bundle 'Lokaltog/vim-easymotion'

" General Programming
"Bundle 'spf13/snipmate.vim'
Bundle 'garbas/vim-snipmate'
Bundle 'spf13/snipmate-snippets'
Bundle 'tpope/vim-fugitive'
Bundle 'tpope/vim-cucumber'
Bundle 'scrooloose/nerdcommenter'
Bundle 'godlygeek/tabular'
Bundle 'majutsushi/tagbar'
Expand Down Expand Up @@ -108,7 +112,7 @@
" not every vim is compiled with this, use the following line instead

" If you use command-t plugin, it conflicts with this, comment it out.
"autocmd BufEnter * if bufname("") !~ "^\[A-Za-z0-9\]*://" | lcd %:p:h | endif
autocmd BufEnter * if bufname("") !~ "^\[A-Za-z0-9\]*://" | lcd %:p:h | endif
scriptencoding utf-8

" set autowrite " automatically write a file when leaving a modified buffer
Expand Down Expand Up @@ -273,12 +277,13 @@

" PIV {
let g:DisableAutoPHPFolding = 0
let g:PIVAutoClose = 0
"let cfu=phpcomplete#CompletePHP
" }

" Supertab {
let g:SuperTabDefaultCompletionType = "context"
let g:SuperTabContextDefaultCompletionType = "<c-x><c-o>"
"let g:SuperTabDefaultCompletionType = "context"
"let g:SuperTabContextDefaultCompletionType = "<c-x><c-o>"
"let g:SuperTabContextDefaultCompletionType = "<c-x><c-p>"
"let g:SuperTabMappingForward = '<c-space>'
"let g:SuperTabMappingBackward = '<s-c-space>'
Expand Down Expand Up @@ -344,7 +349,7 @@
inoremap <expr> <C-u> pumvisible() ? "\<PageUp>\<C-p>\<C-n>" : "\<C-u>"
" and make sure that it doesn't break supertab
let g:SuperTabCrMapping = 0
"let g:SuperTabCrMapping = 0

" automatically open and close the popup menu / preview window
au CursorMovedI,InsertLeave * if pumvisible() == 0|silent! pclose|endif
Expand Down Expand Up @@ -438,10 +443,14 @@
nmap <leader>jt <Esc>:%!python -m json.tool<CR><Esc>:set filetype=json<CR>
" }

" } PyMode
" PyMode {
g:pymode_lint_checker = "pyflakes"
" }

" ctrlp {
let g:ctrlp_working_path_mode = 2
"}

" neocomplcache {
let g:neocomplcache_enable_at_startup = 1
let g:neocomplcache_enable_camel_case_completion = 1
Expand All @@ -451,7 +460,7 @@
let g:neocomplcache_enable_auto_delimiter = 1

" AutoComplPop like behavior.
let g:neocomplcache_enable_auto_select = 1
let g:neocomplcache_enable_auto_select = 0

" SuperTab like snippets behavior.
imap <expr><TAB> neocomplcache#sources#snippets_complete#expandable() ? "\<Plug>(neocomplcache_snippets_expand)" : pumvisible() ? "\<C-n>" : "\<TAB>"
Expand All @@ -462,11 +471,13 @@
inoremap <expr><C-g> neocomplcache#undo_completion()
inoremap <expr><C-l> neocomplcache#complete_common_string()
" Recommended key-mappings.
" <CR>: close popup and save indent.
inoremap <expr><CR> neocomplcache#close_popup() . "\<CR>"
" <CR>: close popup
" <s-CR>: close popup and save indent.
inoremap <expr><CR> neocomplcache#close_popup()
inoremap <expr><s-CR> neocomplcache#close_popup() . "\<CR>"
" <TAB>: completion.
inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"
"inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"

" <C-h>, <BS>: close popup and delete backword char.
inoremap <expr><C-h> neocomplcache#smart_close_popup()."\<C-h>"
inoremap <expr><BS> neocomplcache#smart_close_popup()."\<C-h>"
Expand Down
4 changes: 2 additions & 2 deletions README.markdown
@@ -1,6 +1,6 @@
# spf13-vim : Steve Francia's Vim Distribution

This is a distribution of vim plugins and tools intended to be run on top of VIM. It is a good starting point for anyone intending to use VIM for development.
spf13-vim is a distribution of vim plugins and resources intended to be run on top of VIM. It is a good starting point for anyone intending to use VIM for development.

Unlike traditional VIM plugin structure, which similar to UNIX throws all files into common directories, making updating or disabling plugins a real mess, spf13-vim 3 uses [Vundle] to have a well organized vim directory (Similar to mac's app folders). Vundle also ensures that the latest versions of your plugins are installed and makes it easy to keep them up to date.

Expand Down Expand Up @@ -37,7 +37,7 @@ If it returns 1 your vim supports ruby.

### Easy Installation (\*nix only)

curl https://raw.github.com/spf13/spf13-vim/3.0/bootstrap.sh -o - | sh
curl http://j.mp/spf13-vim3 -o - | sh

or

Expand Down

0 comments on commit 0e0d125

Please sign in to comment.