Make sure key bindings are local to the file type buffer. Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
22 lines
1.1 KiB
VimL
22 lines
1.1 KiB
VimL
" Create folds based on files syntax
|
|
setlocal foldmethod=syntax
|
|
" Scanning included files when ^n is troublesome
|
|
setlocal complete-=i
|
|
setlocal path+=/usr/include/**
|
|
|
|
nmap <buffer> <LocalLeader>ct :NeomakeSh ctags -R .<CR>
|
|
nmap <buffer> <LocalLeader>cu :NeomakeSh cscope -bqR<CR>
|
|
nmap <buffer> <LocalLeader>cr :cs reset<CR>
|
|
|
|
nmap <buffer> <silent> <LocalLeader>s <Plug>(quickr_cscope_symbols)
|
|
nmap <buffer> <silent> <LocalLeader>g <Plug>(quickr_cscope_global)
|
|
nmap <buffer> <silent> <LocalLeader>h <Plug>(quickr_cscope_global_split)
|
|
nmap <buffer> <silent> <LocalLeader>v <Plug>(quickr_cscope_global_vert_split)
|
|
nmap <buffer> <silent> <LocalLeader>d <Plug>(quickr_cscope_functions)
|
|
nmap <buffer> <silent> <LocalLeader>c <Plug>(quickr_cscope_callers)
|
|
nmap <buffer> <silent> <LocalLeader>t <Plug>(quickr_cscope_text)
|
|
nmap <buffer> <silent> <LocalLeader>e <Plug>(quickr_cscope_egrep)
|
|
nmap <buffer> <silent> <LocalLeader>f <Plug>(quickr_cscope_files)
|
|
nmap <buffer> <silent> <LocalLeader>i <Plug>(quickr_cscope_includes)
|
|
nmap <buffer> <silent> <LocalLeader>a <Plug>(quickr_cscope_assignments)
|