On 10/24/12 21:02, analogsix wrote:
> I created a 'scratch notes file' of VIM commands on gvim on my home pc's Fedora desktop environment.
> When I port this file to my workplace's UNIX environment and launch the notes from VIM, my tab spacing is thrown off. For example, at home my text looks like this:
>
> command1 <- comment blah blah blah
> cmd2 <- comment blah blah blah
> comnd3 <- comment blah blah blah
>
> at work, I get a near similar output when I open the file through VIM. When I open through gvim, I get something like this:
>
> command1 <- comment blah blah blah
> cmd2 <- comment blah blah blah
> comnd3 <- comment blah blah blah
>
> Can you assist please?
Check the settings for your tab-stops on both ends:
:set ts? sts? et? sw?
One of either 'ts' or 'sts' settings is most likely the culprit, but
it's helpful to know the others too.
Just make sure that you have the same setting for both in your vimrc
and you should be good to go[*].
-tim
[*] there are some caveats if you only want this to apply to one
particular file name/type, in which case you can set it in an
autocmd that gets triggered upon opening the file.
:help BufRead
:help 'ts'
:help 'sts'
:help autocmd
--
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
Wednesday, October 24, 2012
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment