Sorting things out
This commit is contained in:
27
init.vim
27
init.vim
@@ -128,17 +128,17 @@ nnoremap <Leader>es :source $MYVIMRC<CR>
|
|||||||
|
|
||||||
"Changing unused ctrl bindings
|
"Changing unused ctrl bindings
|
||||||
"Turn on git blame
|
"Turn on git blame
|
||||||
nnoremap <C-S-A> <CMD>GBlame<CR>
|
nnoremap <C-A> <CMD>Git blame<CR>
|
||||||
"List all tags in the current buffer (replaced pageup, use CTRL-u instead)
|
"List all tags in the current buffer (replaced pageup, use CTRL-u instead)
|
||||||
nnoremap <C-B> <CMD>BTags<CR>
|
nnoremap <C-B> <CMD>BTags<CR>
|
||||||
"List all tags in directory
|
"List all tags in directory
|
||||||
nnoremap <C-S-B> <CMD>Tags<CR>
|
"nnoremap <C-S-B> <CMD>Tags<CR>
|
||||||
"List all the recently opened files (replaced scroll one line up, use "k")
|
"List all the recently opened files (replaced scroll one line up, use "k")
|
||||||
nnoremap <C-E> <CMD>History<CR>
|
nnoremap <C-E> <CMD>History<CR>
|
||||||
"Search within the current buffer (replaced pagedown, use CTRL-d instead)
|
"Search within the current buffer (replaced pagedown, use CTRL-d instead)
|
||||||
nnoremap <C-F> /
|
"nnoremap <C-F> /
|
||||||
"Search within the whole project
|
"Search within the whole project
|
||||||
nnoremap <C-S-F> <CMD>Rg<CR>
|
nnoremap <C-F> <CMD>Rg<CR>
|
||||||
"Move line down (uses vim-unimpaired) (replaced move down, use "j")
|
"Move line down (uses vim-unimpaired) (replaced move down, use "j")
|
||||||
nnoremap <C-J> <C-E>
|
nnoremap <C-J> <C-E>
|
||||||
"Move line up (uses vim-unimpaired) (replaced move up, use "k")
|
"Move line up (uses vim-unimpaired) (replaced move up, use "k")
|
||||||
@@ -265,7 +265,7 @@ nnoremap <Leader>em :call ToggleEmmet()<CR>
|
|||||||
set conceallevel=3
|
set conceallevel=3
|
||||||
|
|
||||||
let g:AutoPairsFlyMode = 1
|
let g:AutoPairsFlyMode = 1
|
||||||
let g:AutoPairsShortcutBackInsert = '<M-B>' " Use <M-B> to insert the closing parentheses if it jumped ahead by mistake
|
let g:AutoPairsShortcutBackInsert = '<M-b>' " Use <M-B> to insert the closing parentheses if it jumped ahead by mistake
|
||||||
|
|
||||||
let g:chadtree_settings = {
|
let g:chadtree_settings = {
|
||||||
\ 'theme': {
|
\ 'theme': {
|
||||||
@@ -313,6 +313,21 @@ let g:chadtree_settings = {
|
|||||||
|
|
||||||
" }}}
|
" }}}
|
||||||
|
|
||||||
|
" PHP --- {{{
|
||||||
|
" function! RunPHPUnitTest()
|
||||||
|
" cd %:p:h
|
||||||
|
" normal! T yw
|
||||||
|
" let result = system("phpunit --filter " . @" . " " . bufname("%"))
|
||||||
|
" split __PHPUnit_Result__
|
||||||
|
" normal! ggdG
|
||||||
|
" setlocal buftype=nofile
|
||||||
|
" call append(0, split(result, '\v\n'))
|
||||||
|
" cd -
|
||||||
|
" endfunction
|
||||||
|
|
||||||
|
" nnoremap <F12> :call RunPHPUnitTest()<cr>
|
||||||
|
" }}}
|
||||||
|
|
||||||
" Moving around --- {{{
|
" Moving around --- {{{
|
||||||
"Use capital H and L to move to the start and end of lines
|
"Use capital H and L to move to the start and end of lines
|
||||||
nnoremap H ^
|
nnoremap H ^
|
||||||
@@ -371,6 +386,8 @@ augroup END
|
|||||||
augroup autosaving
|
augroup autosaving
|
||||||
autocmd!
|
autocmd!
|
||||||
autocmd FocusLost * silent! wa "Save all files when moving away from the window
|
autocmd FocusLost * silent! wa "Save all files when moving away from the window
|
||||||
|
autocmd InsertLeave * silent! wa "Save all files when leaving insert mode
|
||||||
|
autocmd TextChanged * silent! wa "Save all files when text is changed
|
||||||
augroup END
|
augroup END
|
||||||
|
|
||||||
augroup modes
|
augroup modes
|
||||||
|
|||||||
Reference in New Issue
Block a user