-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
90 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
" Required by pathogen to load all vim plugin available in bundle directory | ||
call pathogen#infect() | ||
" syntax on and filetype should be after calling to pathogen | ||
syntax on " | ||
filetype plugin indent on " all file type plugin will be available | ||
set ruler " show the line number on the bar | ||
set autoread " watch for file change | ||
set number " set line number | ||
set showcmd | ||
set nocompatible " vim, not vi | ||
set autoindent smartindent " enable auto/smart indentation | ||
set expandtab " convert spaces to tabs | ||
set smarttab " tab and backspace are smart .. I don't know what does it means | ||
set tabstop=2 " 2 spaces for one tab | ||
set shiftwidth=2 " 2 spaces for indentation | ||
set noerrorbells | ||
set linebreak | ||
set cmdheight=2 " set command line 2 lines high | ||
set undolevels=1000 | ||
set incsearch " incremental search | ||
set ignorecase " search ignoring case | ||
set hlsearch " highlight search | ||
set showmatch " show matching bracket | ||
set mouse=a " enable mouse support | ||
set mousehide " hide mouse when typing | ||
set backup | ||
set backupdir=~/.backup | ||
set history=200 | ||
map Y y$ " yank from cursor to end of line | ||
imap jj <Esc> " map jj to escape | ||
map <C-tab> gt " control tab for switching tab | ||
map <C-S-tab> gT | ||
map tt :NERDTreeToggle<cr> | ||
nmap <Space> <C-w><C-w> " switching between windows.. | ||
colorscheme molokai |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,12 @@ | ||
{"plugin":[ | ||
{"git":"git://github.com/kchmck/vim-coffee-script.git"}, | ||
{"git":"git://github.com/scrooloose/nerdtree.git"} | ||
{"git":"git://github.com/scrooloose/nerdtree.git"}, | ||
{"git":"git://github.com/pangloss/vim-javascript.git"}, | ||
{"git":"git://github.com/tpope/vim-surround.git"}, | ||
{"git":"git://github.com/ervandew/supertab.git"}, | ||
{"git":"git://github.com/tpope/vim-markdown.git"}, | ||
{"git":"git://github.com/Raimondi/delimitMate.git"}, | ||
{"git":"git://github.com/tpope/vim-vividchalk.git"}, | ||
{"git":"git://github.com/tomasr/molokai.git"} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
https = require 'https' | ||
fs = require 'fs' | ||
exec = require('child_process').exec | ||
|
||
options = { | ||
host: 'raw.github.com', | ||
port: 443, | ||
path: '/tpope/vim-pathogen/HEAD/autoload/pathogen.vim' | ||
} | ||
|
||
https.get options, (res)-> | ||
res.on 'data',(d)-> | ||
fd = fs.openSync 'pathogen.vim', 'w' | ||
fs.writeSync fd, d.toString() | ||
fs.closeSync fd | ||
home = process.env.HOME | ||
config = fs.readFileSync "config.json" | ||
configJson = JSON.parse(config) | ||
for plugin in configJson["plugin"] | ||
console.log "Cloning #{plugin['git']}" | ||
script = "cd #{home}/.vim/bundle && git clone #{plugin['git']}" | ||
child = exec script,(error,stdout,stderr)-> | ||
if error is not null | ||
console.log "git cloning failed : #{error}" | ||
else | ||
console.log "git cloning successful" |