We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26381c2 commit 8907ae4Copy full SHA for 8907ae4
plugin/verilog_instance.vim
@@ -1,6 +1,15 @@
1
-function! VerilogInstance() range
2
- let cmd=a:firstline . "," . a:lastline . "!" . "verilog_instance.py"
+if exists("g:loaded_verilog_instance") || &cp || v:version < 700
+ finish
3
+endif
4
+let g:loaded_verilog_instance = 1
5
+
6
+let s:plugin_dir_path = fnamemodify(resolve(expand('<sfile>:p')), ':h')
7
8
+function! s:VerilogInstance() range
9
+ let cmd=a:firstline . "," . a:lastline . "!" . " " . s:plugin_dir_path. "/verilog_instance.py"
10
execute cmd
- let cmd=a:firstline . "," . a:lastline . "norm =="
11
+ let cmd=a:firstline . "," . a:lastline . "norm! =="
12
13
endfunction
14
15
+command! -range VerilogInstance call s:VerilogInstance()
0 commit comments