xl ревизій цього gist 1 month ago. До ревизії
1 file changed, 80 insertions
vimrc.md(файл створено)
| @@ -0,0 +1,80 @@ | |||
| 1 | + | ``` | |
| 2 | + | set nocompatible | |
| 3 | + | ||
| 4 | + | call plug#begin() | |
| 5 | + | ||
| 6 | + | Plug 'vim-scripts/Mustang2' | |
| 7 | + | Plug 'vim-airline/vim-airline' | |
| 8 | + | Plug 'vim-airline/vim-airline-themes' | |
| 9 | + | ||
| 10 | + | Plug 'tpope/vim-sensible' | |
| 11 | + | Plug 'jeffkreeftmeijer/vim-numbertoggle' | |
| 12 | + | Plug 'scrooloose/syntastic' | |
| 13 | + | ||
| 14 | + | call plug#end() | |
| 15 | + | ||
| 16 | + | " syntastic config | |
| 17 | + | " set statusline+=%#warningmsg# | |
| 18 | + | " set statusline+=%{SyntasticStatuslineFlag()} | |
| 19 | + | " set statusline+=%* | |
| 20 | + | ||
| 21 | + | let g:syntastic_always_populate_loc_list = 1 | |
| 22 | + | let g:syntastic_auto_loc_list = 1 | |
| 23 | + | let g:syntastic_check_on_open = 0 | |
| 24 | + | let g:syntastic_check_on_wq = 1 | |
| 25 | + | let g:syntastic_php_checkers = ['php'] | |
| 26 | + | " let g:syntastic_javascript_checkers = ['eslint'] | |
| 27 | + | ||
| 28 | + | " airline configs | |
| 29 | + | let g:airline_theme = 'base16_chalk' | |
| 30 | + | let g:airline_powerline_fonts = 1 | |
| 31 | + | let g:airline#extensions#tabline#enabled = 1 | |
| 32 | + | let g:airline#extensions#tabline#formatter = 'unique_tail_improved' | |
| 33 | + | ||
| 34 | + | ||
| 35 | + | " let g:is_posix = 1 " Better highlighting of shell files | |
| 36 | + | ||
| 37 | + | colorscheme Mustang | |
| 38 | + | " set background=dark | |
| 39 | + | ||
| 40 | + | set encoding=utf-8 | |
| 41 | + | set cursorline | |
| 42 | + | set nu rnu | |
| 43 | + | ||
| 44 | + | " searching | |
| 45 | + | " set hlsearch " Highlight searches | |
| 46 | + | " set incsearch " Highlight search results instantly | |
| 47 | + | " set ignorecase " Ignore case | |
| 48 | + | " set smartcase " Override 'ignorecase' option if the search contains upper case characters. | |
| 49 | + | ||
| 50 | + | " indentation | |
| 51 | + | filetype plugin indent on " Enable automatic filetype detection, filetype-specific plugins/indentation | |
| 52 | + | autocmd Filetype python setl et tabstop=4 sw=4 sts=4 " python indention | |
| 53 | + | autocmd Filetype json setl et tabstop=4 sw=4 sts=4 " json indention | |
| 54 | + | ||
| 55 | + | set shiftwidth=2 " Number of spaces to use in each autoindent step | |
| 56 | + | set tabstop=2 " Two tab spaces | |
| 57 | + | set softtabstop=2 " Number of spaces to skip or insert when <BS>ing or <Tab>ing | |
| 58 | + | " set expandtab " Spaces instead of tabs for better cross-editor compatibility | |
| 59 | + | " set autoindent " Keep the indent when creating a new line | |
| 60 | + | set smarttab " Use shiftwidth and softtabstop to insert or delete (on <BS>) blanks | |
| 61 | + | " set cindent " Recommended seting for automatic C-style indentation | |
| 62 | + | " set autoindent " Automatic indentation in non-C files | |
| 63 | + | ||
| 64 | + | set list lcs=tab:│\ | |
| 65 | + | hi SpecialKey ctermfg=1 guifg=#111111 | |
| 66 | + | call matchadd('SpecialKey', '[\│]') | |
| 67 | + | hi Conceal ctermbg=NONE guibg=NONE | |
| 68 | + | call matchadd('Conceal', '[ \t]') | |
| 69 | + | set list! | |
| 70 | + | ||
| 71 | + | nnoremap <f5> :set list!<cr> | |
| 72 | + | ||
| 73 | + | ||
| 74 | + | " Misc | |
| 75 | + | " set nowrap " I don't always wrap lines... | |
| 76 | + | " set linebreak " ...but when I do, I wrap whole words. | |
| 77 | + | " set t_Co=256 " Support for xterm with 256 colors | |
| 78 | + | " set number " Show line numbers | |
| 79 | + | " set ruler " Show ruler | |
| 80 | + | set noswapfile " Don't create annoying *.swp files | |
Новіше
Пізніше