Skip to content

Instantly share code, notes, and snippets.


Felipe Morales fmoralesc

  • Leuven, Belgium
View GitHub Profile
View -
# Reconstructed via infocmp from file: /usr/share/terminfo/t/tmux-256color
tmux-256color|tmux with 256 colors,
am, hs, km, mir, msgr, xenl,
colors#256, cols#80, it#8, lines#24, pairs#32767,
bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l,
clear=\E[H\E[J, cnorm=\E[34h\E[?25h, cr=^M,
csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\EM,
View gist:432ef7d6ccc05fca35be
times in msec
clock self+sourced self: sourced script
clock elapsed: other lines
000.020 000.020: --- NVIM STARTING ---
000.319 000.299: locale set
000.921 000.602: inits 1
000.938 000.016: window checked
View gist:bd8affad2e47e925b72f
times in msec
clock self+sourced self: sourced script
clock elapsed: other lines
000.013 000.013: --- NVIM STARTING ---
000.266 000.254: locale set
000.850 000.584: inits 1
000.867 000.017: window checked
fmoralesc / init.vim
Created Feb 21, 2016
View init.vim
" vim: set fdm=marker :
" Base {{{1
if !exists('$TMUX')
set shell=fish
View plugvimrc
" Base {{{1
if has("nvim")
if !exists('$TMUX')
set shell=fish
View neovim-files.txt
fmoralesc /
Last active Aug 29, 2015
Custom launcher for neovim in the gnome-terminal.

Custom launcher for neovim in the gnome-terminal.


  • Copy nvim-wrapper somewhere in your $PATH
  • Copy neovim.desktop to ~/.local/share/applications (for the current user) or /usr/share/applications (for a global install)
  • Modify the neovim.desktop file to point Icon= and Exec= to the proper paths where the neovim icon and the neovim-wrapper script are
  • Profit!
View gdb stack
> neovim git:(fix-resize) gdb ./build/bin/nvim
GNU gdb (GDB) 7.9.1
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
View vim-clip.vala
using Gtk;
using Gdk;
using Posix;
enum OperationMode {
enum SelectionKind {
View indentuntil.vim
function! g:IndentUntil()
let c = getchar()
let indent = stridx(getline(line('.')-1), nr2char(c))
if indent > 0
let c_indent = indent-indent('.')
if c_indent > 0
exe "normal 0i\<space>\<esc>".(c_indent-1)."."
let dedent = abs(c_indent)
exe 'substitute/^\s\{'.dedent.'}//'