Wednesday, July 6, 2011

Re : Advice to manipulate specific file

Actually I found a way to fold one line matching pattern. I removed most of my code and used the showhide.vim plugin.

Now my code is:

autocmd BufEnter *latest.md set scrollbind
autocmd BufEnter *latest.md execute ":HIDE en:.*"
autocmd BufEnter *latest.md vsplit
autocmd BufEnter *latest.md execute ":HIDE fr:.*"

Far better than the bunch of bad code I had written before.

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: