mirror of
https://github.com/gryf/.vim.git
synced 2025-12-17 19:40:29 +01:00
hjkl is not for me :/, added snippets for debugging and logging in js
This commit is contained in:
20
.vimrc
20
.vimrc
@@ -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 {{{
|
||||
|
||||
|
||||
@@ -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};
|
||||
|
||||
Reference in New Issue
Block a user