Skip to content

Commit 5a1cd2e

Browse files
authored
Merge pull request #81 from TTWShell/fix/typo
Fix/typo
2 parents a250040 + 6ea832a commit 5a1cd2e

File tree

3 files changed

+37
-10
lines changed

3 files changed

+37
-10
lines changed

.travis.yml

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,35 @@ before_install:
1212
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update -qq; fi
1313

1414
install:
15-
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install -y cmake gcc-4.8 g++-4.8 clang golang; fi
16-
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export CXX="g++-4.8" CC="gcc-4.8" GOROOT="/usr/lib/go" GOPATH=$HOME/gocode PATH=$PATH:$GOPATH/bin; fi
15+
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install -y clang golang; fi
16+
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export CXX="g++-4.9" CC="gcc-4.9" GOROOT="/usr/lib/go" GOPATH=$HOME/gocode PATH=$PATH:$GOPATH/bin; fi
1717

18+
addons:
19+
apt:
20+
sources:
21+
# The Travis apt source whitelist can be found here:
22+
# https://github.com/travis-ci/apt-source-whitelist/blob/master/ubuntu.json
23+
- ubuntu-toolchain-r-test # for new libstdc++
24+
- george-edison55-precise-backports # for a more recent version of cmake (3.2.3)
25+
packages:
26+
- cmake-data
27+
- cmake
28+
# 4.9 is the first version of GCC with good enough C++11 support to build
29+
# ycmd.
30+
- g++-4.9
31+
- ninja-build
32+
# Everything below is a Python build dep (though it depends on Python
33+
# version). We need them because pyenv builds Python.
34+
- libssl-dev
35+
- zlib1g-dev
36+
- libbz2-dev
37+
- libreadline-dev
38+
- libsqlite3-dev
39+
- wget
40+
- curl
41+
- llvm
42+
- libncurses5-dev
43+
- libncursesw5-dev
1844

1945
compiler:
2046
- gcc

install.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ case $platform in
4848
echoo ">>> Install fonts for powerline ..."
4949
bash fonts/install-fonts.sh
5050
;;
51+
*)
52+
echoo "暂不支持此系统,欲使用此配置,需要先解决依赖安装的问题,欢迎提pr。"
53+
exit 1
54+
;;
5155
esac
5256

5357
sudo bash install-plugins.sh init

vimrc

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,13 @@ Plugin 'VundleVim/Vundle.vim'
1818
" async syntax checking plugin for Vim
1919
Plugin 'w0rp/ale'
2020

21-
" auto check python use pep8
22-
Plugin 'nvie/vim-flake8'
23-
2421
" Highlights trailing whitespace in red and provides
2522
Plugin 'bronson/vim-trailing-whitespace'
2623

2724
" multiple selections
2825
Plugin 'terryma/vim-multiple-cursors'
2926

30-
"" Colorthemes
27+
" Colorthemes
3128
Plugin 'altercation/vim-colors-solarized'
3229
Plugin 'jnurmine/Zenburn'
3330
Plugin 'flazz/vim-colorschemes'
@@ -63,7 +60,7 @@ Plugin 'elzr/vim-json'
6360
Plugin 'dyng/ctrlsf.vim'
6461
Plugin 'kylef/apiblueprint.vim'
6562

66-
" a Git wrapper so awesome
63+
" A Git wrapper so awesome
6764
Plugin 'tpope/vim-fugitive'
6865
" A Vim plugin which shows a git diff in the gutter (sign column) and stages/undoes hunks.
6966
Plugin 'airblade/vim-gitgutter'
@@ -128,7 +125,7 @@ let g:ale_sign_column_always = 0 " 一般需要实时检查,默认关闭
128125
let g:ale_lint_on_save = 1 " save file auto check
129126
let g:ale_lint_on_text_changed = 0 " for ale_lint_on_save = 1
130127
let g:ale_lint_on_enter = 0 " for ale_lint_on_save = 1
131-
map <F6> :ALEToggle<CR>
128+
map <F6> :ALEToggle \| echo 'g:ale_enabled =' g:ale_enabled<CR>
132129
133130
" YouCompleteMe settings
134131
let g:ycm_collect_identifiers_from_comments_and_strings = 0
@@ -188,7 +185,7 @@ EOF
188185

189186
" Ctrl-j 切换到下方的分割窗口 - Ctrl-k 切换到上方的分割窗口 - Ctrl-l
190187
" 切换到右侧的分割窗口 - Ctrl-h 切换到左侧的分割窗口
191-
"split navigations
188+
" split navigations
192189
set splitbelow
193190
set splitright
194191
nnoremap <C-J> <C-W><C-J>
@@ -209,7 +206,7 @@ map <F5> :NERDTreeToggle<CR>
209206
" NERDTree settings
210207
" 是否显示隐藏文件
211208
let NERDTreeShowHidden=0
212-
" 忽略一下文件的显示
209+
" 忽略以下文件的显示
213210
let NERDTreeIgnore=['\.pyc','\~$','\.swp','__pycache__','\.git$','\.DS_Store']
214211
" NERDTree git 扩展
215212
let g:NERDTreeIndicatorMapCustom = {

0 commit comments

Comments
 (0)