mirror of
https://github.com/prurigro/darkcloud-vimconfig.git
synced 2024-11-21 22:42:31 -05:00
Update neocomplcache to neocomplete, add FastFold to help with folds and improve the add/delete-submodule scripts
This commit is contained in:
parent
bff9d7c3dc
commit
463cb0680e
9 changed files with 75 additions and 59 deletions
9
.gitmodules
vendored
9
.gitmodules
vendored
|
@ -16,9 +16,6 @@
|
|||
[submodule "vim/bundle/tagbar"]
|
||||
path = vim/bundle/tagbar
|
||||
url = git://github.com/majutsushi/tagbar
|
||||
[submodule "vim/bundle/neocomplcache.vim"]
|
||||
path = vim/bundle/neocomplcache.vim
|
||||
url = https://github.com/Shougo/neocomplcache.vim.git
|
||||
[submodule "vim/bundle/emmet-vim"]
|
||||
path = vim/bundle/emmet-vim
|
||||
url = https://github.com/mattn/emmet-vim.git
|
||||
|
@ -112,3 +109,9 @@
|
|||
[submodule "vim/bundle/ReplaceWithRegister"]
|
||||
path = vim/bundle/ReplaceWithRegister
|
||||
url = https://github.com/prurigro/ReplaceWithRegister.git
|
||||
[submodule "vim/bundle/neocomplete.vim"]
|
||||
path = vim/bundle/neocomplete.vim
|
||||
url = https://github.com/Shougo/neocomplete.vim
|
||||
[submodule "vim/bundle/FastFold"]
|
||||
path = vim/bundle/FastFold
|
||||
url = https://github.com/Konfekt/FastFold.git
|
||||
|
|
|
@ -12,7 +12,7 @@ A theme, config and collection of plugins for Vim.
|
|||
## Optional Requirements ##
|
||||
|
||||
* **Compilers and Runtimes**: The syntastic plugin can use the compiler or runtime for most languages to provide real-time syntax checking.
|
||||
* **CTags**: Required by the _tagbar_ and _neocomplcache_ plugins as well as the _gentags_ script ([ctags website](http://ctags.sourceforge.net)).
|
||||
* **CTags**: Required by the _tagbar_ and _neocomplete_ plugins as well as the _gentags_ script ([ctags website](http://ctags.sourceforge.net)).
|
||||
* **Powerline Fonts**: Required to enable the fancier looking status line ([powerline-fonts repo](https://github.com/Lokaltog/powerline-fonts)).
|
||||
|
||||
## Distribution Features ##
|
||||
|
@ -157,12 +157,13 @@ For a complete list of mappings specific to **darkcloud-vimconfig**, check the l
|
|||
* [autoswap.vim](https://github.com/vim-scripts/autoswap.vim): Switch to open editor window instead of asking what to do with swapfile.
|
||||
* [emmet-vim](https://github.com/mattn/emmet-vim): Support for expanding abbreviations.
|
||||
* [webapi-vim](https://github.com/mattn/webapi-vim): A web library used by emmet to provide support for custom snippets.
|
||||
* [FastFold](https://github.com/Konfekt/FastFold): Speed up Vim by updating folds only when called-for.
|
||||
* [goyo.vim](https://github.com/junegunn/goyo.vim): Distraction-free writing in Vim.
|
||||
* [gundo.vim](https://github.com/sjl/gundo.vim): Sidebar to visualize your undo tree and browse the differences of each change.
|
||||
* [incsearch.vim](https://github.com/haya14busa/incsearch.vim): Improved incremental searching for Vim.
|
||||
* [lightline.vim](https://github.com/itchyny/lightline.vim): A light and configurable statusline/tabline for Vim.
|
||||
* [MatchTagAlways](https://github.com/Valloric/MatchTagAlways): A Vim plugin that always highlights the enclosing html/xml tags.
|
||||
* [neocomplcache.vim](https://github.com/Shougo/neocomplcache.vim): The '*ultimate*' auto-completion system for Vim.
|
||||
* [neocomplete.vim](https://github.com/Shougo/neocomplete.vim): Next generation completion framework after neocomplcache.
|
||||
* [patchreview-vim](https://github.com/junkblocker/patchreview-vim): A Vim plugin for doing single, multi-patch or diff code reviews.
|
||||
* [rename.vim](https://github.com/danro/rename.vim): Rename the current file in the vim buffer + retain relative path.
|
||||
* [ReplaceWithRegister](https://github.com/vim-scripts/ReplaceWithRegister): Replace text with the contents of a register (for paste+replace without writing over the buffer).
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
[[ -z $1 ]] && exit 1
|
||||
[[ -z $2 ]] && exit 1
|
||||
[[ -z "$1" || -z "$2" ]] && exit 1
|
||||
|
||||
git submodule add $1 vim/bundle/${2}
|
||||
git submodule add "$1" "vim/bundle/$2"
|
||||
git submodule update --init --recursive
|
||||
|
|
|
@ -1,7 +1,25 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
[[ -z $1 ]] && exit 1
|
||||
[[ -z "$1" ]] && exit 1
|
||||
|
||||
if [[ -d "vim/bundle/$1" ]]; then
|
||||
git submodule deinit -f "vim/bundle/$1"
|
||||
else
|
||||
printf '%s\n' "Couldn't run 'git submodule deinit vim/bundle/$1', does not exist" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ -d "vim/bundle/$1" ]]; then
|
||||
git rm "vim/bundle/$1"
|
||||
else
|
||||
printf '%s\n' "Couldn't run 'git rm vim/bundle/$1', does not exist" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [[ -d ".git/modules/vim/bundle/$1" ]]; then
|
||||
rm -rf ".git/modules/vim/bundle/$1"
|
||||
else
|
||||
printf '%s\n' "Couldn't run 'rm -rf .git/modules/vim/bundle/$1', does not exist" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
[[ -d "vim/bundle/${1}" ]] && git submodule deinit -f "vim/bundle/${1}" || echo "Couldn't run 'git submodule deinit vim/bundle/${1}', $1 does not exist"
|
||||
[[ -d "vim/bundle/${1}" ]] && git rm "vim/bundle/${1}" || echo "Couldn't run 'git rm vim/bundle/${1}', vim/bundle/${1} does not exist"
|
||||
[[ -d "${PWD}/.git/modules/vim/bundle/${1}" ]] && rm -rf "${PWD}/.git/modules/vim/bundle/${1}" || echo "Couldn't run 'rm -rf ${PWD}/.git/modules/vim/bundle/${1}', ${PWD}/.git/modules/vim/bundle/${1} does not exist"
|
||||
|
|
1
vim/bundle/FastFold
Submodule
1
vim/bundle/FastFold
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit d080780a000fa025832e01fb2b79768d4ad0bc2b
|
|
@ -1 +0,0 @@
|
|||
Subproject commit 778181767467b8f8016828898779a646074d883a
|
1
vim/bundle/neocomplete.vim
Submodule
1
vim/bundle/neocomplete.vim
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit bd5cc9e73dedb07f1ab0a99cc7943ef16732e3e9
|
|
@ -190,10 +190,10 @@
|
|||
" <Ctrl-Y> | (I) -> paste what's been cut during input
|
||||
"
|
||||
" (autocompletion)
|
||||
" <Enter> | (I) -> (neocomp) close the popup and <Enter>
|
||||
" <Tab> | (I) -> (neocomp) select/cycle popup completion
|
||||
" <Backspace> | (I) -> (neocomp) close the popup and <Backspace>
|
||||
" <Ctrl-u> | (I) -> (neocomp) undo the most recent completion
|
||||
" <Enter> | (I) -> (neocomplete) close the popup and <Enter>
|
||||
" <Tab> | (I) -> (neocomplete) select/cycle popup completion
|
||||
" <Backspace> | (I) -> (neocomplete) close the popup and <Backspace>
|
||||
" <Ctrl-u> | (I) -> (neocomplete) undo the most recent completion
|
||||
"
|
||||
" (formatting)
|
||||
" <Backspace> | (V) -> deletes currently selected text
|
||||
|
@ -698,20 +698,20 @@
|
|||
"}
|
||||
|
||||
"AUTOCOMPLETION:{
|
||||
"neocomplcache close popup and save indent
|
||||
inoremap <silent> <CR> <C-r>=<SID>neocompl_cr()<CR>
|
||||
function! s:neocompl_cr()
|
||||
return pumvisible() ? neocomplcache#close_popup() : "\<CR>"
|
||||
"neocomplete close popup and save indent
|
||||
inoremap <silent> <CR> <C-r>=<SID>neocache_cr()<CR>
|
||||
function! s:neocache_cr()
|
||||
return pumvisible() ? "\<C-y>" : "\<CR>"
|
||||
endfunction
|
||||
|
||||
"neocomplcache tab completion
|
||||
inoremap <expr><Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
|
||||
"neocomplete tab completion
|
||||
inoremap <expr><Tab> pumvisible() ? "\<C-n>" : "\<TAB>"
|
||||
|
||||
"neocomplcache : undo completion
|
||||
inoremap <expr><Backspace> neocomplcache#smart_close_popup()."\<C-h>"
|
||||
"neocomplete close popup
|
||||
inoremap <expr><Backspace> neocomplete#smart_close_popup()."\<C-h>"
|
||||
|
||||
"neocomplcache undo completion
|
||||
inoremap <expr><C-u> neocomplcache#undo_completion()
|
||||
"neocomplete undo completion
|
||||
inoremap <expr><C-u> neocomplete#undo_completion()
|
||||
"}
|
||||
|
||||
"FORMATTING:{
|
||||
|
|
|
@ -110,41 +110,35 @@ scriptencoding utf-8
|
|||
let g:mta_filetypes = {'aspnet':1, 'html':1, 'xhtml':1, 'php':1, 'xml':1, 'jinja':1}
|
||||
"}}}
|
||||
|
||||
"NEOCOMPLCACHE AUTOCOMPLETION PLUGIN: {{{
|
||||
let g:neocomplcache_enable_at_startup=1
|
||||
let g:neocomplcache_enable_smart_case=1
|
||||
let g:neocomplcache_min_syntax_length=3
|
||||
let g:neocomplcache_enable_insert_char_pre=0
|
||||
let g:neocomplcache_enable_underbar_completion=1
|
||||
let g:neocomplcache_wildcard_characters={'_': '-'}
|
||||
"NEOCOMPLETE AUTOCOMPLETION PLUGIN: {{{
|
||||
let g:neocomplete#enable_at_startup=1
|
||||
let g:neocomplete#enable_smart_case=1
|
||||
let g:neocomplete#sources#syntax#min_keyword_length=3
|
||||
|
||||
if !exists('g:neocomplcache_omni_patterns')
|
||||
let g:neocomplcache_omni_patterns = {}
|
||||
endif
|
||||
if !exists('g:neocomplcache_force_omni_patterns')
|
||||
let g:neocomplcache_force_omni_patterns = {}
|
||||
if !exists('g:neocomplete#sources#omni#input_patterns')
|
||||
let g:neocomplete#sources#omni#input_patterns = {}
|
||||
endif
|
||||
|
||||
let g:neocomplcache_omni_patterns.c='[^.[:digit:] *\t]\%(\.\|->\)\%(\h\w*\)\?'
|
||||
let g:neocomplcache_omni_patterns.cpp='[^.[:digit:] *\t]\%(\.\|->\)\%(\h\w*\)\?\|\h\w*::\%(\h\w*\)\?'
|
||||
let g:neocomplcache_omni_patterns.xml='<[^>]*'
|
||||
let g:neocomplcache_omni_patterns.html='<[^>]*'
|
||||
let g:neocomplcache_omni_patterns.xhtml='<[^>]*'
|
||||
let g:neocomplcache_omni_patterns.markdown='<[^>]*'
|
||||
let g:neocomplcache_omni_patterns.css='^\s\+\w+\|\w+[):;]?\s\+\|[@!]'
|
||||
let g:neocomplcache_omni_patterns.less='^\s\+\w+\|\w+[):;]?\s\+\|[@!]'
|
||||
let g:neocomplcache_omni_patterns.javascript='[^. \t]\.\%(\h\w*\)\?'
|
||||
let g:neocomplcache_omni_patterns.json='[^. \t]\.\%(\h\w*\)\?'
|
||||
let g:neocomplcache_omni_patterns.python='[^. *\t]\.\h\w*\|\h\w*::'
|
||||
let g:neocomplcache_omni_patterns.ruby='[^. *\t]\.\w*\|\h\w*::'
|
||||
let g:neocomplcache_omni_patterns.php='[^. \t]->\%(\h\w*\)\?\|\h\w*::\%(\h\w*\)\?'
|
||||
let g:neocomplcache_omni_patterns.actionscript='[^. \t][.:]\h\w*'
|
||||
let g:neocomplcache_omni_patterns.python3='[^. *\t]\.\h\w*\|\h\w*::'
|
||||
let g:neocomplcache_omni_patterns.go='\h\w*\%.'
|
||||
let g:neocomplcache_omni_patterns.perl='\h\w*->\h\w*\|\h\w*::'
|
||||
let g:neocomplcache_omni_patterns.java='\%(\h\w*\|)\)\.'
|
||||
let g:neocomplcache_omni_patterns.objc='\h\w\+\|\h\w*\%(\.\|->\)\h\w*'
|
||||
let g:neocomplcache_omni_patterns.objj='[\[ \.]\w\+$\|:\w*$'
|
||||
let g:neocomplete#sources#omni#input_patterns.c='[^.[:digit:] *\t]\%(\.\|->\)\%(\h\w*\)\?'
|
||||
let g:neocomplete#sources#omni#input_patterns.cpp='[^.[:digit:] *\t]\%(\.\|->\)\%(\h\w*\)\?\|\h\w*::\%(\h\w*\)\?'
|
||||
let g:neocomplete#sources#omni#input_patterns.xml='<[^>]*'
|
||||
let g:neocomplete#sources#omni#input_patterns.html='<[^>]*'
|
||||
let g:neocomplete#sources#omni#input_patterns.xhtml='<[^>]*'
|
||||
let g:neocomplete#sources#omni#input_patterns.markdown='<[^>]*'
|
||||
let g:neocomplete#sources#omni#input_patterns.css='^\s\+\w+\|\w+[):;]?\s\+\|[@!]'
|
||||
let g:neocomplete#sources#omni#input_patterns.less='^\s\+\w+\|\w+[):;]?\s\+\|[@!]'
|
||||
let g:neocomplete#sources#omni#input_patterns.javascript='[^. \t]\.\%(\h\w*\)\?'
|
||||
let g:neocomplete#sources#omni#input_patterns.json='[^. \t]\.\%(\h\w*\)\?'
|
||||
let g:neocomplete#sources#omni#input_patterns.python='[^. *\t]\.\h\w*\|\h\w*::'
|
||||
let g:neocomplete#sources#omni#input_patterns.ruby='[^. *\t]\.\w*\|\h\w*::'
|
||||
let g:neocomplete#sources#omni#input_patterns.php='[^. \t]->\%(\h\w*\)\?\|\h\w*::\%(\h\w*\)\?'
|
||||
let g:neocomplete#sources#omni#input_patterns.actionscript='[^. \t][.:]\h\w*'
|
||||
let g:neocomplete#sources#omni#input_patterns.python3='[^. *\t]\.\h\w*\|\h\w*::'
|
||||
let g:neocomplete#sources#omni#input_patterns.go='\h\w*\%.'
|
||||
let g:neocomplete#sources#omni#input_patterns.perl='\h\w*->\h\w*\|\h\w*::'
|
||||
let g:neocomplete#sources#omni#input_patterns.java='\%(\h\w*\|)\)\.'
|
||||
let g:neocomplete#sources#omni#input_patterns.objc='\h\w\+\|\h\w*\%(\.\|->\)\h\w*'
|
||||
let g:neocomplete#sources#omni#input_patterns.objj='[\[ \.]\w\+$\|:\w*$'
|
||||
"}}}
|
||||
|
||||
"SIGNIFY: {{{
|
||||
|
|
Loading…
Reference in a new issue