mirror of
https://github.com/prurigro/darkcloud-nvimconfig.git
synced 2024-11-09 23:06:38 -05:00
played with the autocompletion and folds keys to avoid issues in input mode
This commit is contained in:
parent
1e87711574
commit
b9057fdae4
1 changed files with 14 additions and 18 deletions
|
@ -108,10 +108,10 @@
|
||||||
"
|
"
|
||||||
" (completion)
|
" (completion)
|
||||||
" <Ctrl-m>, | (A) -> enter after emmet 'word' (ie: html:5)
|
" <Ctrl-m>, | (A) -> enter after emmet 'word' (ie: html:5)
|
||||||
" <Tab> | (I) -> (neocomp) autocomplete using common string
|
" <Enter> | (I) -> (neocomp) close the popup and <Enter>
|
||||||
" <Leader><Tab> | (I) -> (neocomp) autocomplete the common string
|
" <Tab> | (I) -> (neocomp) select/cycle popup completion
|
||||||
" <Enter> | (I) -> (neocomp) close the suggestion popup
|
" <Backspace> | (I) -> (neocomp) close the popup and <Backspace>
|
||||||
" <Leader><Backspace> | (I) -> (neocomp) undo the most recent completion
|
" <Ctrl-u> | (I) -> (neocomp) undo the most recent completion
|
||||||
"
|
"
|
||||||
" (search)
|
" (search)
|
||||||
" <Leader>\ | (N) -> remove search highlighting
|
" <Leader>\ | (N) -> remove search highlighting
|
||||||
|
@ -383,18 +383,12 @@
|
||||||
|
|
||||||
"open all folds
|
"open all folds
|
||||||
nnoremap <silent><expr> <Leader>+ 'zn:echo "all folds have been opened"<CR>'
|
nnoremap <silent><expr> <Leader>+ 'zn:echo "all folds have been opened"<CR>'
|
||||||
xnoremap <silent><expr> <Leader>+ '<Esc>zngv'
|
|
||||||
inoremap <silent><expr> <Leader>+ '<C-O>zn'
|
|
||||||
|
|
||||||
"close folds set to be closed
|
"close folds set to be closed
|
||||||
nnoremap <silent><expr> <Leader>- 'zN:echo "all opened folds have been closed"<CR>'
|
nnoremap <silent><expr> <Leader>- 'zN:echo "all opened folds have been closed"<CR>'
|
||||||
xnoremap <silent><expr> <Leader>- '<Esc>zNgv'
|
|
||||||
inoremap <silent><expr> <Leader>- '<C-O>zN'
|
|
||||||
|
|
||||||
"reset all folds to the default fold level
|
"reset all folds to the default fold level
|
||||||
nnoremap <silent><expr> <Leader>0 'zX:echo "all folds have been reset"<CR>'
|
nnoremap <silent><expr> <Leader>0 'zX:echo "all folds have been reset"<CR>'
|
||||||
xnoremap <silent><expr> <Leader>0 '<Esc>zXgv'
|
|
||||||
inoremap <silent><expr> <Leader>0 '<C-O>zX'
|
|
||||||
|
|
||||||
"trigger vimfiler
|
"trigger vimfiler
|
||||||
nnoremap <silent><expr> <F1> ':VimFiler -split -simple -toggle -no-quit -direction=topleft -winwidth=45<CR>'
|
nnoremap <silent><expr> <F1> ':VimFiler -split -simple -toggle -no-quit -direction=topleft -winwidth=45<CR>'
|
||||||
|
@ -478,15 +472,17 @@
|
||||||
"emmet switch triggerkey from <Ctrl-Y>
|
"emmet switch triggerkey from <Ctrl-Y>
|
||||||
let g:user_emmet_leader_key='<C-m>'
|
let g:user_emmet_leader_key='<C-m>'
|
||||||
|
|
||||||
|
"neocomplcache close popup and save indent
|
||||||
"neocomplcache: scroll through completion list
|
inoremap <silent> <CR> <C-r>=<SID>neocompl_cr()<CR>
|
||||||
inoremap <expr><Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
|
function! s:neocompl_cr()
|
||||||
"neocomplcache: complete the common part of the string
|
return neocomplcache#smart_close_popup() . "\<CR>"
|
||||||
inoremap <expr><Leader><Tab> neocomplcache#complete_common_string()
|
endfunction
|
||||||
"neocomplcache: close popup and delete backward char
|
"neocomplcache tab completion
|
||||||
inoremap <expr><CR> pumvisible() ? neocomplcache#smart_close_popup() : "\<CR>"
|
inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"
|
||||||
"neocomplcache : undo completion
|
"neocomplcache : undo completion
|
||||||
inoremap <expr><Leader><Backspace> "<Backspace>" . neocomplcache#undo_completion()
|
inoremap <expr><Backspace> neocomplcache#smart_close_popup()."\<C-h>"
|
||||||
|
"neocomplcache undo completion
|
||||||
|
inoremap <expr><C-u> neocomplcache#undo_completion()
|
||||||
"}
|
"}
|
||||||
|
|
||||||
"FORMATTING:{
|
"FORMATTING:{
|
||||||
|
|
Loading…
Reference in a new issue