set nocompatible filetype off " general settings set encoding=utf-8 let mapleader="," set nu set laststatus=2 set showtabline=2 set hidden set incsearch " share system clipboard set clipboard^=unnamed,unnamedplus " 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 " vertical column at 79 so you know when to wrap "set colorcolumn=79 "enable relative line numbers set number relativenumber "set highlight cursorcolumn cterm=NONE ctermbg=darkred ctermfg=white guibg=darkred guifg=white nnoremap c :set cursorline! cursorcolumn! "toggle search hilight with h nnoremap h (&hls && v:hlsearch ? ':nohls' : ':set hls')."\n" "highlight matching brace when closing brace, flash for 2 tenths set showmatch set matchtime=2 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 nnoremap nnoremap nnoremap " provide movements in Insert mode via the modifier key "inoremap h h "inoremap j j "inoremap k k "inoremap l l "inoremap w w "inoremap b b "inoremap x x " fix alt meta mappings in rxvt "inoremap a " map ctrl-p to fzf nnoremap :Files " use jj (et al) to escape insert mode inoremap jj inoremap jk inoremap kj " blank lines nnoremap o nnoremap O nnoremap l :ls:b nnoremap :bnext nnoremap :bprev """"""""""""""""""""""""""""""""""""""" " nnn - using nnn file manager """"""""""""""""""""""""""""""""""""""" "map :NnnPicker "" Opens the nnn window in a split "let g:nnn#layout = { 'left': '~30%' } " or right, up, down map :NERDTreeToggle "lightline colorscheme let g:lightline = {'colorscheme': 'powerline',} "vim-jedi auto-select first, saves a keystroke let g:jedi#popup_select_first = 0 call plug#begin('~/.vim/plugged') " vim-plug Plug 'tpope/vim-fugitive' Plug 'vim-scripts/indentpython.vim' Plug 'scrooloose/syntastic' Plug 'nvie/vim-flake8' " PEP 8 checking plugin Plug 'itchyny/lightline.vim' Plug 'taohexxx/lightline-buffer' Plug 'davidhalter/jedi-vim' Plug 'tpope/vim-surround' Plug 'wellle/targets.vim' Plug 'junegunn/goyo.vim' Plug 'junegunn/fzf.vim' Plug 'scrooloose/nerdtree' call plug#end() " end vim-plug filetype plugin indent on " required " use lightline-buffer in lightline let g:lightline = { \ 'tabline': { \ 'left': [ [ 'bufferinfo' ], \ [ 'separator' ], \ [ 'bufferbefore', 'buffercurrent', 'bufferafter' ], ], \ 'right': [ [ 'close' ], ], \ }, \ 'component_expand': { \ 'buffercurrent': 'lightline#buffer#buffercurrent', \ 'bufferbefore': 'lightline#buffer#bufferbefore', \ 'bufferafter': 'lightline#buffer#bufferafter', \ }, \ 'component_type': { \ 'buffercurrent': 'tabsel', \ 'bufferbefore': 'raw', \ 'bufferafter': 'raw', \ }, \ 'component_function': { \ 'bufferinfo': 'lightline#buffer#bufferinfo', \ }, \ 'component': { \ 'separator': '', \ }, \ }