This commit is contained in:
Kenneth Reitz
2010-11-07 15:00:38 -05:00
parent d77004c002
commit 9ecaff2384
6 changed files with 14 additions and 137 deletions
+5 -1
View File
@@ -1,6 +1,10 @@
let g:netrw_dirhistmax =10
let g:netrw_dirhist_cnt =4
let g:netrw_dirhist_cnt =8
let g:netrw_dirhist_1='/Users/kreitz'
let g:netrw_dirhist_2='/Users/kreitz/.fontconfig'
let g:netrw_dirhist_3='/Users/kreitz'
let g:netrw_dirhist_4='/Users/kreitz/repos/public/tablib'
let g:netrw_dirhist_5='/Users/kreitz'
let g:netrw_dirhist_6='/Users/kreitz/repos/public/tablib'
let g:netrw_dirhist_7='/Users/kreitz/.vim'
let g:netrw_dirhist_8='/Users/kreitz/repos/public/tablib'
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
-40
View File
@@ -1,40 +0,0 @@
"------------------------------------------------------------------------------
" Description: Rainbow colors for parenthsis
" $Id: rainbow_parenthsis.vim 29 2007-09-24 11:40:36Z krischik@users.sourceforge.net $
" Copyright: Copyright (C) 2006 Martin Krischik
" Maintainer: Martin Krischik
" John Gilmore
" $Author: krischik@users.sourceforge.net $
" $Date: 2007-09-24 13:40:36 +0200 (Mo, 24 Sep 2007) $
" Version: 4.0
" $Revision: 29 $
" $HeadURL: https://vim-scripts.googlecode.com/svn/trunk/1561%20Rainbow%20Parenthsis%20Bundle/plugin/rainbow_parenthsis.vim $
" History: 24.05.2006 MK Unified Headers
" 15.10.2006 MK Bram's suggestion for runtime integration
" 06.09.2007 LH Buffer friendly (can be used in different buffers),
" can be toggled
" 09.09.2007 MK Use on LH's suggestion but use autoload to
" impove memory consumtion and startup performance
" 09.10.2007 MK Now with round, square brackets, curly and angle
" brackets.
" Usage: copy to plugin directory.
"------------------------------------------------------------------------------
" This is a simple script. It extends the syntax highlighting to
" highlight each matching set of parens in different colors, to make
" it visually obvious what matches which.
"
" Obviously, most useful when working with lisp or Ada. But it's also nice other
" times.
"------------------------------------------------------------------------------
command! -nargs=0 ToggleRaibowParenthesis call rainbow_parenthsis#Toggle()
finish
"------------------------------------------------------------------------------
" Copyright (C) 2006 Martin Krischik
"
" Vim is Charityware - see ":help license" or uganda.txt for licence details.
"------------------------------------------------------------------------------
" vim: textwidth=78 wrap tabstop=8 shiftwidth=4 softtabstop=4 expandtab
" vim: filetype=vim foldmethod=marker
-85
View File
@@ -1,85 +0,0 @@
" Twitter with Vim
" Language: Vim Script
" Maintainer: Travis Jeffery <eatsleepgolf@gmail.com>
" Maintainer: Po Shan Cheah <morton@mortonfox.com>
" Created: 14 January 2008
" Last Change: March 27, 2008
" GetLatestVimScripts: 2124 1 [:AutoInstall:] vimtwitter.vim
" ==============================================================
" Get proxy setting from vimtwitter_proxy in .vimrc or _vimrc.
" Format is proxysite:proxyport
if exists('vimtwitter_proxy')
let s:proxy = "-x " . vimtwitter_proxy
else
let s:proxy = ""
endif
" Get Twitter login info from vimtwitter_login in .vimrc or _vimrc.
" Format is username:password
if exists('vimtwitter_login')
let s:login = "-u " . vimtwitter_login
else
echoerr "Vimtwitter login not set. Please set vimtwitter_login in .vimrc to USER:PASS."
finish
endif
" Load this module only once.
if exists('loaded_vimtwitter')
finish
endif
let loaded_vimtwitter = 1
" The extended character limit is 246. Twitter will display a tweet longer than
" 140 characters in truncated form with a link to the full tweet. If that is
" undesirable, set s:char_limit to 140.
let s:char_limit = 246
let s:twupdate = "http://twitter.com/statuses/update.xml?source=vim"
function! s:post_twitter(mesg)
let mesg = a:mesg
" Remove trailing newline. You see that when you visual-select an entire
" line. Don't let it count towards the tweet length.
let mesg = substitute(mesg, '\n$', '', "")
" Convert internal newlines to spaces.
let mesg = substitute(mesg, '\n', ' ', "g")
" Check tweet length. Note that the tweet length should be checked before
" URL-encoding the special characters because URL-encoding increases the
" string length.
if strlen(mesg) > s:char_limit
echo "Your tweet has" strlen(mesg) - s:char_limit "too many characters. It was not sent."
else
" URL-encode some special characters so they show up verbatim.
let mesg = substitute(mesg, '%', '%25', "g")
let mesg = substitute(mesg, '"', '%22', "g")
let mesg = substitute(mesg, '&', '%26', "g")
call system("curl ".s:proxy." ".s:login.' -d status="'.mesg.'" '.s:twupdate)
echo "Your tweet was sent. You used" strlen(mesg) "characters."
endif
endfunction
function! s:CmdLine_Twitter()
call inputsave()
let mesg = input("Your Twitter: ")
call inputrestore()
call s:post_twitter(mesg)
endfunction
" Prompt user for tweet.
command! PosttoTwitter :call <SID>CmdLine_Twitter()
" Post current line to Twitter.
command! CPosttoTwitter :call <SID>post_twitter(getline('.'))
" Post entire buffer to Twitter.
command! BPosttoTwitter :call <SID>post_twitter(join(getline(1, "$")))
" Post visual selection to Twitter.
vmap T y:call <SID>post_twitter(@")<cr>
" vim:set tw=0:
+9 -11
View File
@@ -71,23 +71,14 @@ vmap <D-[> <gv
vmap <D-]> >gv
" comments
imap <D-/> gcc
nmap <D-/> gcc
vmap <D-/> gcgv
" Toggle show invisibles
nmap <leader>i :set list!<CR>
" Use the below highlight group when displaying bad whitespace is desired.
highlight BadWhitespace ctermbg=red guibg=red
" Make trailing whitespace be flagged as bad.
au BufRead,BufNewFile *.py,*.pyw,*.c,*.h match BadWhitespace /\s\+$/
" For full syntax highlighting:
let python_highlight_all=1
"set iskeyword+=.
autocmd FileType python set omnifunc=pythoncomplete#Complete
autocmd FileType javascript set omnifunc=javascriptcomplete#CompleteJS
@@ -96,8 +87,7 @@ autocmd FileType css set omnifunc=csscomplete#CompleteCSS
set mouse=a
set guifont=Inconsolata:h13
color molokai
map <D-Space> <Esc><Space>
@@ -106,4 +96,12 @@ if has("gui_macvim")
set guioptions-=T
macmenu &File.New\ Tab key=<nop>
map <D-t> <Plug>PeepOpen
set guifont=Inconsolata:h13
color molokai
endif
" command! -nargs=0 ToggleRaibowParenthesis call rainbow_parenthsis#Toggle()
" Use the below highlight group when displaying bad whitespace is desired.
" Make trailing whitespace be flagged as bad.
au BufRead,BufNewFile *.py,*.pyw,*.c,*.h match BadWhitespace /\s\+$/
highlight BadWhitespace ctermbg=red guibg=red