This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"pythoncomplete.vim - Omni Completion for python | |
" Maintainer: Aaron Griffin <[email protected]> | |
" Version: 0.9 | |
" Last Updated: 18 Jun 2009 | |
" | |
" Changes | |
" TODO: | |
" 'info' item output can use some formatting work | |
" Add an "unsafe eval" mode, to allow for return type evaluation | |
" Complete basic syntax along with import statements |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
function Send_to_Screen(text) | |
if !exists("g:screen_sessionname") || !exists("g:screen_windowname") | |
call Screen_Vars() | |
end | |
execute "python send_with_strip()" | |
endfunction |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" BufPos: Activate a buffer by its position number in the buffers | |
" list | |
" Author: Michele Campeotto <[email protected]> | |
" Date: 2007-04-25 | |
" Version: 1.0 | |
" | |
" This script provides a function to activate a vim buffer by passing it the | |
" position in the buffers list and maps it to <M-number> to easily switch | |
" between open buffers. | |
" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" buftabs (C) 2006 Ico Doornekamp | |
" | |
" This program is free software; you can redistribute it and/or modify it | |
" under the terms of the GNU General Public License as published by the Free | |
" Software Foundation; either version 2 of the License, or (at your option) | |
" any later version. | |
" | |
" This program is distributed in the hope that it will be useful, but WITHOUT | |
" ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
filetype plugin on | |
set grepprg=grep\ -nH\ $* | |
filetype indent on | |
let g:Tex_ViewRule_pdf = 'Skim' | |
let g:Tex_CompileRule_pdf = 'pdflatex -interaction=nonstopmode -enable-write18 -file-line-error-style $*' | |
"let g:Tex_CompileRule_pdf = 'xelatex -interaction=nonstopmode -file-line-error-style $*' | |
let g:Tex_Leader = ';' | |
"let g:Tex_Folding = 0 | |
let g:Tex_AutoFolding = 0 | |
autocmd FileType tex imap <C-L> <Plug>Tex_LeftRight |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function savefaststruct(filename, savestruct) | |
% savefaststruct: fast saves of large arrays to .mat files | |
% | |
% Matlab's 'save' command can be very slow when saving large arrays, | |
% because by default Matlab attempts to use compression. This function | |
% provides a much faster alternative, at the cost of larger files. | |
% | |
% 'savefaststruct' version saves variables from a structure | |
% this avoids the need for evalin which does not work inside | |
% parfor etc. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function x = numdec2base(d,b,m) | |
%NUMDEC2BASE Convert decimal univariate integer to base B multivariate vector. | |
% NUMDEC2BASE(D,B,M) returns the representation of D as a length-M base-B | |
% word. | |
% | |
% Examples | |
% numdec2base(23,3) returns [2;1;2] | |
% numdec2base(23,3,5) returns [0;0;2;1;2] | |
% | |
% See also NUMBASE2DEC |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function d = numbase2dec(x,b) | |
%NUMBASE2DEC Convert base B numerical multivariate array to decimal integer. | |
% NUMBASE2DEC(x,B) converts the multivarate array of base B into its | |
% univariate decimal (base 10) equivalent. | |
% | |
% X should be M x Nt representing Nt different length-M base B words. | |
% | |
% Example | |
% numbase2dec([2; 1; 2],3) returns 23 | |
% |
OlderNewer