You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
1.1 KiB
29 lines
1.1 KiB
" link destination: $HOME/.vimrc
|
|
" Enable modern Vim features not compatible with Vi spec.
|
|
set nocompatible
|
|
|
|
" Enable file type based indent configuration and syntax highlighting.
|
|
" Note that when code is pasted via the terminal, vim by default does not detect
|
|
" that the code is pasted (as opposed to when using vim's paste mappings), which
|
|
" leads to incorrect indentation when indent mode is on.
|
|
" To work around this, use ":set paste" / ":set nopaste" to toggle paste mode.
|
|
" You can also use a plugin to:
|
|
" - enter insert mode with paste (https://github.com/tpope/vim-unimpaired)
|
|
" - auto-detect pasting (https://github.com/ConradIrwin/vim-bracketed-paste)
|
|
filetype plugin indent on
|
|
syntax on
|
|
|
|
" So we can see tabs and trailing spaces.
|
|
hi SpecialKey ctermbg=Yellow guibg=Yellow
|
|
" Make it so that tabs and trailing spaces are always visible:
|
|
" (Relys on syntax highlighting to turn them yellow.)
|
|
set list
|
|
set listchars=tab:\ \ ,trail:\ ,extends:»,precedes:«
|
|
let g:Powerline_symbols = 'unicode'
|
|
let g:Powerline_stl_path_style = 'short'
|
|
set modeline
|
|
set expandtab
|
|
set shiftwidth=2
|
|
set softtabstop=2
|
|
set laststatus=2
|
|
hi Statement ctermfg=3 guifg=#C4A000
|
|
|