Add relevant plugins or mappings before or after plugins.
set nocompatible hidden laststatus=2
""""""""""""""""""""""""""""""""""
" PUT HERE YOUR MAPPINGS
""""""""""""""""""""""""""""""""""
# where's installed current version? | |
which nvim | |
# what's current version? | |
nvim -v | |
# make tmp folder | |
mkdir -p ~/tmp | |
cd ~/tmp |
# Example build script | |
git clone https://github.com/neovim/neovim.git | |
cd neovim | |
make install | |
mv build/bin/nvim /usr/local/bin/nvim05 | |
# put this in your .zshrc or .bashrc | |
alias v=/usr/local/bin/nvim05 | |
alias nvim=/usr/local/bin/nvim05 |
""""""""""""""""""""""""""""""""""" | |
" Share via paste.rs | |
" | |
" Visual select and :Share | |
" | |
" Add .extension to url to format code | |
" Example: .markdown | |
""""""""""""""""""""""""""""""""" | |
function! s:share() range |
##################### | |
# Directory shortcuts | |
##################### | |
# | |
# Navigate to favorite directories with fuzzy search | |
# Requires fzf | |
# | |
# `sc` mark current dir | |
# `s` go to mark | |
# `scr` remove mark |
98px | |
accordion | |
active | |
alert | |
alert-danger | |
alert-dark | |
alert-dismissible | |
alert-heading | |
alert-info | |
alert-light |
# build requisites | |
sudo apt-get install -y ninja-build gettext libtool libtool-bin autoconf automake cmake g++ pkg-config unzip | |
# download | |
cd ~ | |
git clone https://github.com/tjdevries/neovim.git -b tjdevries/keystrokes nvim2 | |
cd nvim2 | |
# Compile ( Install guide: https://github.com/neovim/neovim/wiki/Building-Neovim#building ) | |
make CMAKE_BUILD_TYPE=Release |
" This mapping combination with FZF feels great! | |
" See how this works: https://gfycat.com/wellgroomedofficialblueandgoldmackaw | |
" Buffers change with index and middle | |
nnoremap <C-j> :bn<CR> | |
nnoremap <C-k> :bp<CR> | |
" Index finger to filter lines in all buffers with jump to line | |
nnoremap <leader>j :Lines<CR> |
var fetch = require('node-fetch'); | |
async function activos(claveMunicipio) { | |
let response = await fetch('https://coronavirus.gob.mx/datos/Overview/info/getInfo.php', { | |
headers: { | |
accept: '*/*', | |
'accept-language': 'es,es-ES;q=0.9,en;q=0.8', | |
'cache-control': 'no-cache', | |
'content-type': 'multipart/form-data; boundary=----WebKitFormBoundaryWUKVwTBDWw1CIYBb', | |
pragma: 'no-cache', |
# jslive [yourfile.js] | |
# Test your javascript in a live reload environment | |
# Opens tmux with vim in the left, nodemon in the right | |
# Requires tmux and nodemon npm install -g nodemon | |
function jslive () { | |
# $# is args number | |
if [ $# -eq 0 ] && file=tmp.js || file=$1 | |
# Create file | |
touch $file | |
# split with tmux, left is vim, right is node |