about summary refs log tree commit diff
path: root/vim/.vim/vimrc
diff options
context:
space:
mode:
authorNguyễn Gia Phong <cnx@loang.net>2023-11-19 21:37:24 +0900
committerNguyễn Gia Phong <cnx@loang.net>2023-11-19 21:37:24 +0900
commitdc0154041bba4ab9017e86b8218c501e935fd9cf (patch)
tree396781c29324342c07bd541912e7c68bf20fc076 /vim/.vim/vimrc
parent5e2354e8f819875ac3d981cb94eddfbe0d00eb77 (diff)
downloaddotfiles-dc0154041bba4ab9017e86b8218c501e935fd9cf.tar.gz
Config vim and git in nix
Diffstat (limited to 'vim/.vim/vimrc')
-rw-r--r--vim/.vim/vimrc98
1 files changed, 0 insertions, 98 deletions
diff --git a/vim/.vim/vimrc b/vim/.vim/vimrc
deleted file mode 100644
index 9ceeb3c..0000000
--- a/vim/.vim/vimrc
+++ /dev/null
@@ -1,98 +0,0 @@
-set nocompatible
-set undodir=~/.cache/vim/undo
-set directory=~/.cache/vim/swap
-set backupdir=~/.cache/vim/backup
-set viminfo+=n~/.cache/vim/viminfo
-set title clipboard=unnamedplus autochdir
-set showcmd noshowmode ruler wildmenu confirm number relativenumber
-if has("patch-7.4.710")
-  set list listchars+=space:·,tab:\ \ 
-endif
-set tabstop=8 expandtab shiftwidth=4 softtabstop=-1 smarttab
-set ignorecase infercase dictionary=~/.vim/words.txt
-set keymap=vietnamese-telex imdisable iminsert=0 imsearch=-1
-set omnifunc=syntaxcomplete#Complete
-set diffopt+=algorithm:patience
-
-augroup vimrc
-  autocmd!
-  autocmd BufNewFile,BufRead *.vert,*.geom,*.frag setlocal filetype=glsl
-  autocmd BufNewFile,BufRead *.info setlocal filetype=json
-  autocmd BufNewFile,BufRead *.tsv setlocal filetype=tsv
-  autocmd BufNewFile,BufRead *.PAS setlocal filetype=pascal
-  autocmd BufNewFile,BufRead *.ms setlocal filetype=groff
-  autocmd BufNewFile,BufRead *.m setlocal filetype=octave
-  autocmd BufNewFile,BufRead *.h setlocal filetype=c
-  autocmd BufNewFile,BufRead CHANGES setlocal filetype=mail
-  autocmd FileType asm,automake,c,cpp,h,go,glsl,make,php
-        \ setlocal cindent cinoptions=(0 noexpandtab shiftwidth=8 tabstop=8
-  autocmd FileType diff,gitconfig,gitsendemail,mail,sshconfig,tsv
-        \ setlocal cindent cinoptions=(0 noexpandtab shiftwidth=8 tabstop=8
-  autocmd FileType vim,sh,scheme,lua,tex,cmake,cpp,plantuml,html,octave,pascal
-        \ setlocal shiftwidth=2
-  autocmd FileType rst setlocal shiftwidth=3
-  autocmd FileType mail,markdown,rst,tex setlocal spell
-  autocmd BufWinEnter *
-        \ if &filetype ==# 'python' || &filetype ==# 'cython'
-        \ || &filetype ==# 'mail'
-        \ | let w:m1=matchadd('ColorColumn', '\%<80v.\%>73v', -1) |
-        \ else
-        \ | let w:m1=matchadd('ColorColumn', '\%<81v.\%>80v', -1) |
-        \ endif
-augroup END
-
-let g:netrw_banner = 0
-let g:netrw_liststyle = 3
-let g:srcery_black          = '#fff5f3'
-let g:srcery_red            = '#b93f1a'
-let g:srcery_green          = '#437520'
-let g:srcery_yellow         = '#985900'
-let g:srcery_blue           = '#485adf'
-let g:srcery_magenta        = '#a234c0'
-let g:srcery_cyan           = '#00756a'
-let g:srcery_white          = '#796271'
-let g:srcery_bright_black   = '#889988'
-let g:srcery_bright_red     = '#c61a14'
-let g:srcery_bright_green   = '#357200'
-let g:srcery_bright_yellow  = '#825e00'
-let g:srcery_bright_blue    = '#1666b0'
-let g:srcery_bright_magenta = '#a83884'
-let g:srcery_bright_cyan    = '#007072'
-let g:srcery_bright_white   = '#4d595f'
-let g:srcery_orange         = '#FF5F00'
-let g:srcery_bright_orange  = '#FF8700'
-let g:srcery_xgray1         = '#d9d9d9'
-let g:srcery_xgray2         = '#cfcfcf'
-let g:srcery_xgray3         = '#c5c5c5'
-let g:srcery_xgray4         = '#bbbbbb'
-let g:srcery_xgray5         = '#b1b1b1'
-let g:srcery_xgray6         = '#a7a7a7'
-let g:srcery_italic = 1
-let g:jedi#popup_on_dot = 0
-let g:jedi#popup_select_first = 0
-let g:jedi#show_call_signatures = 2
-let g:jedi#smart_auto_mappings = 0
-let g:zig_fmt_autosave = 0
-let g:polyglot_disabled = ['latex']
-
-call plug#begin('~/.vim/plugged')
-Plug 'https://github.com/vim/killersheep'
-Plug 'https://github.com/sheerun/vim-polyglot'
-Plug 'https://github.com/francoiscabrol/ranger.vim'
-Plug 'https://github.com/srcery-colors/srcery-vim'
-Plug 'https://github.com/tpope/vim-unimpaired'
-Plug 'https://github.com/davidhalter/jedi-vim', {'for': 'python'}
-Plug 'https://github.com/lervag/vimtex', {'for': 'tex'}
-Plug 'https://github.com/kovisoft/slimv', {'for': 'lisp'}
-Plug 'https://github.com/tpope/vim-fireplace', {'for': 'clojure'}
-Plug 'https://github.com/anntzer/vim-cython', {'for': 'cython'}
-Plug 'https://git.sr.ht/~sircmpwn/hare.vim', {'for': 'hare'}
-call plug#end()
-
-set t_Co=256
-colorscheme srcery
-map Q gq
-command Q q
-command W w
-nmap W :w<CR>
-imap <C-x><C-x> <C-^>