Created
December 9, 2017 00:45
-
-
Save ramonsaraiva/507892c8f9c771c99e3b15677a7ba187 to your computer and use it in GitHub Desktop.
flat vimrc
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
filetype plugin indent on | |
language en_US | |
set noswapfile | |
" line numbers | |
set relativenumber | |
" tab as spaces | |
set tabstop=4 | |
set shiftwidth=4 | |
set softtabstop=4 | |
set expandtab | |
set encoding=utf-8 | |
let python_highlight_all=1 | |
syntax on | |
autocmd FileType python set autoindent | |
autocmd FileType python set smartindent | |
autocmd FileType python set textwidth=79 | |
autocmd FileType python set colorcolumn=79 | |
set backspace=indent,eol,start | |
set colorcolumn=79,100 | |
set laststatus=2 | |
set cursorline | |
set showbreak=↪\ | |
set listchars=tab:\|_,eol:↲,nbsp:␣,trail:•,extends:⟩,precedes:⟨ | |
set list | |
set mouse=a | |
set formatoptions-=t | |
let mapleader=',' | |
" mappings | |
noremap <space> viw | |
noremap <leader>a =ip | |
noremap <leader>q :q<cr> | |
" tabs and panes | |
noremap <leader>v <C-w>v<cr> | |
noremap <leader>h <C-w>n<cr> | |
noremap <S-l> gt | |
noremap <S-h> gT | |
noremap <C-l> <C-w>l | |
noremap <C-h> <C-w>h | |
noremap <C-j> <C-w>j | |
noremap <C-k> <C-w>k |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment