vim
| Name | Last commit date |
|---|---|
| lib | 4 years ago |
| proto | 5 years ago |
| testdir | 5 years ago |
| xxd | 5 years ago |
| arabic.c | 5 years ago |
| arabic.h | 5 years ago |
| ascii.h | 5 years ago |
| buffer.c | 5 years ago |
| charset.c | 5 years ago |
| diff.c | 5 years ago |
| digraph.c | 5 years ago |
| edit.c | 5 years ago |
| eval.c | 2 years ago |
| ex_cmds.c | 5 years ago |
| ex_cmds.h | 5 years ago |
| ex_cmds2.c | 5 years ago |
| ex_docmd.c | 5 years ago |
| ex_eval.c | 5 years ago |
| ex_getln.c | 5 years ago |
| farsi.c | 5 years ago |
| farsi.h | 5 years ago |
| feature.h | 5 years ago |
| fileio.c | 5 years ago |
| fold.c | 5 years ago |
| getchar.c | 5 years ago |
| globals.h | 5 years ago |
| gui.c | 5 years ago |
| gui.h | 5 years ago |
| gui_beval.c | 5 years ago |
| gui_beval.h | 5 years ago |
| hardcopy.c | 5 years ago |
| hashtab.c | 5 years ago |
| keymap.h | 5 years ago |
| macros.h | 5 years ago |
| main.aap | 5 years ago |
| main.c | 5 years ago |
| mark.c | 5 years ago |
| mbyte.c | 5 years ago |
| memfile.c | 5 years ago |
| memline.c | 5 years ago |
| menu.c | 5 years ago |
| message.c | 5 years ago |
| misc1.c | 5 years ago |
| misc2.c | 2 years ago |
| mkfile | 2 years ago |
| move.c | 5 years ago |
| mysign | 5 years ago |
| nbdebug.c | 5 years ago |
| nbdebug.h | 5 years ago |
| netbeans.c | 5 years ago |
| normal.c | 4 years ago |
| ops.c | 5 years ago |
| option.c | 5 years ago |
| option.h | 5 years ago |
| os_plan9.c | 2 years ago |
| os_plan9.h | 5 years ago |
| pathdef.c | 5 years ago |
| popupmnu.c | 5 years ago |
| proto.h | 5 years ago |
| quickfix.c | 5 years ago |
| README.md | 2 years ago |
| README.txt | 5 years ago |
| regexp.c | 5 years ago |
| regexp.h | 5 years ago |
| screen.c | 5 years ago |
| search.c | 5 years ago |
| spell.c | 5 years ago |
| structs.h | 5 years ago |
| syntax.c | 5 years ago |
| tag.c | 5 years ago |
| term.c | 4 years ago |
| term.h | 5 years ago |
| termlib.c | 5 years ago |
| ui.c | 5 years ago |
| undo.c | 5 years ago |
| version.c | 5 years ago |
| version.h | 5 years ago |
| vim.h | 5 years ago |
| vim.png | 4 years ago |
| vim.proto | 5 years ago |
| window.c | 5 years ago |
vim
This is a plan9 port of the vim editor. The port was initially done by stefanha (see https://vmsplice.net/9vim.html).
This fork builds on the initial port and brings a couple extra features (plumber, mouse support) but also bug fixes (mainly shell command execution).
NOTE: An updated version is available here: https://git.sr.ht/~shurizzle/9vim/

plan9 integration:
Here are a couple of things I use to help with integration within plan9.
VIM loads its configuration from $home/lib/vimrc.
mk
To make mk output recognized by quickfix, use the following:
set errorformat+=%tarning:\ %f:%l\ %m
set errorformat+=%tarning:\ %f:%l[%.%#]\ %m
set errorformat+=%f:%l\ %m
set errorformat+=%f:%l[%.%#]\ %m
autocmd BufReadPost quickfix nnoremap <buffer> <CR> <CR>
grep
I use g for grepping through code. You can modify the grepprg variable to do this:
set grepprg=g\ $*
man pages
The included man.vim plugin is modified to work on plan9.
First you need to load the plugin:
runtime ftplugin/man.vim
You can now look at man pages using
:Man <keyword>
In addition, you can change the keywordprg variable to display man pages when pressing the K key over a keyword:
set keywordprg=:Man
function signatures
I use the following function to display the signature of the function under the cursor:
function! s:Sig()
echo system("sig ".expand("<cword>"))
endfunction
command! Sig call s:Sig()
git diff
I use the following function to display the result of git/diff in the current directory as a diff file:
function! s:GitDiff()
32 new
setlocal buftype=nofile
:.!git/diff
setlocal ft=diff
endfunction
command! Gd call s:GitDiff()
Issues
- Input is borked (nothing beyong ascii, leader key, etc.)
- Other things I'm sure