role_vim_setup/files/vimrc-arch

58 lines
1.2 KiB
Plaintext

" #########################################################################
" use vim settings, rather than vi settings
" must be at start of vimrc as it changes other options as a side effect
set nocompatible
" make backspace behave in a sane manner
set backspace=indent,eol,start
" switch syntax highlighting on
syntax on
filetype plugin on
set smartindent
set autoindent
set softtabstop=4
set tabstop=4
set shiftwidth=4
set expandtab
set number
set relativenumber
set showmatch
set nowrap
set smartcase
set noswapfile
set nobackup
set undodir=~/.vim/undodir
set undofile
set incsearch
" turn on full python highlighting
let python_highlight_all = 1
" netrw tweaks
let g:netrw_banner=0 " disable annoying banner
let g:netrw_browse_split=4 " open in prior window
let g:netrw_altv=1 " open splits to the right
let g:netrw_liststyle=3 " tree view
nmap <silent> <C-e> :Lexplore<CR>
"let g:netrw_list_hide=netrw_gitignore#Hide()
"let g:netrw_list_hide.=',\(^\|\s\s\)\zs\.\S\+'
" set 256 colors and use specific color scheme
set t_Co=256
colorscheme calmar256-dark
set background=dark
" from no_plugins page (https://github.com/changemewtf/no_plugins)
set path+=**
set wildmenu