nix/.vimrc

99 lines
2.5 KiB
VimL
Raw Normal View History

2021-01-02 01:31:52 +00:00
" Python Settings - Needed for Nix Python
set pythondll=$HOME/.nix-profile/bin/python3
set pythonhome=$NIX_PYTHONPATH
set pythonthreedll=$HOME/.nix-profile/bin/python3
set pythonthreehome=$NIX_PYTHONPATH
" Vundle & Plugins
2019-02-07 16:00:51 +00:00
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
2020-10-22 14:34:24 +00:00
Plugin 'ctrlp.vim'
Plugin 'airblade/vim-gitgutter'
2019-02-07 16:00:51 +00:00
Plugin 'VundleVim/Vundle.vim'
Plugin 'Valloric/YouCompleteMe'
Plugin 'chrisbra/csv.vim'
2019-05-29 18:04:57 +00:00
Plugin 'dracula/vim'
2021-01-02 01:31:52 +00:00
Bundle 'powerline/powerline', {'rtp': 'powerline/bindings/vim/'}
2020-10-22 14:34:24 +00:00
Plugin 'psf/black'
2021-01-26 23:19:17 +00:00
Plugin 'dart-lang/dart-vim-plugin'
Plugin 'natebosch/vim-lsc'
Plugin 'natebosch/vim-lsc-dart'
2019-02-07 16:00:51 +00:00
call vundle#end()
2020-10-22 14:34:24 +00:00
2021-01-26 23:19:17 +00:00
" Set Dart SDK
let g:ycm_dart_bin_folder_path = '/Users/evanreichard/Development/Tools/flutter/bin/cache/dart-sdk/bin'
let g:lsc_auto_map = v:true
2021-01-02 01:31:52 +00:00
" filetype off
filetype plugin indent on
2020-10-22 14:34:24 +00:00
" Highlight IP Addresses
syn match ipaddr /\(\(25\_[0-5]\|2\_[0-4]\_[0-9]\|\_[01]\?\_[0-9]\_[0-9]\?\)\.\)\{3\}\(25\_[0-5]\|2\_[0-4]\_[0-9]\|\_[01]\?\_[0-9]\_[0-9]\?\)/
hi link ipaddr Identifier
2019-02-07 16:00:51 +00:00
2019-05-29 18:04:57 +00:00
" Powerline
set laststatus=2
set t_Co=256
let g:Powerline_symbols = "fancy"
2021-01-02 01:31:52 +00:00
" Disable Modeline
set modelines=0
set nomodeline
" Set Mouse Select & Scroll
set mouse=a
" MiniBufExpl
let g:miniBufExplMapWindowNavVim = 1
let g:miniBufExplMapWindowNavArrows = 1
let g:miniBufExplMapCTabSwitchBufs = 1
let g:miniBufExplModSelTarget = 1
2019-02-07 16:00:51 +00:00
" Turn syntax highlighting on
syntax on
" No line wrapping
set nowrap
" Line numbers
set nu
" Highlights searches (done by forward slash in normal mode)
set hlsearch
" Make backspace act normal
set backspace=2
" Disable swap files (no recovery if you dont save!)
set noswapfile
2021-01-02 01:31:52 +00:00
" Set vertical red line at the 80 char column
" set colorcolumn=80
2019-02-07 16:00:51 +00:00
" Set tab = 4 spaces
set tabstop=4
" Addects >> << ++ and automatic indentation
set shiftwidth=4
" Sets the tab key to softtabstop / tabstop
set expandtab
" synchronize with system clipboard (yank and paste in normal is effectively
" CMD+C & CMD+V in insert mode
set clipboard=unnamed
" Folding rules
set foldmethod=indent
set foldnestmax=10
set foldlevel=2
set nofoldenable
" CSV Settings
let g:csv_autocmd_arrange = 1
let g:csv_autocmd_arrange_size = 1024*1024*10
let b:csv_arrange_align = 'l*'
" netrw
let g:netrw_banner = 0
let g:netrw_liststyle = 4
let g:netrw_chgwin = 2
let g:netrw_browse_split = 3
2021-01-02 01:31:52 +00:00
2019-02-07 16:00:51 +00:00
" remap shift-enter to fire up the sidebar
" the same remap as above - may be necessary in some distros
nnoremap <silent> <C-M> :leftabove 25vs<CR>:e .<CR>
" View *.hex files in hex
au BufReadPost *.hex silent %!xxd