Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
public:vimbashfactory [2012/10/25 15:46] – Nico | public:vimbashfactory [2022/08/04 15:31] (current) – fix indent Nico | ||
---|---|---|---|
Line 4: | Line 4: | ||
* Install it (:source path_to_vim_script) | * Install it (:source path_to_vim_script) | ||
* Create the following script in .vim/ | * Create the following script in .vim/ | ||
- | < | + | |
+ | < | ||
#!/bin/sh | #!/bin/sh | ||
Line 58: | Line 59: | ||
exit 0 | exit 0 | ||
</ | </ | ||
+ | |||
* Add the following line in .vimrc: | * Add the following line in .vimrc: | ||
- | < | + | |
+ | < | ||
au BufWritePost * if getline(1) =~ " | au BufWritePost * if getline(1) =~ " | ||
</ | </ |