From ffbebb7365eb83217b5edaa9ed2d8849e3686706 Mon Sep 17 00:00:00 2001 From: shmibs Date: Sat, 20 Dec 2014 21:23:27 -0700 Subject: custom vim colourscheme --- .vimrc | 64 +++++++++++++++++++++++++++++++++++++++++++++++++--------------- 1 file changed, 49 insertions(+), 15 deletions(-) (limited to '.vimrc') diff --git a/.vimrc b/.vimrc index ce89dcb..4bc3d4d 100644 --- a/.vimrc +++ b/.vimrc @@ -1,10 +1,13 @@ +"""""""""""""" +" SETTINGS " +"""""""""""""" + syntax on filetype plugin indent on set autoindent "colours! -colorscheme anotherdark -set background=dark +colorscheme shmibs "enable status-line set laststatus=2 @@ -19,12 +22,42 @@ set hidden set guifont=Tamsyn\ 11 set guioptions=aegimt +"visual marker for 80th column +highlight Column80 ctermbg=black +call matchadd('Column80', '\%81v', 100) + + +""""""""""""" +" ALIASES " +""""""""""""" + "i keep accidentally typing these over and over -command W w +command W w command Wq wq command WQ wq -command Q q -command E e +command Q q +command E e + + +""""""""""""""""""" +" PLUGIN THINGS " +""""""""""""""""""" + +"Start interactive EasyAlign in visual mode (e.g. vip) +vmap (EasyAlign) + +"Start interactive EasyAlign for a motion/text object (e.g. gaip) +nmap ga (EasyAlign) + +"lightline things +"let g:lightline = { +" \ 'colorscheme': 'shmibsline' +" \ } + + +"""""""""""""" +" MAPPINGS " +"""""""""""""" "buffer / tab controls nnoremap :bn @@ -68,23 +101,32 @@ if &term != "linux" xnoremap P (v:register ==# '"' ? '"+' : '') . 'P' end + +""""""""""""""""""""""" +" FILETYPE SETTINGS " +""""""""""""""""""""""" + +"always use rust instead of hercules +au BufNewFile,BufRead *.rs set filetype=rust + "annoying syntax-related values that need to be set before files are "opened let g:c_no_comment_fold = 1 let g:c_no_if0_fold = 1 "other filetype-specific settings. i can't figure out how to stick all -"the FileTypes in one list (mostly because i have no idea what i'm +"the FileTypes in one dict (mostly because i have no idea what i'm "doing with viml), so separate lines it is. autocmd FileType asm call Settings_asm() autocmd FileType c call Settings_c() -autocmd FileType cpp call Settings_cpp() +autocmd FileType cpp call Settings_c() autocmd FileType tex call Settings_tex() autocmd FileType haskell call Settings_haskell() autocmd FileType make call Settings_script() autocmd FileType matlab call Settings_matlab() autocmd FileType perl call Settings_script() autocmd FileType python call Settings_script() +autocmd FileType rust call Settings_c() autocmd FileType sh call Settings_script() autocmd FileType vim call Settings_vim() autocmd FileType zsh call Settings_script() @@ -97,14 +139,6 @@ function! Settings_asm() endfunction function! Settings_c() - "settings - setlocal foldmethod=syntax - "mappings - nnoremap c :!make - nnoremap -- O*/hhi/* -endfunction - -function! Settings_cpp() "settings setlocal foldmethod=syntax setlocal shiftwidth=4 -- cgit v1.2.3