Skip to content

Instantly share code, notes, and snippets.

rleger / .vimrc
Last active Feb 8, 2016
My Vim configuration
View .vimrc
syntax enable
filetype off " required
filetype plugin on
set nocompatible " be iMproved, required
so ~/.vim/plugins.vim " Plugins
set wildmode=list:longest,full " Show file suggestions on tab press
set wildmenu " e.g. :e file<tab>
rleger / .vimrc
Last active Mar 29, 2016
Vim Sort Php Use
View .vimrc
// Sort PHP use imports by length
// You don't have to select the use imports, hitting <leader>su anywhere in your file
// will sort the imports and put your cursor back where you left off.
// Replace ^M by hitting <C-v><C-m> in insert mode
function! SortPhpUseByLength()
exec 'normal mrgg/^use\s^Mma/^class\s^M/^use\s^MNmb:nohlsearch^M:''a,''b! awk ''{ print length(), $0 | "sort -n | cut -d\\ -f2-" }''^M''r'
nmap <leader>su :call SortPhpUseByLength()<cr>
rleger / .vimrc
Last active Jul 15, 2017
Vimrc configuration for FZF
View .vimrc
" Vimrc configuration for FZF
" Key bindings
" Override C-P to include preview window
nnoremap <C-p> :call fzf#vim#gitfiles('', fzf#vim#with_preview('right:60%'))<CR>
" Current buffer tags
nnoremap <C-r> :BTags<cr>
" Most recent files
rleger /
Last active Dec 12, 2017
Foreflight improvements

Realistic suggestions to make Foreflight even better


  • Let users customize the bottom toolbar. I myself never use Flights and Imagery, but I have to hunt down checklists...
  • VFR entry and exit points are not on the DB, this would be a great feature. There is currently no way to go directely to "N" waypoint when going into Lyon (LFLY) for instance. There is a Jeppesen geolocalized chart that shows the waypoints but for some reason it's not possible to overlay it on the map (GP does it :) ).


rleger / tailwind-colors.tex
Created Jul 31, 2018
Latex definitions of Tailwind css colors
View tailwind-colors.tex
% TailwindCSS colors