Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

vim + bash settings

  • Loading branch information...
commit 944921477f4ae031a4a2da91cf6a6ca17ecb2323 1 parent 818c0da
@gabesoft authored
View
2  .bashrc
@@ -110,7 +110,7 @@ alias lDir='ls -Al | grep "^d"' # show only directories (include hidden)
function delrec() {
- find . -iname "$1" -print0 | xargs -0 rm -rfv ;
+ find . -name "$1" -print0 | xargs -0 rm -rfv ;
}
alias delf='delrec' # delete files matching pattern in all subfolders recursively
View
4 .jslintrc
@@ -1,9 +1,9 @@
/*jslint
- evil: true, browser: true, nomen: true, onevar: false, regexp: true, strict: false, white: false,
+ evil: true, browser: true, nomen: false, onevar: false, regexp: true, strict: false, white: false,
passfail: false, plusplus: true, fragment: true, eqeqeq: true, debug: false, devel: true,
undef: false
*/
-/* global jQuery, $, Backbone */
+/* global jQuery, $, Backbone, module, require, __dirname */
/* vim: set ft=javascript: */
View
11 .vim/bundle/snipmate.vim/snippets/javascript.snippets
@@ -10,7 +10,9 @@ snippet fun
}
# Anonymous Function
snippet f
- function(${1}) {${3}}${2:);}
+ function(${1}) {
+ ${3}
+ }${2:);}
# if
snippet if
if (${1:true}) {
@@ -67,6 +69,11 @@ snippet do
do {
${2:/* code */}
} while (${1:/* condition */});
+# object
+snippet o
+ var ${1:obj} = {
+ ${2}
+ };
# object method
snippet :f
${1:method_name}: function(${2:attribute}) {
@@ -93,7 +100,7 @@ snippet lg
# test
snippet it
it('should ${1:do}', function(${2:done}) {
-
+ ${3}
});
# comment
snippet /
View
4 .vimrc
@@ -368,8 +368,8 @@ inoremap <C-U> <C-G>u<C-U>
inoremap <C-W> <C-G>u<C-W>
" indentation (preserves cursor position)
-map <silent> <F6> mmgg=G'm
-imap <silent> <F6> <ESC> mmgg=G'm
+map <silent> <F6> mmgg=G'mzz
+imap <silent> <F6> <ESC> mmgg=G'mzz
" ,# : add line numbers to selected lines
vmap <leader># :s/^/\=(line(".") - line("'<") + 1).".\t"/<CR>
View
6 .vimrc.view
@@ -123,12 +123,12 @@ normal zo
normal zo
462
normal zo
-let s:l = 244 - ((30 * winheight(0) + 30) / 60)
+let s:l = 372 - ((18 * winheight(0) + 17) / 35)
if s:l < 1 | let s:l = 1 | endif
exe s:l
normal! zt
-244
-normal! 016l
+372
+normal! 034l
let &so = s:so_save | let &siso = s:siso_save
doautoall SessionLoadPost
" vim: set ft=vim :
Please sign in to comment.
Something went wrong with that request. Please try again.