LoginSignup
1
1

More than 5 years have passed since last update.

neosnippetで次のmarkerにjumpする

Posted at

以下の様な複数のmarkerがあるsnippetを登録しているとする。

python.snippet
snippet from
        from ${1:module} import ${2:name}

${1:module}を入力したあとに、${2:name}へ移動したいときは、

.vimrc
imap <expr><C-l>
\ neosnippet#expandable() <Bar><Bar> neosnippet#jumpable() ?
\ "\<Plug>(neosnippet_expand_or_jump)" : "\<C-n>"

としておくと、insertモード中にCtrl + l${2:name}へjumpできる。

参考

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1