Viml plugins: Difference between revisions

From wikinotes
 
No edit summary
 
Line 1: Line 1:
= Tutorials =
<blockquote>
{| class="wikitable"
|-
| viml plugins || http://stevelosh.com/blog/2011/09/writing-vim-plugins/
|-
| python plugins || http://www.terminally-incoherent.com/blog/2013/05/06/vriting-vim-plugins-in-python/
|-
|}
</blockquote><!-- Tutorials -->


= Writing Plugins =
= Writing Plugins =
Line 20: Line 30:
$MYVIMRC                                        " location of loaded vimrc
$MYVIMRC                                        " location of loaded vimrc
join(split($MYVIMRC, '/')[:-2],  '/').'/.vim')  " user's ~/.vim
join(split($MYVIMRC, '/')[:-2],  '/').'/.vim')  " user's ~/.vim
if &rtp =~ 'vim-airline,'                      " if vundle-plugin enabled  
if &rtp =~ 'vim-airline,'                      " if vundle-plugin enabled
 
</syntaxhighlight>
</syntaxhighlight>
</blockquote><!-- config locations -->
</blockquote><!-- config locations -->
= References =
<blockquote>
{| class="wikinotes"
|-
| http://stevelosh.com/blog/2011/09/writing-vim-plugins/ || || writing vim plugins
|-
| http://www.terminally-incoherent.com/blog/2013/05/06/vriting-vim-plugins-in-python/ || || writing vim plugins in python
|}
</blockquote>

Latest revision as of 16:13, 7 January 2023

Tutorials

viml plugins http://stevelosh.com/blog/2011/09/writing-vim-plugins/
python plugins http://www.terminally-incoherent.com/blog/2013/05/06/vriting-vim-plugins-in-python/

Writing Plugins

viml projects
vim helpfile syntax
vim plugin python

Config Locations

$VIMRUNTIME                                     " location of vim's root config  (that installed by the system)
$MYVIMRC                                        " location of loaded vimrc
join(split($MYVIMRC, '/')[:-2],  '/').'/.vim')  " user's ~/.vim
if &rtp =~ 'vim-airline,'                       " if vundle-plugin enabled