~gpanders/dotfiles

ref: 1e9f8dd001f12b57c7ff1b45adb7c59541b752c6 dotfiles/.vim/after/ftplugin/vhdl.vim -rw-r--r-- 742 bytes
1e9f8dd0Gregory Anders fish: remove fuzzy finder from buku alias 6 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
" VHDL uses -- as comment string
setlocal comments=:--
setlocal commentstring=--%s

" VHDL is case insensitive
setlocal tagcase=ignore
setlocal ignorecase
setlocal nosmartcase
setlocal formatoptions-=t
setlocal textwidth=79

setlocal include=\\c^\\s*use\\s\\+work\\.\\zs\\w\\+\\ze\\.
setlocal includeexpr=ft#vhdl#find_package(v:fname)

inoreabbrev <buffer> slv std_logic_vector
inoreabbrev <buffer> sl std_logic

nnoremap <buffer> <silent> <Bslash>d :<C-U>call ft#vhdl#toggle_debug()<CR>

if executable('ghdl')
  compiler ghdl
endif

let b:undo_ftplugin = get(b:, 'undo_ftplugin', '')
      \ . '|setl com< cms< tc< ic< scs< fo< tw< inc< inex<'
      \ . '|iuna <buffer> slv'
      \ . '|iuna <buffer> sl'
      \ . '|nun <buffer> <Bslash>d'