vim helper for octave/matlab

This commit is contained in:
Frank Villaro-Dixon 2014-04-10 15:48:39 +02:00
parent a40fe28476
commit 788a968f3e
3 changed files with 5 additions and 1 deletions

View file

@ -6,3 +6,4 @@ function man (name)
endfunction
pkg load all

2
vim/scripts/doc.octave.sh Executable file
View file

@ -0,0 +1,2 @@
#!/bin/bash
echo man $1 | octave --quiet

View file

@ -12,7 +12,7 @@ set spell
set spelllang=en,fr
set viminfo+=n~/Private/.viminfo
set directory=~/Private/.vim/swap
set directory=~/Private/.vim/
"set nocompatible "fuck you !. impossible de backspace, sinon
set backspace=indent,eol,start
@ -170,6 +170,7 @@ autocmd BufRead,BufNewFile *.m set nospell
autocmd BufNewFile,BufRead *.py set keywordprg=pydoc
autocmd BufNewFile,BufRead *.php set ts=4 sw=4 keywordprg=~/.vim/scripts/doc.php.sh
autocmd BufNewFile,BufRead *.R set ts=4 sw=4 keywordprg=~/.vim/scripts/doc.R.sh
autocmd BufNewFile,BufRead *.m set ts=4 sw=4 keywordprg=~/.vim/scripts/doc.octave.sh
"Merci Nemolivier ;)
vmap ,w :<C-U>!firefox "http://fr.wikipedia.org/wiki/<cword>" >& /dev/null<CR><CR>