[OT(?)] Ubuntu 18 now defaults to 4-space tabs
We upgraded a server to 18.04 and now when I start typing a python file (seems to be triggered by the .py extension) the tabs default to 4 spaces. We have decades of code that use tab characters, and it has not been our intention to change that. I found a /usr/share/vim/vim80/indent/python.vim and tried moving it out of the way, but the behavior was still there. I know I can put a modeline in every file but I was hoping to do it for every user and for every file. Thanks! -- -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/0e0e9366-9654-3b3d-0637-6ecb7690f281%40tobiah.org.
Immovable comments
When I do a Shft-V selections and then use '>' to indent blocks, the comments don't come along; they prefer to hang out in the first column. This was not always the case, which leads me to believe that there is a setting that I can use to make comments behave just like any other text in this (and any other) regard. Thanks! Tobiah -- -- 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: Persistent undo and nfs mounts
On 11/21/2013 11:55 AM, Ben Fritz wrote: On Thursday, November 21, 2013 12:52:16 PM UTC-6, Toby Shepard wrote: I am editing files on a work server via an NFS mount from my local desktop. That way I can configure my local machine in any way I want, and still edit work files. Recently, I configured Vim to remember undo information after quitting. Now, from time to time, I happen to be logged into the work server, and want to quickly edit a file. I was concerned as to how that might confuse my local Vim the next time I edit that same file. If I start undoing after loading a file, it seems that Vim will expect the contents to be something other than what they are. Am I going to have a problem with this? Undo information is stored in a file. If you have not configured 'undodir' and just leave the default as storing the undo file in the same directory as the edited file, then your Vim on both machines will see the same undo information. You just need to be sure to configure both Vims to use that saved information and I think you'll be fine. I did put it somewhere in ~/.vim, as I was directed to do so in the first article I found when Googling this. However, the Vim on the work server is too old to support persistent undo altogether, and I'm not really in a position to upgrade it. Thanks, Tobiah -- -- 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.
Persistent undo and nfs mounts
I am editing files on a work server via an NFS mount from my local desktop. That way I can configure my local machine in any way I want, and still edit work files. Recently, I configured Vim to remember undo information after quitting. Now, from time to time, I happen to be logged into the work server, and want to quickly edit a file. I was concerned as to how that might confuse my local Vim the next time I edit that same file. If I start undoing after loading a file, it seems that Vim will expect the contents to be something other than what they are. Am I going to have a problem with this? Thanks! Tobiah -- -- 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.
Debugging with xdebug and vim
Everything is working ok, but when I set a breakpoint with :Bp, I get the green line, but then whether I press F2, F3, F4, or F5, my breakpoint is ignored. What am I doing wrong? Thanks, Toby -- 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 To unsubscribe, reply using "remove me" as the subject.
Odd tab behavior
I tried setting ts=2 for an html file. That worked fine, but I often use '<' and '>' to indent or dedent blocks of code. When I tried it under ts=2, the columns moved over eight spaces, achieved by adding four tabs! What's up with that? I just want one tab to be inserted, and for it to take up two spaces. Thanks, Tobiah -- 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