refactor: clean up vimrc - remove unused gruvbox, autochdir, duplicate syntax
This commit is contained in:
7
vimrc
7
vimrc
@@ -11,7 +11,6 @@ call vundle#begin()
|
|||||||
Plugin 'VundleVim/Vundle.vim'
|
Plugin 'VundleVim/Vundle.vim'
|
||||||
|
|
||||||
" Plugins
|
" Plugins
|
||||||
Plugin 'morhetz/gruvbox'
|
|
||||||
Plugin 'preservim/nerdtree'
|
Plugin 'preservim/nerdtree'
|
||||||
Plugin 'tpope/vim-fugitive'
|
Plugin 'tpope/vim-fugitive'
|
||||||
Plugin 'tpope/vim-surround'
|
Plugin 'tpope/vim-surround'
|
||||||
@@ -43,18 +42,16 @@ set guioptions=
|
|||||||
set showmode
|
set showmode
|
||||||
set showtabline=0
|
set showtabline=0
|
||||||
set smartcase
|
set smartcase
|
||||||
set autochdir
|
|
||||||
set number
|
set number
|
||||||
set ruler
|
set ruler
|
||||||
set wrap linebreak nolist
|
set wrap linebreak nolist
|
||||||
set textwidth=80
|
|
||||||
set cursorline
|
set cursorline
|
||||||
|
autocmd FileType text,markdown setlocal textwidth=80
|
||||||
|
|
||||||
" Force 256 color support
|
" Force 256 color support
|
||||||
set t_Co=256
|
set t_Co=256
|
||||||
|
|
||||||
" Enable syntax highlighting
|
" Enable syntax highlighting
|
||||||
syntax enable
|
|
||||||
syntax on
|
syntax on
|
||||||
|
|
||||||
" Set syntax highlight for specified file types
|
" Set syntax highlight for specified file types
|
||||||
@@ -154,7 +151,7 @@ if &term =~ "xterm-256color\\|rxvt"
|
|||||||
let &t_SR = "\033]Plf00000\033\\"
|
let &t_SR = "\033]Plf00000\033\\"
|
||||||
let &t_EI = "\033]Plff8708\033\\"
|
let &t_EI = "\033]Plff8708\033\\"
|
||||||
autocmd VimEnter * let &t_EI = "\033]Plff8708\033\\" | redraw
|
autocmd VimEnter * let &t_EI = "\033]Plff8708\033\\" | redraw
|
||||||
autocmd VimLeave * call writefile(["\033]Plc1ffc1\033\\"], '/dev/tty')
|
autocmd VimLeave * try | call writefile(["\033]Plc1ffc1\033\\"], '/dev/tty') | catch | endtry
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" Show tabs and trails
|
" Show tabs and trails
|
||||||
|
|||||||
Reference in New Issue
Block a user