Skip to content

Instantly share code, notes, and snippets.

@ramonsaraiva
Created December 9, 2017 00:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ramonsaraiva/507892c8f9c771c99e3b15677a7ba187 to your computer and use it in GitHub Desktop.
Save ramonsaraiva/507892c8f9c771c99e3b15677a7ba187 to your computer and use it in GitHub Desktop.
flat vimrc
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