Updating extended.vim/
This commit is contained in:
parent
1f0dc50da6
commit
426bce4fdd
1 changed files with 11 additions and 11 deletions
|
@ -1,5 +1,5 @@
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
" Important:
|
" Important:
|
||||||
" This requries that you install https://github.com/amix/vimrc !
|
" This requries that you install https://github.com/amix/vimrc !
|
||||||
"
|
"
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
@ -42,7 +42,7 @@ autocmd! bufwritepost vimrc source ~/.vim_runtime/my_configs.vim
|
||||||
|
|
||||||
|
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
" => Turn persistent undo on
|
" => Turn persistent undo on
|
||||||
" means that you can undo even when you close a buffer/VIM
|
" means that you can undo even when you close a buffer/VIM
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
try
|
try
|
||||||
|
@ -62,7 +62,7 @@ cno $j e ./
|
||||||
cno $c e <C-\>eCurrentFileDir("e")<cr>
|
cno $c e <C-\>eCurrentFileDir("e")<cr>
|
||||||
|
|
||||||
" $q is super useful when browsing on the command line
|
" $q is super useful when browsing on the command line
|
||||||
" it deletes everything until the last slash
|
" it deletes everything until the last slash
|
||||||
cno $q <C-\>eDeleteTillSlash()<cr>
|
cno $q <C-\>eDeleteTillSlash()<cr>
|
||||||
|
|
||||||
" Bash like keys for the command line
|
" Bash like keys for the command line
|
||||||
|
@ -90,13 +90,13 @@ vnoremap $q <esc>`>a'<esc>`<i'<esc>
|
||||||
vnoremap $e <esc>`>a"<esc>`<i"<esc>
|
vnoremap $e <esc>`>a"<esc>`<i"<esc>
|
||||||
|
|
||||||
" Map auto complete of (, ", ', [
|
" Map auto complete of (, ", ', [
|
||||||
inoremap $1 ()<esc>i
|
"inoremap $1 ()<esc>i
|
||||||
inoremap $2 []<esc>i
|
"inoremap $2 []<esc>i
|
||||||
inoremap $3 {}<esc>i
|
"inoremap $3 {}<esc>i
|
||||||
inoremap $4 {<esc>o}<esc>O
|
"inoremap $4 {<esc>o}<esc>O
|
||||||
inoremap $q ''<esc>i
|
"inoremap $q ''<esc>i
|
||||||
inoremap $e ""<esc>i
|
"inoremap $e ""<esc>i
|
||||||
inoremap $t <><esc>i
|
"inoremap $t <><esc>i
|
||||||
|
|
||||||
|
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
@ -130,7 +130,7 @@ func! DeleteTillSlash()
|
||||||
else
|
else
|
||||||
let g:cmd_edited = substitute(g:cmd, "\\(.*\[/\]\\).*/", "\\1", "")
|
let g:cmd_edited = substitute(g:cmd, "\\(.*\[/\]\\).*/", "\\1", "")
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
return g:cmd_edited
|
return g:cmd_edited
|
||||||
endfunc
|
endfunc
|
||||||
|
|
Loading…
Reference in a new issue