|
From: | kamaraju kusumanchi |
Subject: | Re: Text editing question |
Date: | Thu, 23 Feb 2006 08:56:24 -0500 |
User-agent: | Debian Thunderbird 1.0.7 (X11/20051017) |
Stefan van der Walt wrote:
On Wed, Feb 22, 2006 at 07:35:43PM -0500, kamaraju kusumanchi wrote:Hmmm, It works fine here. I am using Debian Sid vim 6.4.7. What is your OS and vim version?This doesn't work for me. Selecting the text with `v' or with the mouse, and hitting `=' does nothing.Doesn't work for me either, using VIM - Vi IMproved 6.3 (2004 June 7, compiled Aug 22 2005 17:23:42). And in ~/.vimrc: set shiftwidth=2set tabstop=4 set expandtabTo get the tabs working, I use Søren's octave.vim: http://www.vim.org/scripts/script.php?script_id=1241 As an aside, for syntax highlighting, see: http://www.octave.org/octave-lists/archive/octave-sources.1998/msg00011.html (I personally use emacs, but I tried it out and it works, after adding "syntax on" to ~/.vimrc). Regards Stéfan
By default .m files are recognized as matlab files.I think (in both the above cases) the necessary indentation files are not sourced properly. Let's try another method.
open the file by using -u NONE option $gvim -u NONE temp/test2.m Then paste your unindented code Then source the appropriate matlab indentation files On Debian this file is called as /usr/share/vim/vim64/indent/matlab.vim So I will be doing :so /usr/share/vim/vim64/indent/matlab.vim Then select all the lines with V or v or mouse etc., and then press = Let me know if this works. raju -- Kamaraju S Kusumanchi http://www.people.cornell.edu/pages/kk288/ http://malayamaarutham.blogspot.com/ ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------
[Prev in Thread] | Current Thread | [Next in Thread] |