Re: Advanced vimrc? question
2013. szeptember 10., kedd 14:35:09 UTC+2 időpontban David Fishburn a következőt írta: ...In my case, I didn't like the indent settings for PHP and XML, so I created: after/indent/php.vim after/indent/xml.vim Oops, I meant: after/ftplugin/php.vim after/ftplugin/xml.vim Hi guys, Thanks for the info. I should have been more patient googling about.. :-) You were very nice. -- -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: Advanced vimrc? question
On 11/09/13 21:55, Gabor Urban wrote: 2013. szeptember 10., kedd 14:35:09 UTC+2 időpontban David Fishburn a következőt írta: ...In my case, I didn't like the indent settings for PHP and XML, so I created: after/indent/php.vim after/indent/xml.vim Oops, I meant: after/ftplugin/php.vim after/ftplugin/xml.vim Hi guys, Thanks for the info. I should have been more patient googling about.. :-) You were very nice. Don't use Google to get help about Vim. Use the built-in help system instead. AFAIK Vim is the _only_ piece of software which comes with a decent help system. It even has help about how to use help, in :help help.txt (or F1) :help helphelp.txt Best regards, Tony. -- I learned to play guitar just to get the girls, and anyone who says they didn't is just lyin'! -- Willie Nelson -- -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Advanced vimrc? question
Hi I have a problem which is not a top priority issue, but quite annoying for me. I use different indention depth with different types of sources. It is rather time consuming to set it manually. Is there a possibility to defined these values to file extensions? Thanks for any ideas, Gabor -- Urbán Gábor Linux is like a wigwam: no Gates, no Windows and an Apache inside. -- -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: Advanced vimrc? question
... I use different indention depth with different types of sources. It is rather time consuming to set it manually. Is there a possibility to defined these values to file extensions? Have you tried autocmds? eg autocmd FileType python setlocal shiftwidth=4 autocmd FileType ruby setlocal shiftwidth=2 It's probably cleaner to add a vim file in your indent directory (python.vim, ruby.vim, etc.) and let filetype detection load it automatically. That would imply you are re-writing the indent scripts. This is typically where you would use the _after_ directories. For windows: vimfiles\after Linux: .vim/after In my case, I didn't like the indent settings for PHP and XML, so I created: after/indent/php.vim after/indent/xml.vim These both had 1 line in them: setlocal shiftwidth=2 That way, each time you set the filetype, after everything runs as usual, the after directory fires and allows me to automatically change the shiftwidth (for xml above) to 2, from whatever it was. HTH, David -- -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: Advanced vimrc? question
...In my case, I didn't like the indent settings for PHP and XML, so I created: after/indent/php.vim after/indent/xml.vim Oops, I meant: after/ftplugin/php.vim after/ftplugin/xml.vim -- -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
RE: Advanced vimrc? question
Gabor Urban wrote: I use different indention depth with different types of sources. It is rather time consuming to set it manually. Is there a possibility to defined these values to file extensions? See Different settings for different file types: http://vim.wikia.com/wiki/Indenting_source_code John -- -- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.