Which file control the action of indent?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Which file control the action of indent?

Length Power
sudo find /  -name  'python.vim'

/usr/local/share/vim/vim80/ftplugin/python.vim
/usr/local/share/vim/vim80/syntax/python.vim
/usr/local/share/vim/vim80/indent/python.vim
/home/username/vim/runtime/ftplugin/python.vim
/home/username/vim/runtime/syntax/python.vim
/home/username/vim/runtime/indent/python.vim

I want to change the indent in python file,there are two python.vim about indent.

/usr/local/share/vim/vim80/indent/python.vim
/home/username/vim/runtime/indent/python.vim

Which file will be changed when to customize indent action?

--
--
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Which file control the action of indent?

Shawn H Corey
On Sat, 22 Jul 2017 18:09:32 -0700 (PDT)
Length Power <[hidden email]> wrote:

> Which file will be changed when to customize indent action?

Add a file `~/.vim/after/ftplugin/python.vim` and make your changes
there.The `after/` directory means it will be run after the regular
`python.vim` And this will protect your changes from any updates to the
regular file.


--
Don't stop where the ink does.

        Shawn H Corey

--
--
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Which file control the action of indent?

Ben Fritz
On Saturday, July 22, 2017 at 8:54:36 PM UTC-5, Shawn H Corey wrote:

> On Sat, 22 Jul 2017 18:09:32 -0700 (PDT)
> Length Power <[hidden email]> wrote:
>
> > Which file will be changed when to customize indent action?
>
> Add a file `~/.vim/after/ftplugin/python.vim` and make your changes
> there.The `after/` directory means it will be run after the regular
> `python.vim` And this will protect your changes from any updates to the
> regular file.
>
>
Wouldn't you want it in an "indent" directory instead of an "ftplugin" directory?

--
--
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.
Loading...