.vimrc

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
set nu
set nocompatible              " be iMproved, required
filetype off                  " required
syntax enable
set background=dark
colorscheme solarized8_dark
set t_Co=256
set encoding=utf-8
set ambiwidth=double
set backspace=indent,eol,start



" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()

Bundle 'Blackrush/vim-gocode'

" 目录树
Plugin 'preservim/nerdtree'

" 状态栏
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'


call vundle#end()            " required
filetype plugin indent on    " required

"---------------alrLine Config--------------
let g:airline#extensions#tabline#enabled = 1
let g:airline#extensions#tabline#buffer_nr_show=1
"let g:airline_powerline_fonts = 1      "安装字体后加入这个配置参数才能达到预期显示效果
let g:airline_theme="luna"


" Go代码补全
imap <F3> <C-x><C-o>

map <F1> :GoDef<CR>
map <F2> :GoDoc<CR>
map <F5> :GoBuild<CR>
map <F6> :GoRun<CR>

" 打开目录树
map <C-n> :NERDTreeToggle<CR>
map <C-b><C-n> :bn<CR> " 下一个Buffer
map <C-b><C-p> :bp<CR> " 上一个Buffer

.screenrc(让screen支持256color)

1
2
3
attrcolor b ".I"
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
defbce "on"