Created
March 21, 2018 10:37
-
-
Save kuba--/8b0cf2a51c7fbb80664866ef0a9eb37b 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
execute pathogen#infect() | |
let g:go_fmt_command = "goimports" | |
let g:clang_format#detect_style_file=1 | |
let g:clang_format#auto_format=1 | |
let NERDTreeShowHidden=1 | |
set autoindent | |
set tabstop=4 " Show existing tab with 4 spaces width | |
set shiftwidth=4 " When indenting with '>', use 4 spaces width | |
set expandtab " On pressing tab, insert spaces | |
set showmatch | |
set number | |
set cursorline | |
set paste | |
set laststatus=2 | |
set listchars=tab:>· | |
set list | |
set noswapfile | |
set colorcolumn=80 | |
fun! TrimWhitespace() | |
let l:save_cursor = getpos('.') | |
%s/\s\+$//e | |
call setpos('.', l:save_cursor) | |
endfun | |
autocmd BufWritePre * :call TrimWhitespace() | |
colorscheme molokai | |
syntax on | |
filetype plugin on | |
filetype plugin indent on | |
nmap <F2> :w<CR> | |
nmap <F8> :TagbarToggle<CR> | |
nmap <F10> :NERDTreeToggle<CR> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment