mirror of
https://github.com/preservim/vim-indent-guides.git
synced 2025-11-10 19:03:47 -05:00
Renamed files so have underscores instead of dashes and moved methods to autoload files
This commit is contained in:
27
plugin/indent_guides.vim
Normal file
27
plugin/indent_guides.vim
Normal file
@@ -0,0 +1,27 @@
|
||||
" Author: Nate Kane <nathanaelkane AT gmail DOT com>
|
||||
" Homepage: http://github.com/nathanaelkane/vim-indent-guides
|
||||
|
||||
function! s:IndentGuidesToggle()
|
||||
call indent_guides#toggle()
|
||||
endfunction
|
||||
|
||||
function! s:IndentGuidesEnable()
|
||||
call indent_guides#enable()
|
||||
endfunction
|
||||
|
||||
function! s:IndentGuidesDisable()
|
||||
call indent_guides#disable()
|
||||
endfunction
|
||||
|
||||
" Commands
|
||||
command! IndentGuidesToggle call s:IndentGuidesToggle()
|
||||
command! IndentGuidesEnable call s:IndentGuidesEnable()
|
||||
command! IndentGuidesDisable call s:IndentGuidesDisable()
|
||||
|
||||
" Default options
|
||||
let g:indent_guides_indent_levels = 50
|
||||
let g:indent_guides_debug = 0
|
||||
|
||||
" Default mapping
|
||||
nmap <Leader>ig :IndentGuidesToggle<CR>
|
||||
|
||||
Reference in New Issue
Block a user