Skip to content

Instantly share code, notes, and snippets.

" FILE: altautocomplpop.vim
" AUTHOR: Shougo Matsushita <Shougo.Matsu@gmail.com>
" Last Modified: 18 Dec 2008
" Usage: Just source this file.
" LICENSE: No Warranties. Use at your own risk. Add stuff to taste.
" If you like this script type :help uganda<Enter>
" If you want to show appreciation to the author, please
" visit the UDAVUM KARANGAL website http://www.udavumkarangal.org/
" NOTES: Written to work with vim-7.0
@Shougo
Shougo / gist:38827
Created December 22, 2008 01:39 — forked from anonymous/gist:37858
neocomplcache.vim
"=============================================================================
" FILE: neocomplcache.vim
" AUTHOR: Shougo Matsushita <Shougo.Matsu@gmail.com>
" Last Modified: 13 Jan 2009
" Usage: Just source this file.
" License: MIT license {{{
" Permission is hereby granted, free of charge, to any person obtaining
" a copy of this software and associated documentation files (the
" "Software"), to deal in the Software without restriction, including
" without limitation the rights to use, copy, modify, merge, publish,
"---------------------------------------------------------------------------
" Shougo's .vimrc
"---------------------------------------------------------------------------
" Initialize:"{{{
"
if has('win32') || has('win64')
" For Windows.
language en
else
" For Linux.
" Set tabline.
function! s:my_tabline() "{{{
let l:s = ''
for l:i in range(1, tabpagenr('$'))
let l:bufnrs = tabpagebuflist(i)
let l:curbufnr = l:bufnrs[tabpagewinnr(l:i) - 1] " first window, first appears
let l:no = (l:i <= 10 ? l:i-1 : '#') " display 0-origin tabpagenr.
let l:mod = len(filter(l:bufnrs, 'getbufvar(v:val, "&modified")')) ? '!' : ' '
" quickrun - run a command and show its result quickly
" Author: ujihisa <http://ujihisa.nowa.jp/>
" ModifiedBy: kana <http://whileimautomaton.net/>
" ModifiedBy: Sixeight <http://d.hatena.ne.jp/Sixeight/>
if exists('g:loaded_quickrun')
finish
endif
# for Mac.
TARGET=autoload/proc.so
SRC=autoload/proc.c
CFLAGS=-W -Wall -Wno-unused -ansi -pedantic -bundle -fPIC
LDFLAGS+=-lutil
all: $(TARGET)
$(TARGET): $(SRC) autoload/vimstack.c
" vimrcbox.vim
" Author: Sora harakami <sora134@gmail.com>
" Modified by: thinca <thinca@gmail.com> thanks!
" Modified by: Shougo <Shougo.Matsu@gmail.com> thanks!
" Require: curl
" Licence: MIT Licence
if exists('g:loaded_vimrcbox')
finish
endif
" Plugin: perl-completion.vim
" Author: Cornelius
" Email: cornelius.howl@gmail.com
" Version: 1.3
" Options:
" complete builtin functions by default
@Shougo
Shougo / getposlist.vim
Created December 18, 2009 06:40
getposlist.vim
"=============================================================================
" FILE: getposlist.vim
" AUTHOR: Shougo Matsushita <Shougo.Matsu@gmail.com>
" Last Modified: 18 Dec 2009
" Usage: Just source this file.
" License: MIT license {{{
" Permission is hereby granted, free of charge, to any person obtaining
" a copy of this software and associated documentation files (the
" "Software"), to deal in the Software without restriction, including
" without limitation the rights to use, copy, modify, merge, publish,
function! s:ParseMarkdown()
let l:lines = getline(1,line("$"))
let l:pages_lines = []
let s:pages = []
echo "Parsing..."
for l:line in l:lines
if l:line =~ '^#\+'
if !empty(l:pages_lines)
call add(s:pages, join(l:pages_lines, "\r\n"))