85 lines
2.0 KiB
VimL
85 lines
2.0 KiB
VimL
packloadall
|
|
call pathogen#infect()
|
|
|
|
syntax on
|
|
|
|
filetype on
|
|
filetype indent on
|
|
filetype plugin on
|
|
|
|
set backspace=indent,eol,start
|
|
set backupdir^=~/.vim/_backup//
|
|
set cursorline
|
|
set cursorcolumn
|
|
set directory^=~/.vim/_temp//
|
|
set encoding=utf8
|
|
set hlsearch
|
|
set ignorecase
|
|
set incsearch
|
|
set laststatus=2
|
|
set linebreak
|
|
set modeline
|
|
set nowrap
|
|
set number
|
|
set smartcase
|
|
set statusline+=%#warningmsg#
|
|
set statusline+=%*
|
|
set tabstop=4
|
|
set textwidth=67
|
|
|
|
if has("persistent_undo")
|
|
set undodir=~/.vim/_undo//
|
|
set undofile
|
|
endif
|
|
|
|
au BufRead,BufNewFile *.gcfg setfiletype gitconfig
|
|
au BufRead,BufNewFile *.hcl setfiletype hcl
|
|
au BufRead,BufNewFile *.nomad setfiletype hcl
|
|
au BufRead,BufNewFile *.service setfiletype systemd
|
|
au BufRead,BufNewFile .Rprofile setfiletype r
|
|
au BufRead,BufNewFile .envrc setfiletype sh
|
|
au BufRead,BufNewFile Dockerfile* setfiletype dockerfile
|
|
au BufRead,BufNewFile Pipfile setfiletype toml
|
|
au BufWritePre *.py execute ':Black'
|
|
au QuickFixCmdPost *grep* cwindow
|
|
|
|
map ,t :w<CR>
|
|
map ,- :nohl<CR>
|
|
map ,w :%s/ *$//<CR>
|
|
|
|
let g:EditorConfig_exclude_patterns = ['fugitive://.*', 'scp://.*']
|
|
let g:airline_powerline_fonts = 1
|
|
let g:coc_global_extensions = ['coc-tsserver']
|
|
let g:coc_node_path = "/home/dan/.nvm/versions/node/v16.9.1/bin/node"
|
|
let g:go_fmt_command = "goimports"
|
|
let g:html_indent_script1 = "inc"
|
|
let g:html_indent_style1 = "inc"
|
|
let g:python_highlight_all = 1
|
|
let g:rustfmt_autosave = 1
|
|
let g:shfmt_extra_args = '-i 2'
|
|
let g:shfmt_fmt_on_save = 1
|
|
let g:terraform_align = 1
|
|
let g:terraform_fmt_on_save = 1
|
|
let g:vim_markdown_folding_disabled = 1
|
|
let g:vim_markdown_frontmatter = 1
|
|
let g:yapf_style = "pep8"
|
|
|
|
if has("python3")
|
|
python3 from powerline.vim import setup as powerline_setup
|
|
python3 powerline_setup()
|
|
python3 del powerline_setup
|
|
endif
|
|
|
|
packadd! dracula
|
|
colorscheme dracula
|
|
|
|
hi Comment cterm=NONE ctermfg=DarkRed gui=NONE guifg=red2
|
|
|
|
nmap <leader>sp :call <SID>SynStack()<CR>
|
|
function! <SID>SynStack()
|
|
if !exists("*synstack")
|
|
return
|
|
endif
|
|
echo map(synstack(line('.'), col('.')), 'synIDattr(v:val, "name")')
|
|
endfunc
|