summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorache <ache@ache.one>2018-11-11 00:29:30 +0100
committerache <ache@ache.one>2018-11-11 00:29:30 +0100
commit87f817d6805109b03a96c33e8e76b8fbf45fae23 (patch)
tree11a1151984822d067b3457b319ef2a5af2fb2db8
parentAdd plugins (diff)
Configure new plugins
-rwxr-xr-xplugin/perso.vim28
1 files changed, 28 insertions, 0 deletions
diff --git a/plugin/perso.vim b/plugin/perso.vim
index 9af12b0..2b3959d 100755
--- a/plugin/perso.vim
+++ b/plugin/perso.vim
@@ -9,6 +9,14 @@ set t_Co=256
"map <leader>k <C-W>k
"map <leader>h <C-W>h
"map <leader>l <C-W>l
+
+imap <C-N> <C-P>
+
+
+imap <C-P> <C-N>
+
+
+
filetype plugin indent on
" Color :
@@ -126,3 +134,23 @@ set incsearch
au BufNewFile *.c 0r ~/.vim/template/skel.c
+let g:deoplete#enable_at_startup = 1
+" Plugin key-mappings.
+" Note: It must be "imap" and "smap". It uses <Plug> mappings.
+imap <C-k> <Plug>(neosnippet_expand_or_jump)
+smap <C-k> <Plug>(neosnippet_expand_or_jump)
+xmap <C-k> <Plug>(neosnippet_expand_target)
+
+" SuperTab like snippets behavior.
+" Note: It must be "imap" and "smap". It uses <Plug> mappings.
+"imap <expr><TAB>
+" \ pumvisible() ? "\<C-n>" :
+" \ neosnippet#expandable_or_jumpable() ?
+" \ "\<Plug>(neosnippet_expand_or_jump)" : "\<TAB>"
+smap <expr><TAB> neosnippet#expandable_or_jumpable() ?
+\ "\<Plug>(neosnippet_expand_or_jump)" : "\<TAB>"
+
+" For conceal markers.
+if has('conceal')
+ set conceallevel=2 concealcursor=niv
+endif