Re: Remembering syntax when moving in and out of buffers

2011-09-27 Thread Spiros Bousbouras
On Sep 25, 5:48 pm, Tony Mechelynck antoine.mechely...@gmail.com wrote: On 25/09/11 17:35, Spiros Bousbouras wrote: On Sep 21, 7:38 pm, Benjamin R. Haskellv...@benizi.com wrote: On Wed, 21 Sep 2011, Spiros Bousbouras wrote: On Sep 18, 11:14 pm, Benjamin R. Haskell wrote: I wasn't trying

Re: Remembering syntax when moving in and out of buffers

2011-09-27 Thread Spiros Bousbouras
On Sep 25, 6:09 pm, Tony Mechelynck antoine.mechely...@gmail.com wrote: On 25/09/11 18:48, Tony Mechelynck wrote: On 25/09/11 17:35, Spiros Bousbouras wrote: I also don't like how the functionality for one type of file is split among several directories which will in general also contain

Re: Remembering syntax when moving in and out of buffers

2011-09-27 Thread Spiros Bousbouras
On Sep 25, 8:42 pm, Benjamin R. Haskell v...@benizi.com wrote: On Sun, 25 Sep 2011, Spiros Bousbouras wrote: On Sep 21, 7:38 pm, Benjamin R. Haskell wrote: On Wed, 21 Sep 2011, Spiros Bousbouras wrote: On Sep 18, 11:14 pm, Benjamin R. Haskell wrote: 2. If you disable filetype- and

Re: Remembering syntax when moving in and out of buffers

2011-09-25 Thread Spiros Bousbouras
On Sep 21, 7:38 pm, Benjamin R. Haskell v...@benizi.com wrote: On Wed, 21 Sep 2011, Spiros Bousbouras wrote: On Sep 18, 11:14 pm, Benjamin R. Haskell wrote: Actually I have disabled running the Debian specific stuff in /etc/vim/vimrc so the explanation even for what I describe in my

Re: Remembering syntax when moving in and out of buffers

2011-09-25 Thread Tony Mechelynck
On 25/09/11 17:35, Spiros Bousbouras wrote: On Sep 21, 7:38 pm, Benjamin R. Haskellv...@benizi.com wrote: On Wed, 21 Sep 2011, Spiros Bousbouras wrote: On Sep 18, 11:14 pm, Benjamin R. Haskell wrote: Actually I have disabled running the Debian specific stuff in /etc/vim/vimrc so the

Re: Remembering syntax when moving in and out of buffers

2011-09-25 Thread Ben Fritz
On Sep 25, 2:42 pm, Benjamin R. Haskell v...@benizi.com wrote: What does using option filetype buy you when you do use the normal filetype detection mechanism ? One advantage I can see is that it makes it easier to use plugins by other people. But if you're using a file type of your own

Re: Remembering syntax when moving in and out of buffers

2011-09-21 Thread Spiros Bousbouras
On Sep 18, 11:14 pm, Benjamin R. Haskell v...@benizi.com wrote: On Sun, 18 Sep 2011, Spiros Bousbouras wrote: On Sep 18, 5:45 pm, Benjamin R. Haskell wrote: On Sun, 18 Sep 2011, Spiros Bousbouras wrote: The problem is that the filetype is being detected again every time you switch

Re: Remembering syntax when moving in and out of buffers

2011-09-21 Thread Benjamin R. Haskell
On Wed, 21 Sep 2011, Spiros Bousbouras wrote: On Sep 18, 11:14 pm, Benjamin R. Haskell wrote: On Sun, 18 Sep 2011, Spiros Bousbouras wrote: On Sep 18, 5:45 pm, Benjamin R. Haskell wrote: On Sun, 18 Sep 2011, Spiros Bousbouras wrote: The problem is that the filetype is being detected again

Re: Remembering syntax when moving in and out of buffers

2011-09-19 Thread Tony Mechelynck
On 19/09/11 01:35, Benjamin R. Haskell wrote: On Mon, 19 Sep 2011, Tony Mechelynck wrote: On 19/09/11 00:14, Benjamin R. Haskell wrote: = What [the OP was] doing: = 1. in your .vimrc (1 line): autocmd BufReadPost,BufNewFile *.myfile source ~/myfile.vim 2. in ~/myfile.vim (6 lines of code):

Re: Remembering syntax when moving in and out of buffers

2011-09-18 Thread Spiros Bousbouras
On Sep 17, 10:25 pm, Benjamin R. Haskell v...@benizi.com wrote: On Sat, 17 Sep 2011, Spiros Bousbouras wrote: If you define a syntax for a buffer , move away and then return is the syntax remembered or do all the syntax commands have to be executed again? Some tests I did indicate it's the

Re: Remembering syntax when moving in and out of buffers

2011-09-18 Thread Benjamin R. Haskell
On Sun, 18 Sep 2011, Spiros Bousbouras wrote: On Sep 17, 10:25 pm, Benjamin R. Haskell wrote: On Sat, 17 Sep 2011, Spiros Bousbouras wrote: If you define a syntax for a buffer , move away and then return is the syntax remembered or do all the syntax commands have to be executed again? Some

Re: Remembering syntax when moving in and out of buffers

2011-09-18 Thread Spiros Bousbouras
On Sep 18, 5:45 pm, Benjamin R. Haskell v...@benizi.com wrote: On Sun, 18 Sep 2011, Spiros Bousbouras wrote: The problem is that the filetype is being detected again every time you switch buffers. Apparently Debian (like most distros) has a bunch of auto-detection on filetypes. With your:

Re: Remembering syntax when moving in and out of buffers

2011-09-18 Thread Benjamin R. Haskell
On Sun, 18 Sep 2011, Spiros Bousbouras wrote: On Sep 18, 5:45 pm, Benjamin R. Haskell wrote: On Sun, 18 Sep 2011, Spiros Bousbouras wrote: The problem is that the filetype is being detected again every time you switch buffers. Apparently Debian (like most distros) has a bunch of

Re: Remembering syntax when moving in and out of buffers

2011-09-18 Thread Tony Mechelynck
On 19/09/11 00:14, Benjamin R. Haskell wrote: On Sun, 18 Sep 2011, Spiros Bousbouras wrote: On Sep 18, 5:45 pm, Benjamin R. Haskell wrote: On Sun, 18 Sep 2011, Spiros Bousbouras wrote: The problem is that the filetype is being detected again every time you switch buffers. Apparently Debian

Re: Remembering syntax when moving in and out of buffers

2011-09-18 Thread Benjamin R. Haskell
On Mon, 19 Sep 2011, Tony Mechelynck wrote: On 19/09/11 00:14, Benjamin R. Haskell wrote: = What [the OP was] doing: = 1. in your .vimrc (1 line): autocmd BufReadPost,BufNewFile *.myfile source ~/myfile.vim 2. in ~/myfile.vim (6 lines of code): if exists(b:myfile) finish endif let

Remembering syntax when moving in and out of buffers

2011-09-17 Thread Spiros Bousbouras
If you define a syntax for a buffer , move away and then return is the syntax remembered or do all the syntax commands have to be executed again? Some tests I did indicate it's the latter. Specifically (with simplifications) my .vimrc (on Linux) has autocmd BufReadPost,BufNewFile *.myfile

Re: Remembering syntax when moving in and out of buffers

2011-09-17 Thread Benjamin R. Haskell
On Sat, 17 Sep 2011, Spiros Bousbouras wrote: If you define a syntax for a buffer , move away and then return is the syntax remembered or do all the syntax commands have to be executed again? Some tests I did indicate it's the latter. It should be the former. Specifically (with