Last active
September 22, 2017 11:44
-
-
Save slezhnin/d08110e8e49f9eccaf0aa086a1fe14bd to your computer and use it in GitHub Desktop.
My vimrc
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
" My vim config | |
" Specify a directory for plugins | |
" - For Neovim: ~/.local/share/nvim/plugged | |
" - Avoid using standard Vim directory names like 'plugin' | |
" call plug#begin('~/vimfiles/plugged') | |
call plug#begin('~/.vim/plugged') | |
" Make sure you use single quotes | |
Plug 'vim-airline/vim-airline' | |
Plug 'vim-airline/vim-airline-themes' | |
Plug 'tpope/vim-fugitive' | |
Plug 'airblade/vim-gitgutter' | |
Plug 'xolox/vim-misc' | |
Plug 'xolox/vim-shell' | |
Plug 'jreybert/vimagit' | |
Plug 'diepm/vim-rest-console' | |
Plug 'tpope/vim-surround' | |
Plug 'tomasr/molokai' | |
Plug 'flazz/vim-colorschemes' | |
Plug 'jansenfuller/crayon' | |
Plug 'agude/vim-eldar' | |
Plug 'davidklsn/vim-sialoquent' | |
Plug 'notpratheek/vim-luna' | |
Plug 'elzr/vim-json' | |
Plug 'sbdchd/neoformat' | |
Plug 'xolox/vim-easytags' | |
Plug 'ctrlpvim/ctrlp.vim' | |
Plug 'scrooloose/nerdtree' | |
Plug 'Xuyuanp/nerdtree-git-plugin' | |
Plug 'majutsushi/tagbar' | |
Plug 'airblade/vim-rooter' | |
Plug 'Yggdroot/indentLine' | |
" Plug 'vim-syntastic/syntastic' | |
" Plug 'neomake/neomake' | |
" Plug 'artur-shaik/vim-javacomplete2' | |
" OR | |
" Plug 'valloric/YouCompleteMe ' | |
" Plug 'SirVer/ultisnips' | |
" Plug 'honza/vim-snippets' | |
" All of your Plugins must be added before the following line | |
" Initialize plugin system | |
call plug#end() | |
" | |
" Brief help | |
" :PlugInstall [name ...] [#threads] Install plugins | |
" :PlugUpdate [name ...] [#threads] Install or update plugins | |
" :PlugClean[!] Remove unused directories (bang version will clean without prompt) | |
" :PlugUpgrade Upgrade vim-plug itself | |
" :PlugStatus Check the status of plugins | |
" :PlugDiff Examine changes from the previous update and the pending changes | |
" :PlugSnapshot[!] [output path] Generate script for restoring the current snapshot of the plugins | |
" | |
" Put your non-Plugin stuff after this line | |
" Syntastic options | |
set statusline+=%#warningmsg# | |
set statusline+=%{SyntasticStatuslineFlag()} | |
set statusline+=%* | |
let g:syntastic_always_populate_loc_list = 1 | |
let g:syntastic_auto_loc_list = 1 | |
let g:syntastic_check_on_open = 1 | |
let g:syntastic_check_on_wq = 0 | |
let g:ctrlp_extensions = ['tag', 'buffertag', 'dir', | |
\ 'undo', 'line', 'changes', 'mixed'] | |
" UltiSnip configuration. Do not use <tab> if you use https://github.com/Valloric/YouCompleteMe. | |
let g:UltiSnipsExpandTrigger="<tab>" | |
let g:UltiSnipsJumpForwardTrigger="<c-b>" | |
let g:UltiSnipsJumpBackwardTrigger="<c-z>" | |
" If you want :UltiSnipsEdit to split your window. | |
let g:UltiSnipsEditSplit="vertical" | |
" My settings | |
syntax on | |
let g:airline_theme='luna' | |
colorscheme luna | |
set number | |
set laststatus=2 | |
set shiftwidth=4 | |
set tabstop=4 | |
set expandtab | |
set smarttab | |
set smartindent | |
set autoindent | |
set incsearch | |
set smartcase | |
set clipboard=unnamed | |
vnoremap . :normal .<CR> | |
inoremap jk <ESC> | |
nmap <SPACE> <leader> | |
nnoremap <leader>fc :%! css-beautify<CR> | |
nnoremap <leader>fh :%! html-beautify<CR> | |
nnoremap <leader>fj :%! js-beautify<CR> | |
nnoremap <leader>t :NERDTreeToggle<CR> | |
nnoremap <leader>b :TagbarToggle<CR> | |
if has("gui_running") | |
set termguicolors | |
if has("gui_gtk2") | |
set guifont=Inconsolata\ 12 | |
elseif has("gui_macvim") | |
set guifont=Menlo\ Regular:h14 | |
elseif has("gui_win32") | |
set guifont=Consolas:h11:cDEFAULT | |
endif | |
else | |
set encoding=utf-8 | |
endif | |
" Set correct file encoding | |
set fileencodings=utf-8,cp1251 | |
" Vim-Asciidoc plugin sets compiler by default to asciidoc | |
" Here we set it to asciidoctor | |
" autocmd Filetype asciidoc compiler !asciidoctorj -r asciidoctor-diagram <afile> | |
" autocmd BufWritePost asciidoc !asciidoctorj -r asciidoctor-diagram <afile> | |
"augroup asciidoctor | |
" autocmd BufWritePost *.adoc,*asciidoc silent !start /min asciidoctorj -r asciidoctor-diagram <afile> | |
"augroup END |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment