.dotfiles/.vimrc

132 lines
2.5 KiB
VimL
Raw Normal View History

2018-08-18 13:15:18 +02:00
set nocompatible " required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim'
" add all your plugins here (note older versions of Vundle
" used Bundle instead of Plugin)
" Simply Fold
Plugin 'tmhedberg/SimpylFold'
" autodindent python
Plugin 'vim-scripts/indentpython.vim'
" syntax highlighting
Plugin 'vim-syntastic/syntastic'
" pep8 checking
Plugin 'nvie/vim-flake8'
2018-11-21 14:14:09 +01:00
" autocomplete
2018-11-13 16:39:36 +01:00
" Bundle 'Valloric/YouCompleteMe'
2018-08-18 13:15:18 +02:00
" search for files
Plugin 'ctrlpvim/ctrlp.vim'
" color schemes
Plugin 'flazz/vim-colorschemes'
" nert-tree
Plugin 'scrooloose/nerdtree'
2018-11-21 14:14:09 +01:00
" nerd-commenter
Plugin 'scrooloose/nerdcommenter'
2018-08-18 13:15:18 +02:00
" git
Plugin 'tpope/vim-fugitive'
2018-11-18 00:01:39 +01:00
" surround blocks
Plugin 'tpope/vim-surround'
2018-11-05 15:32:51 +01:00
" latex
Plugin 'lervag/vimtex'
2018-08-18 13:15:18 +02:00
" powerline
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
2018-11-03 21:11:06 +01:00
" promela syntax highlighting
Plugin 'vim-scripts/promela.vim'
2018-08-18 13:15:18 +02:00
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" syntax
syntax on
colorscheme Benokai
let g:airline_theme='luna'
let python_highlight_all=1
let mapleader=" "
2018-08-18 13:15:18 +02:00
2018-11-18 22:14:48 +01:00
" random settings
2018-08-18 13:15:18 +02:00
set number
set clipboard=unnamed
2018-11-18 22:14:48 +01:00
set mouse=nvi
set smarttab
set visualbell
set virtualedit=block
set scrolloff=1
set wildmenu
" tabs and line wrap
2018-08-18 13:15:18 +02:00
set tabstop=4
set wrapmargin=8
set softtabstop=0 noexpandtab
set shiftwidth=4
set backspace=2
set backspace=indent,eol,start
set encoding=utf-8
2018-11-18 22:14:48 +01:00
set autoindent
" search
set incsearch
set hlsearch
set smartcase
2018-08-18 13:15:18 +02:00
" setup split
set splitbelow
set splitright
"split navigations
nnoremap <leader>j <C-W><C-J>
nnoremap <leader>k <C-W><C-K>
nnoremap <leader>l <C-W><C-L>
nnoremap <leader>h <C-W><C-H>
2018-08-18 13:15:18 +02:00
" Enable folding
set foldmethod=indent
set foldlevel=99
" remap code folding
nnoremap <leader>f za
2018-08-18 13:15:18 +02:00
" see docstrings for folded code
let g:SimpylFold_docstring_preview=1
" html css js indents
au BufNewFile,BufRead *.js, *.html, *.css
2018-11-21 14:14:09 +01:00
\ set tabstop=4 |
\ set softtabstop=4 |
\ set shiftwidth=4
2018-08-18 13:15:18 +02:00
2018-11-21 14:14:09 +01:00
" you complete me setup
2018-08-18 13:15:18 +02:00
let g:ycm_autoclose_preview_window_after_completion=1
map <leader>g :YcmCompleter GoToDefinitionElseDeclaration<CR>
" nerd tree setup
let NERDTreeIgnore=['\.pyc$', '\~$'] "ignore files in NERDTree
map <leader>n :NERDTreeToggle<CR>
2018-08-18 13:15:18 +02:00
" airline tabs
let g:airline#extensions#tabline#enabled = 1
let g:airline#extensions#tabline#formatter = 'unique_tail_improved'
2018-11-21 14:14:09 +01:00
" nerd-commenter setup
let g:NERDSpaceDelims = 1