Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
- " preamble "
- """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
- set nocompatible
- set encoding=utf-8
- " Necessary for Vundle, should be turned on after plugins setup
- filetype off
- " Use space as leader key
- nnoremap <space> <nop>
- let mapleader = "\<space>"
- """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
- " Vundle configuration "
- """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
- set rtp+=~/.vim/bundle/Vundle.vim
- call vundle#begin()
- " let Vundle manage itself
- Plugin 'VundleVim/Vundle.vim'
- "TODO: Should choose only one theme for next usage
- Plugin 'liuchengxu/space-vim-dark'
- Plugin 'rakr/vim-one'
- Plugin 'rakr/vim-two-firewatch'
- Plugin 'vim-ruby/vim-ruby'
- Plugin 'klen/python-mode'
- Plugin 'jcfaria/Vim-R-plugin'
- Plugin 'keith/swift.vim'
- Plugin 'dart-lang/dart-vim-plugin'
- Plugin 'godlygeek/tabular'
- Plugin 'plasticboy/vim-markdown'
- Plugin 'JamshedVesuna/vim-markdown-preview'
- Plugin 'lervag/vimtex'
- Plugin 'luochen1990/rainbow'
- Plugin 'vim-airline/vim-airline-themes'
- Plugin 'bling/vim-airline'
- Plugin 'tpope/vim-fugitive'
- Plugin 'lepture/vim-velocity'
- Plugin 'scrooloose/nerdtree'
- Plugin 'scrooloose/nerdcommenter'
- Plugin 'danro/rename.vim'
- call vundle#end()
- """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
- " turn on filetype plugins "
- """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
- filetype plugin on
- filetype indent plugin on
- """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
- " Color Scheme "
- """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
- "set t_Co=256
- set termguicolors
- syntax enable
- "if (has('termguicolors'))
- " set termguicolors
- "endif
- """ One color theme
- set background=dark
- colorscheme one
- let g:one_allow_italics = 1
- """ Two Firewatch color theme
- "set background=dark
- "let g:two_firewatch_italics=1
- "colo two-firewatch
- set cursorline
- """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
- " vimrc augroup "
- """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
- " TODO: This custom group should use more precisely
- augroup vimrc
- autocmd!
- augroup END
- autocmd! vimrc bufwritepost .vimrc source %
- "" Commenting blocks of code
- autocmd FileType c,cpp,m,java,scala,swift let b:comment_leader = '// '
- autocmd FileType sh,ruby,python let b:comment_leader = '# '
- autocmd FileType conf,fstab let b:comment_leader = '# '
- autocmd FileType tex let b:comment_leader = '% '
- autocmd FileType vim let b:comment_leader = '" '
- """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
- " General settings "
- """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
- "set number
- set clipboard=unnamed
- set backspace=indent,eol,start
- set exrc
- set secure
- set autoread
- " Tabulation
- set tabstop=4
- set softtabstop=4
- set shiftwidth=4
- set shiftround
- set expandtab
- " Indentation
- set nowrap
- set autoindent
- set smartindent
- set colorcolumn=120
- set showmatch
- " Searching
- set hlsearch
- set incsearch
- set ignorecase
- set smartcase
- set showcmd
- set ruler
- set rulerformat=%-13.(%l,%c%V%)\ %P
- set textwidth=120
- set wildmenu
- set wildmode=longest:list,full
- set listchars=tab:▸\ ,eol:¬
- " The order of using encodings and files formats
- set ffs=unix,dos,mac
- set fencs=utf-8,cp1251,koi8-r,ucs-2,cp-866
- " Set up mouse in all vim modes
- if has('mouse')
- set mouse=a
- endif
- " macOS only
- if has("mac") || has("macunix")
- set ambiwidth=double
- endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement