Commit 786af3f7 authored by Hermann Mayer's avatar Hermann Mayer
Browse files

VimRC: Added new key mappings and functions for terminal openings. Updated the PHP snippets.

parent b2963bc1
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
snippet ddd
	echo '<pre>'; \Doctrine\Common\Util\Debug::dump(${1:});echo '</pre>';
snippet pve
	ini_set('xdebug.var_display_max_depth', 50);
	ini_set('xdebug.var_display_max_children', 256);
	ini_set('xdebug.var_display_max_data', 1024);
	echo '<pre>';var_dump(${1:});exit;
snippet pv
	ini_set('xdebug.var_display_max_depth', 50);
	ini_set('xdebug.var_display_max_children', 256);
	ini_set('xdebug.var_display_max_data', 1024);
	echo '<pre>';var_dump(${1:});echo '</pre>';
snippet vd
	ini_set('xdebug.var_display_max_depth', 50);
	ini_set('xdebug.var_display_max_children', 256);
	ini_set('xdebug.var_display_max_data', 1024);
	var_dump(${1:});
snippet vde
	ini_set('xdebug.var_display_max_depth', 50);
	ini_set('xdebug.var_display_max_children', 256);
	ini_set('xdebug.var_display_max_data', 1024);
	var_dump(${1:});exit;
snippet snip
	echo "\n------------------------[SNIP]------------------------\n\n";${1:}
+6 −0
Original line number Diff line number Diff line
@@ -114,3 +114,9 @@ command! -complete=shellcmd CleanJade call s:CleanJade()
command! Visual      normal! v
command! VisualLine  normal! V
command! VisualBlock execute "normal! \<C-v>"

function s:OpenTerminal()
  silent !clear
  silent execute "!i3-sensible-terminal -cd " . getcwd() . " &"
endfunction
command! -complete=shellcmd OpenTerminal call s:OpenTerminal()
+3 −0
Original line number Diff line number Diff line
@@ -258,3 +258,6 @@ cmap w!! %!sudo tee > /dev/null %
" Open the current file in a browser
nnoremap <LEADER>of :exe ':silent !firefox %'<CR>
nnoremap <LEADER>oc :exe ':silent !chromium-browser %'<CR>

" Open the cwd in an i3-sensitive terminal
nnoremap <C-Space> :OpenTerminal<CR>