1
0
mirror of https://github.com/gryf/.vim.git synced 2025-12-17 11:30:29 +01:00

hjkl is not for me :/, added snippets for debugging and logging in js

This commit is contained in:
2012-01-16 19:00:54 +01:00
parent 36db7d93ff
commit 72c962cf50
2 changed files with 14 additions and 20 deletions

20
.vimrc
View File

@@ -220,26 +220,6 @@ map ]b :call OpenInWebBrowser()<cr>
nnoremap <silent> <C-l> :nohl<CR>:syn sync fromstart<CR><C-l>
map <F3> :call <SID>ChangeVCS()<cr>
map <F4> :call <SID>ToggleHex()<cr>
"Let me learn hjkl more in normal and visual modes. Leave insert mode alone
"(for now).
nnoremap <Up> ""
nnoremap <Up> <Esc>
nnoremap <Down> ""
nnoremap <Down> <Esc>
nnoremap <Left> ""
nnoremap <Left> <Esc>
nnoremap <Right> ""
nnoremap <Right> <Esc>
vnoremap <Up> ""
vnoremap <Up> <Esc>
vnoremap <Down> ""
vnoremap <Down> <Esc>
vnoremap <Left> ""
vnoremap <Left> <Esc>
vnoremap <Right> ""
vnoremap <Right> <Esc>
" }}}
" FUNCTIONS: usefull functions for all of th files {{{

View File

@@ -72,3 +72,17 @@ snippet get
# Get Element
snippet gett
getElementBy${1:Id}('${2}')${3}
snippet dbg
debugger;
snippet ass
console.assert(${1}, ${2})${3};
snippet log
console.log('${1}')${2};
snippet debug
console.debug('${1}')${2};
snippet info
console.info('${1}')${2};
snippet warn
console.warn('${1}')${2};
snippet tbl
console.table(${1})${2};