fix
This commit is contained in:
parent
86174d46db
commit
0e3c78357b
68
.vimrc
Normal file
68
.vimrc
Normal file
@ -0,0 +1,68 @@
|
||||
set shell=/bin/bash
|
||||
set nocompatible " be iMproved, required
|
||||
set rtp+=~/.vim/bundle/Vundle.vim
|
||||
call vundle#begin()
|
||||
Plugin 'VundleVim/Vundle.vim'
|
||||
"My Plugins"
|
||||
Plugin 'vim-airline/vim-airline'
|
||||
Plugin 'vim-airline/vim-airline-themes'
|
||||
Plugin 'ervandew/supertab'
|
||||
Plugin 'airblade/vim-gitgutter'
|
||||
Plugin 'Yggdroot/indentLine'
|
||||
"Plugin 'flazz/vim-colorschemes'
|
||||
Plugin 'NLKNguyen/papercolor-theme'
|
||||
Plugin 'nordtheme/vim'
|
||||
Plugin 'cognoscan/vim-vhdl'
|
||||
Plugin 'scrooloose/nerdtree'
|
||||
Plugin 'Xuyuanp/nerdtree-git-plugin'
|
||||
"Plugin 'vim-scripts/auto-pairs-gentle'
|
||||
"Plugin 'Valloric/YouCompleteMe'
|
||||
call vundle#end() " required
|
||||
filetype plugin indent on " required
|
||||
syntax on
|
||||
|
||||
set number " show line numbers
|
||||
set relativenumber " relative line numbers
|
||||
set tabstop=2 " 2 spaces for tabs
|
||||
set shiftwidth=2 " ? tabs something
|
||||
set expandtab " fill tabs with spaces
|
||||
set cursorline " highlight where the cursor is
|
||||
set showcmd " show command in bottom while types
|
||||
set wildmenu " list menu at bottom when searching
|
||||
set incsearch
|
||||
set hlsearch " search top to bottom
|
||||
set showmatch " highlight search match
|
||||
set lazyredraw
|
||||
set ignorecase " ignore case when searching
|
||||
"set autoindent
|
||||
"set smartindent
|
||||
set splitbelow " split opens on bottom
|
||||
set splitright " vsplit opens on right
|
||||
set t_Co=256
|
||||
set background=dark "use dark version of theme
|
||||
colorscheme PaperColor " use this theme
|
||||
"colorscheme nord
|
||||
set pastetoggle=<C-P>
|
||||
set directory^=$HOME/.vim/swap
|
||||
|
||||
" dont jump over long lines
|
||||
nnoremap j gj
|
||||
nnoremap k gk
|
||||
xnoremap j gj
|
||||
xnoremap k gk
|
||||
|
||||
let g:indetLine_conceallevel = 1
|
||||
let g:indentLine_setColors = 0
|
||||
let g:airline_powerline_fonts = 1
|
||||
|
||||
" auto close braces
|
||||
inoremap {<CR> {<CR>}<ESC><UP>o
|
||||
|
||||
cnoremap w!! execute 'silent! write !sudo tee % >/dev/null' <bar> edit!
|
||||
|
||||
"Nerd Tree things
|
||||
command Tree :NERDTree | :normal <c-w><c-w>
|
||||
"autocmd vimenter * Treemove
|
||||
"autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
|
||||
|
||||
command! ToggleNumber set number! | set rnu!
|
Loading…
x
Reference in New Issue
Block a user