From 810b4afe61441925105ab9d59eaa792bffbb5396 Mon Sep 17 00:00:00 2001 From: crazymaster Date: Tue, 23 Apr 2013 23:28:11 +0900 Subject: [PATCH 1/2] Fixed doc. --- doc/neosnippet.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/neosnippet.txt b/doc/neosnippet.txt index def0c14..ded72f5 100755 --- a/doc/neosnippet.txt +++ b/doc/neosnippet.txt @@ -757,7 +757,7 @@ https://github.com/Shougo/neosnippet/issues/86 A: Please try the setting below. It defines the snipMate function. > - let g:neosnippet#enable_snipmate_compatibility = 2 + let g:neosnippet#enable_snipmate_compatibility = 1 < Q: Cannot jump over placeholder https://github.com/Shougo/neosnippet/issues/120 From b5312fb06857c2b3dbb80528bab12f8de9eaea77 Mon Sep 17 00:00:00 2001 From: crazymaster Date: Tue, 23 Apr 2013 23:42:24 +0900 Subject: [PATCH 2/2] Updated doc. --- README.md | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 87e20a5..7df0417 100644 --- a/README.md +++ b/README.md @@ -33,9 +33,9 @@ required files into your `.vim` folder. 1. Setup the [vundle](https://github.com/gmarik/vundle) package manager 2. Set the bundles for [Neocomplcache](https://github.com/Shougo/neocomplcache) and [Neosnippet](https://github.com/Shougo/neosnippet) - ``` - Bundle 'Shougo/neocomplcache.git' - Bundle 'Shougo/neosnippet.git' + ```vim + Bundle 'Shougo/neocomplcache' + Bundle 'Shougo/neosnippet' ``` 3. Open up Vim and start installation with `:BundleInstall` @@ -45,9 +45,9 @@ required files into your `.vim` folder. 1. Setup the [neobundle](https://github.com/Shougo/neobundle.vim) package manager 2. Set the bundles for [Neocomplcache](https://github.com/Shougo/neocomplcache) and [Neosnippet](https://github.com/Shougo/neosnippet) - ``` - NeoBundle 'Shougo/neocomplcache.git' - NeoBundle 'Shougo/neosnippet.git' + ```vim + NeoBundle 'Shougo/neocomplcache' + NeoBundle 'Shougo/neosnippet' ``` 3. Open up Vim and start installation with `:NeoBundleInstall` @@ -80,16 +80,20 @@ can use the following keys: " Plugin key-mappings. imap (neosnippet_expand_or_jump) smap (neosnippet_expand_or_jump) +xmap (neosnippet_expand_target) " SuperTab like snippets behavior. -imap neosnippet#expandable_or_jumpable() ? "\(neosnippet_expand_or_jump)" : pumvisible() ? "\" : "\" -smap neosnippet#expandable_or_jumpable() ? "\(neosnippet_expand_or_jump)" : "\" +imap neosnippet#expandable_or_jumpable() ? +\ "\(neosnippet_expand_or_jump)" +\: pumvisible() ? "\" : "\" +smap neosnippet#expandable_or_jumpable() ? +\ "\(neosnippet_expand_or_jump)" +\: "\" " For snippet_complete marker. if has('conceal') set conceallevel=2 concealcursor=i endif - ``` If you want to use a different collection of snippets than the @@ -98,6 +102,9 @@ the `g:neosnippet#snippets_directory` variable (e.g [Honza's Snippets](https://github.com/honza/vim-snippets)) ```vim +" Enable snipMate compatibility feature. +let g:neosnippet#enable_snipmate_compatibility = 1 + " Tell Neosnippet about the other snippets let g:neosnippet#snippets_directory='~/.vim/bundle/vim-snippets/snippets' ```