Files
dots/vim/.vimrc

92 lines
2.1 KiB
VimL

set nocompatible
filetype off
" general settings
set encoding=utf-8
let mapleader=","
set nu
set laststatus=2
set hidden
set incsearch
" hide showmode because its in statusline
set noshowmode
" Indent settings - PEP8 compatibility
set expandtab
set autoindent
set tabstop=4
set softtabstop=4
set textwidth=79
set shiftwidth=4
set fileformat=unix
"highlight cursorline cterm=none ctermbg=darkred ctermfg=white guibg=darkred guifg=white
hi cursorline cterm=none term=none ctermbg=236
set cursorline
"enable relative line numbers
set number relativenumber
"set highlight cursorcolumn cterm=NONE ctermbg=darkred ctermfg=white guibg=darkred guifg=white
nnoremap <Leader>c :set cursorline! cursorcolumn!<CR>
"highlight matching brace when closing brace, flash for 2 tenths
set showmatch
set matchtime=2
let pythong_highlight_all = 1
syntax on
set foldmethod=indent
set foldlevel=99
" specify the location of the splits
set splitbelow
set splitright
" remap ctrl + hjkl to move between splits
nnoremap <C-j> <C-W><C-J>
nnoremap <C-k> <C-W><C-K>
nnoremap <C-l> <C-W><C-L>
nnoremap <C-h> <C-W><C-H>
" use jj to escape insert mode
inoremap jj <Esc>
inoremap jk <Esc>
nnoremap <leader>l :ls<CR>:b<Space>
nnoremap <Tab> :bnext<CR>
nnoremap <S-Tab> :bprev<CR>
nnoremap <leader>p :CtrlPBuffer<CR>
nnoremap <space> za
" NERDTree, open/close toggle
map <C-n> :NERDTreeToggle<CR>
"lightline colorscheme
let g:lightline = {'colorscheme': 'powerline',}
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" " let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
Plugin 'tpope/vim-fugitive'
Plugin 'kien/ctrlp.vim'
Plugin 'scrooloose/nerdtree'
Plugin 'tmhedberg/SimpylFold'
Plugin 'vim-scripts/indentpython.vim'
Plugin 'scrooloose/syntastic'
" PEP8 checking plugin
Plugin 'nvie/vim-flake8'
"Plugin 'Lokaltog/powerline', {'rtp': 'powerline/bindings/vim/'}
Plugin 'itchyny/lightline.vim'
"Plugin 'klen/python-mode'
Plugin 'itchyny/calendar.vim'
Plugin 'davidhalter/jedi-vim'
Plugin 'tpope/vim-surround'
call vundle#end() " required
filetype plugin indent on " required