Add the following to your .vimrc
:
function s:PHPConvertArrays() abort
let l:winview = winsaveview()
while search('\m\(\w\)\@<!\carray\s*(') > 0
call execute("normal! dt(%r]\<C-O>r[")
endwhile
This snippet will check every time you run Vim whether it updated all your Plug
packages for you. It will do this once a week automatically for you.
Add the following to your .vimrc
:
function! OnVimEnter() abort
" Run PlugUpdate every week automatically when entering Vim.
if exists('g:plug_home')
let l:filename = printf('%s/.vim_plug_update', g:plug_home)
if !filereadable(l:filename)
#!/usr/bin/env bash | |
# | |
# Thanks to: | |
# https://stackoverflow.com/questions/32361132/screen-sharing-between-raspberry-pi-and-mac-osx#32361133 | |
# | |
# The NVC server will be available by default on: <raspberry ip>:5900. | |
# Connect from your Mac by opening Screen Sharing and then enter the Raspberry's ip. | |
# Install x11vnc. | |
sudo apt-get install x11vnc |
#!/usr/bin/env bash | |
# | |
# Convert all your "px" values to "rem" values. Supported filetypes can | |
# literally be anything, but just use extensions like: | |
# - file.css.less | |
# - file.less | |
# - file.css | |
# - file.scss | |
# - file.sass | |
# |