Created
March 2, 2021 03:32
-
-
Save undeadops/bb5f6ce17f1f9122b243f7c87b99d3d5 to your computer and use it in GitHub Desktop.
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
" Flash screen instead of beep sound | |
" set visualbell | |
" Change how vim represents characters on the screen | |
set encoding=utf-8 | |
" Set the encoding of files written | |
set fileencoding=utf-8 | |
" Color scheme | |
packadd! dracula | |
syntax enable | |
colorscheme dracula | |
" Enable syntax highlighting | |
" You need to reload this file for the change to apply | |
filetype off | |
filetype plugin indent on | |
" bind Ctrl+<movement> keys to move around the windows, instead of using | |
" Ctrl+w + <movement> | |
" " Every unnecessary keystroke that can be saved is good for your health :) | |
map <c-j> <c-w>j | |
map <c-k> <c-w>k | |
map <c-l> <c-w>l | |
map <c-h> <c-w>h | |
autocmd Filetype python setlocal expandtab tabstop=4 shiftwidth=4 softtabstop=4 | |
autocmd Filetype go setlocal tabstop=4 shiftwidth=4 softtabstop=4 | |
" ts - show existing tab with 4 spaces width | |
" sw - when indenting with '>', use 4 spaces width | |
" sts - control <tab> and <bs> keys to match tabstop | |
" Control all other files | |
set shiftwidth=4 | |
set undofile " Maintain undo history between sessions | |
set undodir=~/.vim/undodir | |
" Hardcore mode, disable arrow keys. | |
"noremap <Up> <NOP> | |
"noremap <Down> <NOP> | |
"noremap <Left> <NOP> | |
"noremap <Right> <NOP> | |
filetype plugin indent on | |
" Allow backspace to delete indentation and inserted text | |
" i.e. how it works in most programs | |
set backspace=indent,eol,start | |
" indent allow backspacing over autoindent | |
" eol allow backspacing over line breaks (join lines) | |
" start allow backspacing over the start of insert; CTRL-W and CTRL-U | |
" stop once at the start of insert. | |
" go-vim plugin specific commands | |
" Also run `goimports` on your current file on every save | |
" Might be be slow on large codebases, if so, just comment it out | |
let g:go_fmt_command = "goimports" | |
" Status line types/signatures. | |
let g:go_auto_type_info = 1 | |
"au filetype go inoremap <buffer> . .<C-x><C-o> | |
" If you want to disable gofmt on save | |
" let g:go_fmt_autosave = 0 | |
" NERDTree plugin specific commands | |
:nnoremap <C-g> :NERDTreeToggle<CR> | |
"autocmd vimenter * NERDTree | |
" air-line plugin specific commands | |
let g:airline_powerline_fonts = 1 | |
if !exists('g:airline_symbols') | |
let g:airline_symbols = {} | |
endif | |
" unicode symbols | |
let g:airline_left_sep = '»' | |
let g:airline_left_sep = '▶' | |
let g:airline_right_sep = '«' | |
let g:airline_right_sep = '◀' | |
" Terraform | |
let g:terraform_fmt_on_save=1 | |
let g:terraform_fold_sections=1 | |
let g:terraform_align=1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment