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

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

parent b2963bc1
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:}
......
......@@ -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()
......@@ -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>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment