SHOW:
|
|
- or go back to the newest paste.
| 1 | - | set nocompatible " be iMproved, required |
| 1 | + | set nocompatible " be iMproved, required |
| 2 | - | set encoding=utf-8 |
| 2 | + | set encoding=utf-8 |
| 3 | - | set cursorline " Enable highlight current line |
| 3 | + | set cursorline " Enable highlight current line |
| 4 | - | set colorcolumn=120 " Color column 120 |
| 4 | + | set colorcolumn=120 " Color column 120 |
| 5 | - | set laststatus=2 " Always show status bar |
| 5 | + | set laststatus=2 " Always show status bar |
| 6 | - | set noshowcmd " Hide typed command at statusbar |
| 6 | + | set noshowcmd " Hide typed command at statusbar |
| 7 | - | set noswapfile " Disable swp file |
| 7 | + | set noswapfile " Disable swp file |
| 8 | - | set relativenumber " Show relative line numbers |
| 8 | + | set relativenumber " Show relative line numbers |
| 9 | - | |
| 9 | + | |
| 10 | - | filetype off " required |
| 10 | + | filetype off " required |
| 11 | - | |
| 11 | + | |
| 12 | - | " set the runtime path to include Vundle and initialize |
| 12 | + | " set the runtime path to include Vundle and initialize |
| 13 | - | set rtp+=~/.vim/bundle/Vundle.vim |
| 13 | + | set rtp+=~/.vim/bundle/Vundle.vim |
| 14 | - | call vundle#begin() |
| 14 | + | call vundle#begin() |
| 15 | - | " alternatively, pass a path where Vundle should install plugins |
| 15 | + | " alternatively, pass a path where Vundle should install plugins |
| 16 | - | "call vundle#begin('~/some/path/here') |
| 16 | + | "call vundle#begin('~/some/path/here')
|
| 17 | - | |
| 17 | + | |
| 18 | - | " let Vundle manage Vundle, required |
| 18 | + | " let Vundle manage Vundle, required |
| 19 | - | Plugin 'VundleVim/Vundle.vim' |
| 19 | + | Plugin 'VundleVim/Vundle.vim' |
| 20 | - | |
| 20 | + | |
| 21 | - | "Numbers |
| 21 | + | "Numbers |
| 22 | - | Plugin 'myusuf3/numbers.vim' |
| 22 | + | Plugin 'myusuf3/numbers.vim' |
| 23 | - | |
| 23 | + | |
| 24 | - | " Syntastic |
| 24 | + | " Syntastic |
| 25 | - | Plugin 'vim-syntastic/syntastic' |
| 25 | + | Plugin 'vim-syntastic/syntastic' |
| 26 | - | |
| 26 | + | |
| 27 | - | " GO Lang Support |
| 27 | + | " GO Lang Support |
| 28 | - | Plugin 'fatih/vim-go' |
| 28 | + | Plugin 'fatih/vim-go' |
| 29 | - | |
| 29 | + | |
| 30 | - | " Nerdtree view files |
| 30 | + | " Nerdtree view files |
| 31 | - | Plugin 'scrooloose/nerdtree' |
| 31 | + | Plugin 'scrooloose/nerdtree' |
| 32 | - | |
| 32 | + | |
| 33 | - | Plugin 'tpope/vim-fugitive' |
| 33 | + | Plugin 'tpope/vim-fugitive' |
| 34 | - | |
| 34 | + | |
| 35 | - | Plugin 'Lokaltog/powerline', {'rtp': 'powerline/bindings/vim/'} |
| 35 | + | Plugin 'Lokaltog/powerline', {'rtp': 'powerline/bindings/vim/'}
|
| 36 | - | |
| 36 | + | |
| 37 | - | Plugin 'altercation/vim-colors-solarized' |
| 37 | + | Plugin 'altercation/vim-colors-solarized' |
| 38 | - | |
| 38 | + | |
| 39 | - | " All of your Plugins must be added before the following line |
| 39 | + | " All of your Plugins must be added before the following line |
| 40 | - | call vundle#end() " required |
| 40 | + | call vundle#end() " required |
| 41 | - | filetype plugin indent on " required |
| 41 | + | filetype plugin indent on " required |
| 42 | - | |
| 42 | + | |
| 43 | - | |
| 43 | + | |
| 44 | - | " Brief help |
| 44 | + | " Brief help |
| 45 | - | " :PluginList - lists configured plugins |
| 45 | + | " :PluginList - lists configured plugins |
| 46 | - | " :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate |
| 46 | + | " :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate |
| 47 | - | " :PluginSearch foo - searches for foo; append `!` to refresh local cache |
| 47 | + | " :PluginSearch foo - searches for foo; append `!` to refresh local cache |
| 48 | - | " :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal |
| 48 | + | " :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal |
| 49 | - | " |
| 49 | + | " |
| 50 | - | " see :h vundle for more details or wiki for FAQ |
| 50 | + | " see :h vundle for more details or wiki for FAQ |
| 51 | - | " Put your non-Plugin stuff after this line |
| 51 | + | " Put your non-Plugin stuff after this line |
| 52 | - | |
| 52 | + | |
| 53 | - | " Solarized config |
| 53 | + | " Solarized config |
| 54 | - | syntax enable |
| 54 | + | syntax enable |
| 55 | - | set background=dark |
| 55 | + | set background=dark |
| 56 | - | colorscheme solarized |
| 56 | + | colorscheme solarized |
| 57 | - | |
| 57 | + | |
| 58 | - | if has('gui_running') |
| 58 | + | if has('gui_running')
|
| 59 | - | set background=light |
| 59 | + | set background=light |
| 60 | - | else |
| 60 | + | else |
| 61 | - | set background=dark |
| 61 | + | set background=dark |
| 62 | - | endif |
| 62 | + | endif |
| 63 | - | |
| 63 | + | |
| 64 | - | let g:solarized_termcolors=256 |
| 64 | + | let g:solarized_termcolors=256 |
| 65 | - | |
| 65 | + | |
| 66 | - | " Syntastic config |
| 66 | + | " Syntastic config |
| 67 | - | set statusline+=%#warningmsg# |
| 67 | + | set statusline+=%#warningmsg# |
| 68 | - | set statusline+=%{SyntasticStatuslineFlag()} |
| 68 | + | set statusline+=%{SyntasticStatuslineFlag()}
|
| 69 | - | set statusline+=%* |
| 69 | + | set statusline+=%* |
| 70 | - | |
| 70 | + | |
| 71 | - | let g:syntastic_always_populate_loc_list = 1 |
| 71 | + | let g:syntastic_always_populate_loc_list = 1 |
| 72 | - | let g:syntastic_auto_loc_list = 1 |
| 72 | + | let g:syntastic_auto_loc_list = 1 |
| 73 | - | let g:syntastic_check_on_open = 1 |
| 73 | + | let g:syntastic_check_on_open = 1 |
| 74 | - | let g:syntastic_check_on_wq = 0 |
| 74 | + | let g:syntastic_check_on_wq = 0 |
| 75 | - | |
| 75 | + | |
| 76 | - | " Powerline |
| 76 | + | " Powerline |
| 77 | - | "set laststatus=2 |
| 77 | + | "set laststatus=2 |
| 78 | - | "set showtabline=2 |
| 78 | + | "set showtabline=2 |
| 79 | - | "set noshowmode |
| 79 | + | "set noshowmode |
| 80 | - | set t_Co=256 |
| 80 | + | set t_Co=256 |
| 81 | - | let g:Powerline_symbols = 'fancy' |
| 81 | + | let g:Powerline_symbols = 'fancy' |
| 82 | - | |
| 82 | + | |
| 83 | - | " Tab navigation |
| 83 | + | " Tab navigation |
| 84 | - | nmap <Leader>te :tabnew<CR>:edit<Space> |
| 84 | + | nmap <Leader>te :tabnew<CR>:edit<Space> |
| 85 | - | nmap <Leader>to :tabnew<CR> |
| 85 | + | nmap <Leader>to :tabnew<CR> |
| 86 | - | nmap <Tab> gt |
| 86 | + | nmap <Tab> gt |
| 87 | nmap <S-Tab> gT |