nnoremap let mapleader=" " call plug#begin() Plug 'tpope/vim-commentary' Plug 'cohama/lexima.vim' Plug 'dense-analysis/ale' Plug 'sheerun/vim-polyglot' Plug 'SirVer/ultisnips' Plug 'honza/vim-snippets' "Plug 'vimwiki/vimwiki' Plug 'matze/vim-move' Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } Plug 'lucasprag/simpleblack' call plug#end() silent! source $VIMRUNTIME/defaults.vim syntax on colorscheme simpleblack filetype plugin indent on set background=dark set fileformats=unix,dos,mac set noruler set notitle set go=a set mouse=a set autoindent set autoread set backspace=indent,eol,start set display=lastline set history=10000 set encoding=utf-8 set hlsearch set incsearch set undodir=~/.vim/undo set undofile set undolevels=1000 set undoreload=10000 set laststatus=2 set mouse=a set smarttab set ttyfast set viminfo+=! set wildmenu set shortmess=atOI set ignorecase set smartcase set shiftwidth=4 set tabstop=4 set softtabstop=4 set splitright set splitbelow set autowrite set mousehide set hidden set t_Co=256 set t_ut= set number set norelativenumber set cursorline set scrolljump=1 set scrolloff=0 set noshowcmd set showmode set showmatch set matchtime=5 set report=0 set linespace=0 set pumheight=20 set winminheight=0 set wildmode=list:longest,full set listchars=tab:→\ ,eol:↵,trail:·,extends:↷,precedes:↶ set fillchars=stl:\ ,stlnc:\ ,fold:\ ,vert:│ set whichwrap+=<,>,h,l set termencoding=utf-8 set fileencoding=utf-8 set fileencodings=utf-8,ucs-bom,gb18030,gbk,gb2312,cp936 set nobackup set noswapfile set nowritebackup autocmd FileType * hi LineNr ctermfg=darkgrey autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o nmap ; :FZF nmap s :nohl nmap h :tabprevious nmap l :tabnext nnoremap Y y$ nnoremap q :q nnoremap Q :qa! nnoremap wq :wq nnoremap ww :w call lexima#add_rule({'char': '$', 'input_after': '$', 'filetype': 'markdown'}) call lexima#add_rule({'char': '', 'at': '\$\%#\$', 'delete': 1, 'filetype': 'markdown'}) nnoremap S :%s//g nnoremap d "_d vnoremap d "_d nmap j gj nmap k gk vmap j gj vmap k gk command! W w !sudo tee % > /dev/null let g:UltiSnipsExpandTrigger="" let g:UltiSnipsJumpForwardTrigger="" let g:UltiSnipsJumpBackwardTrigger="" let g:vimwiki_list = [{'path': '~/notes/', 'syntax': 'markdown', 'ext': '.md'}] let g:ale_fix_on_save = 1 let g:ale_set_signs = 0 let g:ale_fixers = {} let g:ale_fixers.haskell = ['brittany'] let g:ale_fixers.c = ['clang-format'] let g:ale_fixers.sh = ['shfmt'] let g:ale_fixers.markdown = ['pandoc'] let g:ale_fixers.javascript = ['xo'] let g:ale_fixers.java = ['google_java_format'] let g:ale_fixers.tex = ['latexindent'] let g:ale_linters = {} let g:ale_linters.sh = ['shellcheck'] let g:ale_linters.javascript = ['xo'] let g:ale_markdown_pandoc_options = '-s -f markdown+yaml_metadata_block -t markdown -' highlight CursorLine cterm=NONE ctermbg=NONE ctermfg=NONE guifg=NONE guibg=NONE highlight SignColumn cterm=NONE ctermbg=NONE ctermfg=NONE guifg=NONE guibg=NONE highlight TabLine cterm=NONE ctermbg=NONE ctermfg=NONE guifg=NONE guibg=NONE highlight TabLineFill cterm=NONE ctermbg=NONE ctermfg=NONE guifg=NONE guibg=NONE highlight ALEError ctermbg=none cterm=underline highlight clear SignColumn autocmd FileType c set tabstop=8|set shiftwidth=8|set noexpandtab autocmd FileType cpp set tabstop=8|set shiftwidth=8|set noexpandtab autocmd FileType haskell set tabstop=2|set shiftwidth=2|set expandtab autocmd FileType java set tabstop=2|set shiftwidth=2|set expandtab autocmd FileType js set tabstop=2|set shiftwidth=2|set expandtab autocmd FileType r set tabstop=2|set shiftwidth=2|set expandtab autocmd FileType tex set tabstop=8|set shiftwidth=8|set noexpandtab