Commits

Meikel Brandmeyer committed dc29d5f

Change all invokation to of normal to normal! (Fixes #3)

Comments (0)

Files changed (3)

autoload/vimclojure.vim

 	function closure.f() dict
 		if searchpairpos('(', '', ')', 'bW' . self.flag,
 					\ 'vimclojure#SynIdName() !~ "clojureParen\\d"') != [0, 0]
-			return vimclojure#Yank('l', 'normal "ly%')
+			return vimclojure#Yank('l', 'normal! "ly%')
 		end
 		return ""
 	endfunction
 	let closure = {}
 
 	function! closure.f() dict
-		normal }
+		normal! }
 		return line(".")
 	endfunction
 
 
 	setfiletype clojure
 
-	normal G
+	normal! G
 	startinsert!
 endfunction
 
 					\ "-i", self._id)
 		call self.showText(result)
 		call self.showText(self._prompt . " ")
-		normal G
+		normal! G
 		startinsert!
 	elseif a:cmd == ",ct"
 		let result = vimclojure#ExecuteNailWithInput("Repl",
 					\ "-i", self._id)
 		call self.showText(result)
 		call self.showText(self._prompt . " ")
-		normal G
+		normal! G
 		startinsert!
 	endif
 endfunction
 
 function! vimclojure#Repl.showPrompt() dict
 	call self.showText(self._prompt . " ")
-	normal G
+	normal! G
 	startinsert!
 endfunction
 
 	let result = vimclojure#ExecuteNailWithInput("CheckSyntax", cmd)
 	if result == "false"
 		execute "normal! GA\<CR>x"
-		normal ==x
+		normal! ==x
 		startinsert!
 	else
 		let result = vimclojure#ExecuteNailWithInput("Repl", cmd,
 		call self.showText(self._prompt . " " . cmd)
 	endif
 
-	normal G$
+	normal! G$
 endfunction
 
 function! vimclojure#Repl.downHistory() dict
 		call self.showText(self._prompt . " ")
 	endif
 
-	normal G$
+	normal! G$
 endfunction
 
 function! vimclojure#Repl.deleteLast() dict
-	normal G
+	normal! G
 
 	while getline("$") !~ self._prompt
-		normal dd
+		normal! dd
 	endwhile
 
-	normal dd
+	normal! dd
 endfunction
 
 " Highlighting
 	function closure.f() dict
 		execute self.lineno
 
-		if vimclojure#SynIdName() =~ 'clojureParen\d' && vimclojure#Yank('l', 'normal "lyl') == '('
+		if vimclojure#SynIdName() =~ 'clojureParen\d' && vimclojure#Yank('l', 'normal! "lyl') == '('
 			return 1
 		endif
 
 		if vimclojure#SynIdName() != "clojureString"
 			return -1
 		endif
-		if vimclojure#Yank('l', 'normal "lyl') != '\\'
+		if vimclojure#Yank('l', 'normal! "lyl') != '\\'
 			return -1
 		endif
 		call cursor(0, col("$") - 1)
 	endif
 
 	" In case after the paren is a whitespace, we search for the next word.
-	normal l
-	if vimclojure#Yank('l', 'normal "lyl') == ' '
-		normal w
+	normal! l
+	if vimclojure#Yank('l', 'normal! "lyl') == ' '
+		normal! w
 	endif
 
 	" If we moved to another line, there is no word after the (. We
 
 	" We still have to check, whether the keyword starts with a (, [ or {.
 	" In that case we use the ( position for indent.
-	let w = vimclojure#Yank('l', 'normal "lye')
+	let w = vimclojure#Yank('l', 'normal! "lye')
 	if stridx('([{', w[0]) > 0
 		return paren[1]
 	endif
 		return paren[1] + &shiftwidth - 1
 	endif
 
-	normal w
+	normal! w
 	if paren[0] < line(".")
 		return paren[1] + &shiftwidth - 1
 	endif
 
-	normal ge
+	normal! ge
 	return col(".") + 1
 endfunction