slimv

Vim - slimv : close-parenthesis position upon pressing enter

柔情痞子 提交于 2019-12-24 14:19:04
问题 I'm a vim user trying to learn common lisp. I run gvim on windows. I am trying to follow the slimv tutorial given here: http://kovisoft.bitbucket.org/tutorial.html My question:suppose you type the following and press enter after :morse (the vertical bar denotes the cursor position) (defpackage :morse|) I get the following result (again the vertical bar '|' denotes the cursor position): (defpackage :morse | ) Whereas I want the following result: (defpackage :morse |) so that I can continue to

slimv segfaulting on OS X Lion

廉价感情. 提交于 2019-12-19 11:28:36
问题 I have been trying to get slimv (http://www.vim.org/scripts/script.php?script_id=2531) working for a while now, but I am really not sure what else I can do. I am running vim 7.3 compiled with python support, using clisp (sbcl is showing the same issue though) on os x lion. I pulled the latest version of slimv off of vim.org. When I load a lisp file, echo g:slimv_loaded returns 1, but I do not get a second window with the repl. When I hit any of the keybindings, a new terminal window opens,

vim:Can braces auto complete in java file as elegant as lisp file with slimv?

☆樱花仙子☆ 提交于 2019-12-11 09:00:59
问题 I have been use slimv for a long time, and found it's great in braces auto complete. However, while I was editing java file, I tried to add this code in my vimrc "Add the closing brace only at the end of the line function! ConditionalPairMap(open, close) let line = getline('.') let col = col('.') if col < col('$') || stridx(line, a:close, col + 1) != -1 return a:open else return a:open . a:close . repeat("\<left>", len(a:close)) endif endf inoremap <expr> ( ConditionalPairMap('(', ')')