forked from moacirosa/vim
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
14 changed files
with
137 additions
and
0 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,30 @@ | ||
# Installs extensions and compiles things that need compiling. | ||
# | ||
# | ||
help: | ||
@echo "install - install + compile native things." | ||
@echo "update - Download update for all plugins." | ||
|
||
install: symlink submodules commandt fonts | ||
|
||
submodules: | ||
git submodule init | ||
git submodule update | ||
|
||
commandt: | ||
cd src/bundle/Command-T/ruby/command-t/;\ | ||
/usr/bin/ruby extconf.rb;\ | ||
make clean && make | ||
|
||
update: | ||
git submodule foreach git pull origin master | ||
|
||
symlink: | ||
ln -sf ~+/src/vimrc ~/.vimrc | ||
ln -sf ~+/src/gvimrc ~/.gvimrc | ||
ln -sf ~+/src/vim ~/.vim | ||
|
||
fonts: | ||
mkdir -p /usr/share/fonts/truetype/font-install | ||
cp bin/Monaco.ttf /usr/share/fonts/truetype/font-install/Monaco.ttf | ||
fc-cache -fv |
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,58 @@ | ||
"" Pathogen | ||
|
||
call pathogen#infect() | ||
|
||
filetype plugin on | ||
au FileType c,vim,lisp filetype indent on | ||
|
||
|
||
"" General settings | ||
|
||
syntax enable | ||
|
||
set background=dark | ||
|
||
colorscheme solarized | ||
|
||
set tabstop=4 | ||
set expandtab | ||
set shiftwidth=4 | ||
set linespace=5 | ||
set autoindent | ||
set smartindent | ||
set nowrap | ||
set number | ||
set ignorecase | ||
|
||
set guioptions-=T "remove toolbar | ||
set guifont=Monaco | ||
|
||
"" Some maps | ||
|
||
nmap <silent> <F7> :NERDTreeToggle<CR> | ||
nmap <silent> <F8> :Tlist<CR> | ||
let mapleader = "," | ||
|
||
"" Autocomplete | ||
|
||
autocmd FileType javascript set omnifunc=javascriptcomplete#CompleteJS | ||
autocmd FileType html set omnifunc=htmlcomplete#CompleteTags | ||
autocmd FileType css set omnifunc=csscomplete#CompleteCSS | ||
autocmd FileType xml set omnifunc=xmlcomplete#CompleteTags | ||
autocmd FileType php set omnifunc=phpcomplete#CompletePHP | ||
|
||
"" Syntax | ||
|
||
au BufNewFile,BufRead *.less set filetype=less | ||
|
||
"" Code Standard | ||
|
||
let g:syntastic_phpcs_conf = "--standard=CakePHPPear" | ||
|
||
if has("gui_running") | ||
" GUI is running or is about to start. | ||
" Maximize gvim window. | ||
set lines=40 columns=205 | ||
endif | ||
|
File renamed without changes.
Submodule command-t
updated
from 000000 to 07027c
Submodule delimitMate
updated
from 000000 to 0b34ae
File renamed without changes.
Submodule git-vim
updated
from 000000 to 74d01a
Submodule nerdtree
updated
from 000000 to 678bb2
Submodule snipmate.vim
updated
from 000000 to f5a75d
Submodule syntastic
updated
from 000000 to ed515f
Submodule taglist
updated
from 000000 to 53041f
Submodule vim-colors-solarized
updated
from 000000 to 528a59
Submodule vim-markdown
updated
from 000000 to 10073c
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,49 @@ | ||
"" Pathogen | ||
|
||
call pathogen#infect() | ||
|
||
filetype plugin on | ||
au FileType c,vim,lisp filetype indent on | ||
|
||
|
||
"" General settings | ||
|
||
syntax enable | ||
|
||
set background=dark | ||
|
||
colorscheme solarized | ||
|
||
set tabstop=4 | ||
set expandtab | ||
set shiftwidth=4 | ||
set linespace=5 | ||
set autoindent | ||
set smartindent | ||
set nowrap | ||
set number | ||
set ignorecase | ||
|
||
"" Some maps | ||
|
||
nmap <silent> <F7> :NERDTreeToggle<CR> | ||
nmap <silent> <F8> :Tlist<CR> | ||
let mapleader = "," | ||
|
||
"" Autocomplete | ||
|
||
autocmd FileType javascript set omnifunc=javascriptcomplete#CompleteJS | ||
autocmd FileType html set omnifunc=htmlcomplete#CompleteTags | ||
autocmd FileType css set omnifunc=csscomplete#CompleteCSS | ||
autocmd FileType xml set omnifunc=xmlcomplete#CompleteTags | ||
autocmd FileType php set omnifunc=phpcomplete#CompletePHP | ||
|
||
"" Syntax | ||
|
||
au BufNewFile,BufRead *.less set filetype=less | ||
|
||
"" Code Standard | ||
|
||
let g:syntastic_phpcs_conf = "--standard=CakePHPPear" | ||
|