diff options
| author | nsfisis <nsfisis@gmail.com> | 2021-11-27 22:36:31 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2021-11-27 22:38:54 +0900 |
| commit | 74b4e5aac83250759a6246216c2c361bab653a5b (patch) | |
| tree | efacb5bd25b228935f757587df9ef8ed07477c0a /.config/nvim/after/ftplugin/php.vim | |
| parent | 4a5ce361a1f435ae6e9b7cacb1e70a9da1bb80e2 (diff) | |
| download | dotfiles-74b4e5aac83250759a6246216c2c361bab653a5b.tar.gz dotfiles-74b4e5aac83250759a6246216c2c361bab653a5b.tar.zst dotfiles-74b4e5aac83250759a6246216c2c361bab653a5b.zip | |
neovim: move my plugin directories
Diffstat (limited to '.config/nvim/after/ftplugin/php.vim')
| -rw-r--r-- | .config/nvim/after/ftplugin/php.vim | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/.config/nvim/after/ftplugin/php.vim b/.config/nvim/after/ftplugin/php.vim new file mode 100644 index 0000000..ec7fd3e --- /dev/null +++ b/.config/nvim/after/ftplugin/php.vim @@ -0,0 +1,30 @@ +scriptencoding utf-8 + + +if exists('b:did_ftplugin_php_after') + finish +endif + + + +FtpluginSetLocal expandtab +FtpluginSetLocal shiftwidth=2 +FtpluginSetLocal softtabstop=2 + + + +" If a buffer is empty, insert `<?php` tag and 2 blank lines, and position the +" cursor at the end of the buffer (line 3, column 0). +" +" Example: +" <?php +" +" [cursor] +if line('$') ==# 1 && empty(getline(1)) + call setline(1, ['<?php', '', '']) + call cursor(3, 0) +endif + + + +let b:did_ftplugin_php_after = 1 |
