Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- " requires:
- " app-vim/vimpython
- " app-vim/youcompleteme::tatsh-overlay USE="python_single_target=python3_11"
- " app-vim/gentoo-syntax
- " app-vim/indentpython
- " app-vim/rust-vim
- " global use flags:
- " app-editors/vim python
- " app-editors/vim python_single_target_python3_11
- "
- " Note that a gentoo install cannot use the default vim package manager and
- " must instead use portage.
- "
- " try to install app-vim/vimlatex when it can use the 3_11 single python
- " target. currently causes annoying dep conflicts.
- " colour and theme (user added)
- colorscheme sublimemonokai
- syntax on
- set nu
- " enable gentoo syntax (user added)
- filetype plugin on
- filetype indent on
- " text wrapping
- set wrap
- set colorcolumn=80
- set formatoptions+=t
- au BufRead,BufNewFile *.md setlocal textwidth=79
- au BufRead,BufNewFile *.tex setlocal textwidth=79
- set linebreak
- set mouse=a
- " Spellcheck
- autocmd BufRead,BufNewFile *.md setlocal spell spellang=en_uk
- autocmd BufRead,BufNewFile *.tex setlocal spell spellang=en_uk
- " tree
- let g:netrw_liststyle = 3
- let g:netrw_banner = 0
- let g:netrw_browse_split = 4
- let g:netrw_winsize = 15
- let g:netrw_altv = 1
- augroup ProjectDrawer
- autocmd!
- autocmd VimEnter * :Vexplore
- augroup END
- " indent misc
- au BufNewFile,BufRead *.js, *.html, *.css
- \ set tabstop=2
- \ set softtabstop=2
- \ set shiftwidth=2
- " rust
- syntax enable
- filetype plugin indent on
- " python
- au BufNewFile,BufRead *.py
- \ set tabstop=4
- \ set softtabstop=4
- \ set shiftwidth=4
- \ set textwidth=79
- \ set expandtab
- \ set autoindent
- \ set fileformat=unix
- highlight BadWhitespace ctermbg=red guibg=darkred
- au BufRead,BufNewFile *.py,*.pyw,*.c,*.h match BadWhitespace /\s\+$/
- set encoding=utf-8
- autocmd FileType python set autoindent
- set backspace=indent,eol,start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement