1. Meikel Brandmeyer
  2. vimclojure

Commits

Meikel Brandmeyer  committed b31c457

Allow to specify Buffer size

Fixes #44

  • Participants
  • Parent commits f0370f8
  • Branches default

Comments (0)

Files changed (2)

File autoload/vimclojure.vim

View file
 endfunction
 
 " A Buffer...
-if !exists("vimclojure#SplitPos")
+if !exists("g:vimclojure#SplitPos")
 	let vimclojure#SplitPos = "top"
 endif
 
+if !exists("g:vimclojure#SplitSize")
+	let vimclojure#SplitSize = ""
+endif
+
 let vimclojure#Buffer = {}
 
 function! vimclojure#Buffer.New() dict
 		else
 			set splitright
 		end
-		vnew
+		execute printf("%svnew", g:vimclojure#SplitSize)
 		let &splitright = o_sr
 	else
 		let o_sb = &splitbelow
 		else
 			set nosplitbelow
 		end
-		new
+		execute printf("%snew", g:vimclojure#SplitSize)
 		let &splitbelow = o_sb
 	endif
 endfunction

File doc/clojure.txt

View file
 
 VimClojure might pop up windows, like the preview window or the Repl.
 The place where this is done may be controlled with the SplitPos variable.
-Possible values are "left", "right", "top" and "bottom". Thedefault is
+Possible values are "left", "right", "top" and "bottom". The default is
 "top".
 
 Example:
 >
         let vimclojure#SplitPos = "left"
 <
+It is also possible to specify the size of the new window. The size is
+specified in lines/columns.
+>
+        let vimclojure#SplitSize = 10
+<
 
 Syntax Highlighting                 *ft-clj-syntax*
 -------------------