43
.config/nvim/plugged/bash-support.vim/ftplugin/sh.vim
Normal file
43
.config/nvim/plugged/bash-support.vim/ftplugin/sh.vim
Normal file
@@ -0,0 +1,43 @@
|
||||
" Vim filetype plugin file
|
||||
"
|
||||
" Language : bash
|
||||
" Plugin : bash-support.vim
|
||||
" Maintainer : Fritz Mehner <mehner@fh-swf.de>
|
||||
"
|
||||
" -----------------------------------------------------------------
|
||||
"
|
||||
" Only do this when not done yet for this buffer
|
||||
"
|
||||
if exists("b:did_BASH_ftplugin")
|
||||
finish
|
||||
endif
|
||||
let b:did_BASH_ftplugin = 1
|
||||
"
|
||||
"------------------------------------------------------------------------------
|
||||
" Avoid a wrong syntax highlighting for $(..) and $((..))
|
||||
"------------------------------------------------------------------------------
|
||||
let b:is_bash = 1
|
||||
"
|
||||
"-------------------------------------------------------------------------------
|
||||
" additional mapping : single quotes around a Word (non-whitespaces)
|
||||
" masks the normal mode command '' (jump to the position
|
||||
" before the latest jump)
|
||||
" additional mapping : double quotes around a Word (non-whitespaces)
|
||||
"-------------------------------------------------------------------------------
|
||||
nnoremap <buffer> '' ciW''<Esc>P
|
||||
nnoremap <buffer> "" ciW""<Esc>P
|
||||
"
|
||||
"-------------------------------------------------------------------------------
|
||||
" set "maplocalleader" as configured using "g:BASH_MapLeader"
|
||||
"-------------------------------------------------------------------------------
|
||||
call Bash_SetMapLeader ()
|
||||
"
|
||||
" maps defined here will use "g:BASH_MapLeader" as <LocalLeader>
|
||||
" example:
|
||||
"map <buffer> <LocalLeader>eg :echo "Example Map :)"<CR>
|
||||
"
|
||||
"-------------------------------------------------------------------------------
|
||||
" reset "maplocalleader"
|
||||
"-------------------------------------------------------------------------------
|
||||
call Bash_ResetMapLeader ()
|
||||
"
|
||||
Reference in New Issue
Block a user