summaryrefslogtreecommitdiff
path: root/.old/neosnippets.vim
diff options
context:
space:
mode:
authorChris <[email protected]>2020-04-02 14:41:26 -0400
committerChris <[email protected]>2020-04-02 14:41:26 -0400
commitc24b07132d2dbe827d29f395a15370e24c6c5235 (patch)
treeedc44b81c3b36ff9fe1bd2dbdc25bc43f8262f1c /.old/neosnippets.vim
parent2df64a787b1cd437c7045a0ab748976776611238 (diff)
auto push
Diffstat (limited to '.old/neosnippets.vim')
-rw-r--r--.old/neosnippets.vim22
1 files changed, 22 insertions, 0 deletions
diff --git a/.old/neosnippets.vim b/.old/neosnippets.vim
new file mode 100644
index 00000000..bbb5fc2a
--- /dev/null
+++ b/.old/neosnippets.vim
@@ -0,0 +1,22 @@
+" Plugin key-mappings.
+" Note: It must be "imap" and "smap". It uses <Plug> mappings.
+imap <C-l> <Plug>(neosnippet_expand_or_jump)
+smap <C-l> <Plug>(neosnippet_expand_or_jump)
+xmap <C-l> <Plug>(neosnippet_expand_target)
+
+imap <F4> <Plug>(neosnippet_expand_or_jump)
+smap <F4> <Plug>(neosnippet_expand_or_jump)
+xmap <F4> <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