mirror of
https://github.com/Relintai/dotfiles.git
synced 2024-11-19 02:47:19 +01:00
Added my vimrc.
This commit is contained in:
commit
094e19cf43
173
.vimrc
Normal file
173
.vimrc
Normal file
@ -0,0 +1,173 @@
|
|||||||
|
set nocompatible " be iMproved, required
|
||||||
|
filetype off " required
|
||||||
|
set exrc
|
||||||
|
|
||||||
|
set encoding=UTF-8
|
||||||
|
|
||||||
|
set rtp+=~/.vim/bundle/Vundle.vim
|
||||||
|
call vundle#begin()
|
||||||
|
|
||||||
|
" ==== plugin manager
|
||||||
|
Plugin 'VundleVim/Vundle.vim'
|
||||||
|
|
||||||
|
" ==== helpers
|
||||||
|
Plugin 'vim-scripts/L9'
|
||||||
|
|
||||||
|
" ==== File tree
|
||||||
|
Plugin 'scrooloose/nerdtree'
|
||||||
|
|
||||||
|
" ==== Completion
|
||||||
|
"Plugin 'Valloric/YouCompleteMe'
|
||||||
|
|
||||||
|
" ==== Git
|
||||||
|
Plugin 'airblade/vim-gitgutter'
|
||||||
|
Plugin 'tpope/vim-fugitive'
|
||||||
|
|
||||||
|
" ==== syntax helpers
|
||||||
|
Plugin 'scrooloose/syntastic'
|
||||||
|
Plugin 'tpope/vim-surround'
|
||||||
|
Plugin 'cakebaker/scss-syntax.vim'
|
||||||
|
Plugin 'othree/yajs.vim'
|
||||||
|
Plugin 'mitsuhiko/vim-jinja'
|
||||||
|
Plugin 'octol/vim-cpp-enhanced-highlight'
|
||||||
|
Plugin 'ap/vim-css-color'
|
||||||
|
Plugin 'Vimjas/vim-python-pep8-indent'
|
||||||
|
Plugin 'python-rope/rope'
|
||||||
|
Plugin 'python-rope/ropemode'
|
||||||
|
Plugin 'python-rope/ropevim'
|
||||||
|
Plugin 'klen/pylama'
|
||||||
|
Plugin 'calviken/vim-gdscript3'
|
||||||
|
|
||||||
|
" ==== moving / searching
|
||||||
|
Plugin 'easymotion/vim-easymotion'
|
||||||
|
Plugin 'ctrlpvim/ctrlp.vim'
|
||||||
|
Plugin 'ervandew/supertab'
|
||||||
|
Plugin 'terryma/vim-multiple-cursors'
|
||||||
|
|
||||||
|
" ==== snippets
|
||||||
|
"Plugin 'SirVer/ultisnips'
|
||||||
|
|
||||||
|
" Status bar on bottom
|
||||||
|
"Plugin 'bling/vim-airline'
|
||||||
|
Plugin 'vim-airline/vim-airline'
|
||||||
|
Plugin 'vim-airline/vim-airline-themes'
|
||||||
|
|
||||||
|
" ==== PLUGIN THEMES
|
||||||
|
Plugin 'morhetz/gruvbox'
|
||||||
|
Plugin 'Nequo/vim-allomancer'
|
||||||
|
Plugin 'tjammer/blayu.vim'
|
||||||
|
Plugin 'nightsense/seagrey'
|
||||||
|
Plugin 'beikome/cosme.vim'
|
||||||
|
Plugin 'maksimr/Lucius2'
|
||||||
|
Plugin 'nightsense/cosmic_latte'
|
||||||
|
Plugin 'scottymoon/vim-twilight'
|
||||||
|
Plugin 'fatih/molokai'
|
||||||
|
Plugin 'DrXVII/vim_colors'
|
||||||
|
Plugin 'marlun/vim-starwars'
|
||||||
|
|
||||||
|
" ==== ICONS
|
||||||
|
Plugin 'ryanoasis/vim-devicons'
|
||||||
|
|
||||||
|
Plugin 'Valloric/YouCompleteMe'
|
||||||
|
|
||||||
|
call vundle#end()
|
||||||
|
filetype plugin indent on
|
||||||
|
|
||||||
|
" ==== Colors and other basic settings
|
||||||
|
"colorscheme gruvbox
|
||||||
|
"colorscheme blayu
|
||||||
|
"colorscheme seagrey-light
|
||||||
|
colorscheme elflord
|
||||||
|
set guifont=Monospace\ 10
|
||||||
|
set fillchars+=vert:\$
|
||||||
|
syntax enable
|
||||||
|
set background=dark
|
||||||
|
"set background=light
|
||||||
|
set ruler
|
||||||
|
set hidden
|
||||||
|
set number
|
||||||
|
set laststatus=2
|
||||||
|
set smartindent
|
||||||
|
set st=4 sw=4 et
|
||||||
|
set shiftwidth=4
|
||||||
|
set tabstop=4
|
||||||
|
let &colorcolumn="80"
|
||||||
|
:set guioptions-=m "remove menu bar
|
||||||
|
:set guioptions-=T "remove toolbar
|
||||||
|
:set guioptions-=r "remove right-hand scroll bar
|
||||||
|
:set guioptions-=L "remove left-hand scroll bar
|
||||||
|
:set lines=999 columns=999
|
||||||
|
|
||||||
|
" ==== NERDTREE
|
||||||
|
let NERDTreeIgnore = ['__pycache__', '\.pyc$', '\.o$', '\.so$', '\.a$', '\.swp', '*\.swp', '\.swo', '\.swn', '\.swh', '\.swm', '\.swl', '\.swk', '\.sw*$', '[a-zA-Z]*egg[a-zA-Z]*', '.DS_Store']
|
||||||
|
|
||||||
|
let NERDTreeShowHidden=1
|
||||||
|
let g:NERDTreeWinPos="left"
|
||||||
|
let g:NERDTreeDirArrows=0
|
||||||
|
map <C-t> :NERDTreeToggle<CR>
|
||||||
|
|
||||||
|
" ==== Syntastic
|
||||||
|
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
|
||||||
|
set statusline+=%#warningmsg#
|
||||||
|
set statusline+=%{SyntasticStatuslineFlag()}
|
||||||
|
set statusline+=%*
|
||||||
|
let g:syntastic_javascript_checkers = ['eslint']
|
||||||
|
let g:syntastic_javascript_mri_args = "--config=$HOME/.jshintrc"
|
||||||
|
let g:syntastic_python_checkers = [ 'pylint', 'flake8', 'pep8', 'python']
|
||||||
|
let g:syntastic_yaml_checkers = ['jsyaml']
|
||||||
|
let g:syntastic_html_tidy_exec = 'tidy5'
|
||||||
|
|
||||||
|
" === flake8
|
||||||
|
let g:flake8_show_in_file=1
|
||||||
|
|
||||||
|
" ==== snippets
|
||||||
|
" If you want :UltiSnipsEdit to split your window.
|
||||||
|
let g:UltiSnipsEditSplit="vertical"
|
||||||
|
|
||||||
|
" make YCM compatible with UltiSnips (using supertab)
|
||||||
|
let g:ycm_key_list_select_completion = ['<C-n>', '<Down>']
|
||||||
|
let g:ycm_key_list_previous_completion = ['<C-p>', '<Up>']
|
||||||
|
let g:SuperTabDefaultCompletionType = '<C-n>'
|
||||||
|
|
||||||
|
" better key bindings for UltiSnipsExpandTrigger
|
||||||
|
let g:UltiSnipsExpandTrigger = "<tab>"
|
||||||
|
let g:UltiSnipsJumpForwardTrigger = "<tab>"
|
||||||
|
let g:UltiSnipsJumpBackwardTrigger = "<s-tab>"
|
||||||
|
|
||||||
|
" ==== Easymotion
|
||||||
|
let g:EasyMotion_do_mapping = 0
|
||||||
|
let g:EasyMotion_smartcase = 1
|
||||||
|
nmap f <Plug>(easymotion-s)
|
||||||
|
|
||||||
|
" ==== moving around
|
||||||
|
nmap <silent> <A-Up> :wincmd k<CR>
|
||||||
|
nmap <silent> <A-Down> :wincmd j<CR>
|
||||||
|
nmap <silent> <A-Left> :wincmd h<CR>
|
||||||
|
nmap <silent> <A-Right> :wincmd l<CR>
|
||||||
|
|
||||||
|
" ==== disable mouse
|
||||||
|
"set mouse=c
|
||||||
|
|
||||||
|
" ==== disable swap file warning
|
||||||
|
set shortmess+=A
|
||||||
|
|
||||||
|
" ==== custom commands
|
||||||
|
command JsonPretty execute ":%!python -m json.tool"
|
||||||
|
set secure
|
||||||
|
" ==== Windows Backspace fix
|
||||||
|
:set backspace=indent,eol,start
|
||||||
|
|
||||||
|
" ==== Airline
|
||||||
|
let g:airline_theme='papercolor'
|
||||||
|
let g:airline#extensions#tabline#enabled = 1
|
||||||
|
let g:airline#extensions#tabline#left_alt_sep = '>'
|
||||||
|
|
||||||
|
|
||||||
|
set guifont=FuraMono_NF:b:h10
|
||||||
|
"set guifont=DroidSansMono_Nerd_Font:h8
|
||||||
|
"set guifont=GoMono_Nerd_Font:h9
|
||||||
|
|
||||||
|
let g:airline_powerline_fonts = 1
|
Loading…
Reference in New Issue
Block a user