diff options
Diffstat (limited to 'plugin/perso.vim')
-rwxr-xr-x | plugin/perso.vim | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/plugin/perso.vim b/plugin/perso.vim index ccda728..8d7c9ff 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 : @@ -129,3 +137,32 @@ 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 + +map <C-l> :exec &conceallevel ? "set conceallevel=0" : "set conceallevel=2"<CR> + +" Start interactive EasyAlign in visual mode (e.g. vipga) +xmap ga <Plug>(EasyAlign) + +" Start interactive EasyAlign for a motion/text object (e.g. gaip) +nmap ga <Plug>(EasyAlign) |