Created
May 4, 2020 21:26
-
-
Save tusing/49a47053665cfb581d4234f7e87a402a to your computer and use it in GitHub Desktop.
Dotfiles
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" ========== INSTALLATION ========== | |
" 1. git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim | |
" 2. Move this file to ~/.vimrc | |
" 3. Run :PluginInstall from vim | |
" 4. Remember that /etc/vim/vimrc has priority! | |
" ---------------------------------- | |
set laststatus=2 " Always show statusline | |
set t_Co=256 " 256 colors | |
" ======== VUNDLE SETTINGS ========= | |
" ---------- VUNDLE START ---------- | |
set nocompatible " be iMproved, required | |
filetype off " required | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" ---------- PLUGIN START ---------- | |
Plugin 'VundleVim/Vundle.vim' | |
" Plugin 'tpope/vim-fugitive' | |
Plugin 'bling/vim-airline' | |
Plugin 'kien/ctrlp.vim' | |
Plugin 'scrooloose/syntastic' | |
Plugin 'davidhalter/jedi-vim' | |
" ----------- PLUGIN END ----------- | |
call vundle#end() | |
filetype plugin indent on | |
" ----------- VUNDLE END ----------- | |
" Vundle help: PluginList, PluginInstall, PluginClean, PluginSearch | |
" ======== PLUGIN SETTINGS ========= | |
let g:airline#extensions#tabline#enabled = 1 | |
let g:airline_powerline_fonts = 0 | |
let g:ctrlp_map = '<c-p>' | |
let g:ctrlp_cmd = 'CtrlP' | |
let g:jedi#completions_command = "<C-S>" | |
" ====== ADDTIONAL SETTINGS ======== | |
syntax on | |
" ------- USAGE OPTIMIZATIONS ------ | |
" http://nvie.com/posts/how-i-boosted-my-vim/ | |
set nowrap " don't wrap lines | |
set tabstop=4 " a tab is four spaces | |
set backspace=indent,eol,start " allow backspacing over everything in insert mode | |
set autoindent " always set autoindenting on | |
set copyindent " copy the previous indentation on autoindenting | |
set number " always show line numbers | |
set shiftwidth=4 " number of spaces to use for autoindenting | |
set shiftround " use multiple of shiftwidth when indenting with '<' and '>' | |
set showmatch " set show matching parenthesis | |
set ignorecase " ignore case when searching | |
set smartcase " ignore case if search pattern is all lowercase, case-sensitive otherwise | |
set smarttab " insert tabs on the start of a line according to shiftwidth, not tabstop | |
set hlsearch " highlight search terms | |
set incsearch " show search matches as you type | |
set history=1000 " remember more commands and search history | |
set undolevels=1000 " use many muchos levels of undo | |
set wildignore=*.swp,*.bak,*.pyc,*.class | |
set title " change the terminal's title | |
set visualbell " don't beep | |
set noerrorbells " don't beep | |
set pastetoggle=<leader>p | |
" ------- SPEED OPTIMIZATIONS -------- | |
set ttyfast | |
set lazyredraw | |
set nocursorline | |
set nocursorcolumn | |
set scrolljump=5 | |
" -------- MOUSE SETTINGS --------- | |
set mouse=a | |
set ttymouse=xterm2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment