Tuesday, June 24, 2014

Re: Set VIM winpos based on file type

On Tuesday, June 24, 2014 2:37:14 PM UTC-4, David Fishburn wrote:
> You can do it with autocmd (untested):
>
> augroup reposition_for_c_files
>     autocmd! BufEnter *.c exec 'winpos 0 0'<CR>
>     autocmd! BufEnter *.h exec 'winpos 200 200'<CR>
>
> augroup END
>
> Then to remove it and try it again:
> :augroup! reposition_for_c_files
>

That works great! I had to remove the "<CR>" characters from the end of the lines though.

Thanks!

James
James

--
--
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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: