Created
October 5, 2016 17:05
-
-
Save taiansu/ac62e87546fddbcdc392a29ce959baa9 to your computer and use it in GitHub Desktop.
Minimal vimrc
This file contains hidden or 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
syntax on | |
set encoding=utf-8 | |
set termencoding=utf-8 | |
set fileencoding=utf-8 | |
set fileencodings=ucs-bom,utf-8,big5,gb2312,latin1 | |
set ffs=unix,mac,dos | |
colorscheme pablo | |
set t_Co=256 | |
set wildmenu | |
set nocompatible | |
set backspace=indent,eol,start | |
set backspace=2 | |
set autoindent | |
set smartindent | |
set nobackup | |
set nowritebackup | |
set noswapfile | |
set ruler | |
set expandtab | |
set tabstop=2 | |
set softtabstop=2 | |
set shiftwidth=2 | |
set showmatch | |
au FileType python,c,java,php setl shiftwidth=4 | |
au FileType python,c,java,php setl tabstop=4 | |
set hlsearch | |
filetype on | |
filetype plugin on | |
filetype indent on | |
set completeopt=longest,menu | |
vnoremap < <gv | |
vnoremap > >gv | |
let mapleader="\<space>" | |
command! TrailingWhiteSpaces %s/\s\+$//e | |
nmap <leader>xv :TrailingWhiteSpaces<CR> | |
""" netrw | |
let g:netrw_banner = 0 | |
let g:netrw_liststyle = 3 | |
let g:netrw_special_syntax = 1 | |
let g:netrw_browse_split = 4 | |
let g:netrw_altv = 1 | |
let g:netrw_sort_sequence = '[\/]$,*' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment