Re: Hot to add a syntax-file for AppleScript to MacVim?
1. use `au! BufNewFile,BufRead *.applescript setf applescript`. .scpt is compiled applescript file extension. On Dec 19, 2011, at 12:51 AM, MacVlad wrote: Hello! I want to add a syntax file for AppleScript to MacVim. I have found one at http://www.vim.org/scripts/script.php?script_id=1736, that I copied in ~/.vim/syntax AND in /Applications/MacVim.app/ Contents/Resources/vim/runtime/syntax, but AppleScript doesn't appear under the menu Syntax in MacVim. After searching the group's discussions I have added the line au! BufNewFile,BufRead *.scpt setf applescript in my ~/.vimrc... but this doesn't help either. :-( Have I missed something? Or is another way to do this? Thanks! Kind regards, Vlad Ghitulescu -- You received this message from the vim_mac 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 from the vim_mac 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
Re: Hot to add a syntax-file for AppleScript to MacVim?
Hello, Zhao Cai! Thank you for your reply! That works - the applescript is now colored as it should, according to the file-extension .applescript - but the entry AppleScript still doesn't appear under the Syntax-menu. Any idea? Thanks again! Kind regards, Vlad Ghitulescu On 19 Dez., 06:55, Zhao Cai zhao...@gmx.com wrote: 1. use `au! BufNewFile,BufRead *.applescript setf applescript`. .scpt is compiled applescript file extension. On Dec 19, 2011, at 12:51 AM, MacVlad wrote: Hello! I want to add a syntax file for AppleScript to MacVim. I have found one athttp://www.vim.org/scripts/script.php?script_id=1736, that I copied in ~/.vim/syntax AND in /Applications/MacVim.app/ Contents/Resources/vim/runtime/syntax, but AppleScript doesn't appear under the menu Syntax in MacVim. After searching the group's discussions I have added the line au! BufNewFile,BufRead *.scpt setf applescript in my ~/.vimrc... but this doesn't help either. :-( Have I missed something? Or is another way to do this? Thanks! Kind regards, Vlad Ghitulescu -- You received this message from the vim_mac maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visithttp://www.vim.org/maillist.php -- You received this message from the vim_mac 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
Re: Hot to add a syntax-file for AppleScript to MacVim?
I never use the menu the select syntax… Mine does not show either. Does it matter? Cheers, Zhao Cai, Mon 19 Dec 2011 09:55:11 AM EST On Dec 19, 2011, at 5:29 AM, MacVlad wrote: Hello, Zhao Cai! Thank you for your reply! That works - the applescript is now colored as it should, according to the file-extension .applescript - but the entry AppleScript still doesn't appear under the Syntax-menu. Any idea? Thanks again! Kind regards, Vlad Ghitulescu On 19 Dez., 06:55, Zhao Cai zhao...@gmx.com wrote: 1. use `au! BufNewFile,BufRead *.applescript setf applescript`. .scpt is compiled applescript file extension. On Dec 19, 2011, at 12:51 AM, MacVlad wrote: Hello! I want to add a syntax file for AppleScript to MacVim. I have found one athttp://www.vim.org/scripts/script.php?script_id=1736, that I copied in ~/.vim/syntax AND in /Applications/MacVim.app/ Contents/Resources/vim/runtime/syntax, but AppleScript doesn't appear under the menu Syntax in MacVim. After searching the group's discussions I have added the line au! BufNewFile,BufRead *.scpt setf applescript in my ~/.vimrc... but this doesn't help either. :-( Have I missed something? Or is another way to do this? Thanks! Kind regards, Vlad Ghitulescu -- You received this message from the vim_mac maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visithttp://www.vim.org/maillist.php -- You received this message from the vim_mac 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 from the vim_mac 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
Re: visual navigation bar
On 19 Dec 2011, at 07:49, Xiao G. Wu wrote: What color scheme is that and how do you get the tab lines to show up like that? It’s not MacVim; rather, it’s the Sublime text editor. David P Henderson c: xxx.xxx. -- To announce that there must be no criticism of the president, or that we are to stand by the president, right or wrong, is not only unpatriotic and servile, but is morally treasonable to the American public. -- Theodore Roosevelt -- You received this message from the vim_mac 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
Re: Hot to add a syntax-file for AppleScript to MacVim?
:-) I have never used this another way around (implicitly, through the extension) - and on a PC it works via the menu. No, it doesn't, you're right - but I'm still wondering! ;-) Thanks again! Vlad On 19 Dez., 15:55, Zhao Cai zhao...@gmx.com wrote: I never use the menu the select syntax… Mine does not show either. Does it matter? Cheers, Zhao Cai, Mon 19 Dec 2011 09:55:11 AM EST On Dec 19, 2011, at 5:29 AM, MacVlad wrote: Hello, Zhao Cai! Thank you for your reply! That works - the applescript is now colored as it should, according to the file-extension .applescript - but the entry AppleScript still doesn't appear under the Syntax-menu. Any idea? Thanks again! Kind regards, Vlad Ghitulescu On 19 Dez., 06:55, Zhao Cai zhao...@gmx.com wrote: 1. use `au! BufNewFile,BufRead *.applescript setf applescript`. .scpt is compiled applescript file extension. On Dec 19, 2011, at 12:51 AM, MacVlad wrote: Hello! I want to add a syntax file for AppleScript to MacVim. I have found one athttp://www.vim.org/scripts/script.php?script_id=1736, that I copied in ~/.vim/syntax AND in /Applications/MacVim.app/ Contents/Resources/vim/runtime/syntax, but AppleScript doesn't appear under the menu Syntax in MacVim. After searching the group's discussions I have added the line au! BufNewFile,BufRead *.scpt setf applescript in my ~/.vimrc... but this doesn't help either. :-( Have I missed something? Or is another way to do this? Thanks! Kind regards, Vlad Ghitulescu -- You received this message from the vim_mac maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visithttp://www.vim.org/maillist.php -- You received this message from the vim_mac maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visithttp://www.vim.org/maillist.php -- You received this message from the vim_mac 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
Re: Hot to add a syntax-file for AppleScript to MacVim?
It is fast to `:set ft=???` instead of look for the menu. But if you really want to know, check the file `synmenu.vim` in system runtime path. On Dec 19, 2011, at 1:33 PM, MacVlad wrote: :-) I have never used this another way around (implicitly, through the extension) - and on a PC it works via the menu. No, it doesn't, you're right - but I'm still wondering! ;-) Thanks again! Vlad On 19 Dez., 15:55, Zhao Cai zhao...@gmx.com wrote: I never use the menu the select syntax… Mine does not show either. Does it matter? Cheers, Zhao Cai, Mon 19 Dec 2011 09:55:11 AM EST On Dec 19, 2011, at 5:29 AM, MacVlad wrote: Hello, Zhao Cai! Thank you for your reply! That works - the applescript is now colored as it should, according to the file-extension .applescript - but the entry AppleScript still doesn't appear under the Syntax-menu. Any idea? Thanks again! Kind regards, Vlad Ghitulescu On 19 Dez., 06:55, Zhao Cai zhao...@gmx.com wrote: 1. use `au! BufNewFile,BufRead *.applescript setf applescript`. .scpt is compiled applescript file extension. On Dec 19, 2011, at 12:51 AM, MacVlad wrote: Hello! I want to add a syntax file for AppleScript to MacVim. I have found one athttp://www.vim.org/scripts/script.php?script_id=1736, that I copied in ~/.vim/syntax AND in /Applications/MacVim.app/ Contents/Resources/vim/runtime/syntax, but AppleScript doesn't appear under the menu Syntax in MacVim. After searching the group's discussions I have added the line au! BufNewFile,BufRead *.scpt setf applescript in my ~/.vimrc... but this doesn't help either. :-( Have I missed something? Or is another way to do this? Thanks! Kind regards, Vlad Ghitulescu -- You received this message from the vim_mac maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visithttp://www.vim.org/maillist.php -- You received this message from the vim_mac maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visithttp://www.vim.org/maillist.php -- You received this message from the vim_mac 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 from the vim_mac 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
UTF-8 puzzle
I am using MacVim 7.3 under Lion. Now here is something that puzzles me with UTF8 files. I write a small text file in MacVim, saved it with utf-8 file encoding, opened it in TextEdit, and I get all these funny square-root characters instead of umlauts. And vice versa, I wrote simple text file in TextEdit, set the preferences of TextEdit such that it saves files always as UTF-8, saved the file, opened it in MacVim -- and I get all these funny 9c characters instead of umlauts. I also experimented a little with the extended attribute com.apple.TextEncoding, to no avail. Can anybody tell me, which is the correct way to write/save UTF-8 files? Best regards, Gabriel. -- You received this message from the vim_mac 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