-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinit.vim
More file actions
85 lines (81 loc) · 2.36 KB
/
init.vim
File metadata and controls
85 lines (81 loc) · 2.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
call plug#begin('~/.config/nvim/plugged')
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
Plug 'junegunn/fzf.vim'
Plug 'rking/ag.vim'
Plug 'Xuyuanp/nerdtree-git-plugin'
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
Plug 'https://github.com/altercation/vim-colors-solarized.git'
Plug 'scrooloose/nerdcommenter'
Plug 'udalov/kotlin-vim'
Plug 'JamshedVesuna/vim-markdown-preview'
Plug 'neomake/neomake'
Plug 'vim-airline/vim-airline'
Plug 'posva/vim-vue'
Plug 'Shougo/unite.vim'
Plug 'Quramy/vison'
Plug 'vim-syntastic/syntastic'
Plug 'editorconfig/editorconfig-vim'
Plug 'airblade/vim-gitgutter'
Plug 'terryma/vim-multiple-cursors'
Plug 'tpope/vim-surround'
Plug 'sebdah/vim-delve'
Plug 'maksimr/vim-jsbeautify'
Plug 'mcchrish/nnn.vim'
Plug 'elmcast/elm-vim'
call plug#end()
if has('nvim')
au VimEnter * set wildmode=full
endif
if !&scrolloff
set scrolloff=3
endif
syntax enable
filetype plugin indent on
set nocompatible
set encoding=utf-8
set enc=utf-8
set fileencoding=utf-8
set fileencodings=ucs-bom,utf8,prc
set showcmd
set tabstop=2
set shiftwidth=2
set nofoldenable
set expandtab
set backspace=indent,eol,start
set clipboard+=unnamedplus
set autoindent
set number
set relativenumber
set ignorecase
set smartcase
set incsearch " Incremental searching
set hlsearch " Highlight matches
set showmatch " Show match numbers
set guioptions-=m " Remove menu in GUI
set guioptions-=T " Remove toolbar in GUI
set showmode
set list
set ruler
set nobackup
set nowritebackup
set noswapfile
set listchars=tab:▸\ ,eol:¬
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let vim_markdown_preview_toggle=2
let vim_markdown_preview_github=1
let g:airline#extensions#tabline#enabled=1
let NERDTreeShowHidden=1
let NERDTreeDirArrows = 1
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
let g:syntastic_javascript_checkers = ['eslint']
let g:syntastic_javascript_eslint_exec = 'eslint_d'
let mapleader="," " Use comma as <leader>
autocmd InsertEnter * :set number
autocmd InsertLeave * :set relativenumber
autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * if argc() == 1 && isdirectory(argv()[0]) && !exists("s:std_in") | exe 'NERDTree' argv()[0] | wincmd p | ene | endif