vim helper for octave/matlab
This commit is contained in:
parent
a40fe28476
commit
788a968f3e
3 changed files with 5 additions and 1 deletions
1
octaverc
1
octaverc
|
@ -6,3 +6,4 @@ function man (name)
|
|||
endfunction
|
||||
|
||||
pkg load all
|
||||
|
||||
|
|
2
vim/scripts/doc.octave.sh
Executable file
2
vim/scripts/doc.octave.sh
Executable file
|
@ -0,0 +1,2 @@
|
|||
#!/bin/bash
|
||||
echo man $1 | octave --quiet
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue