Skip to content

Commit

Permalink
Update .vimrc
Browse files Browse the repository at this point in the history
  • Loading branch information
csr13 committed Apr 22, 2023
1 parent 02ef12e commit 54e2ebc
Showing 1 changed file with 13 additions and 18 deletions.
31 changes: 13 additions & 18 deletions vim/.vimrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@


if &t_Co > 1
syntax enable
endif
Expand All @@ -8,16 +6,6 @@ if has('mouse')
set mouse=a
endif

let g:netrw_banner = 0
let g:netrw_liststyle = 3
let g:netrw_browse_split = 4
let g:netrw_altv = 1
let g:netrw_winsize = 25
augroup ProjectDrawer
autocmd!
autocmd VimEnter * :Vexplore
augroup END

set nocompatible " Set compatibility to Vim only
set textwidth=85 " lines longer than 79 columns will be broken
set shiftwidth=4 " operation >> indents 4 columns; << unindents 4 columns
Expand All @@ -30,6 +18,17 @@ set splitright " split sp: to the right
set backspace=indent,eol,start
set completeopt-=preview

if filereadable(expand("~/.vimrc.plug"))
source ~/.vimrc.plug
endif

call plug#begin()
Plug 'junegunn/vim-easy-align'
Plug 'preservim/nerdtree'
Plug 'tpope/vim-fireplace'
Plug 'Valloric/YouCompleteMe'
call plug#end()

autocmd FileType html set omnifunc=htmlcomplete#CompleteTags
autocmd FileType html set textwidth=256

Expand All @@ -38,10 +37,6 @@ nnoremap <C-K> <C-W><C-K>
nnoremap <C-L> <C-W><C-L>
nnoremap <C-H> <C-W><C-H>
if filereadable(expand("~/.vimrc.plug"))
source ~/.vimrc.plug
endif

filetype plugin indent on " required
filetype plugin indent on

set laststatus=2 " required
set laststatus=2

0 comments on commit 54e2ebc

Please sign in to comment.