cleaned up vimrc
This commit is contained in:
parent
1acbe9191c
commit
c1aae05d32
40
vimrc
40
vimrc
@ -1,19 +1,9 @@
|
|||||||
" Don't try to be vi compatible
|
" Don't try to be vi compatible
|
||||||
set nocompatible
|
set nocompatible
|
||||||
" Helps force plugins to load correctly when it is turned back on below
|
|
||||||
filetype off
|
|
||||||
|
|
||||||
" TODO: Load plugins here (pathogen or vundle)
|
" TODO: Load plugins here (pathogen or vundle)
|
||||||
|
|
||||||
" Turn on syntax highlighting
|
" Turn on syntax highlighting
|
||||||
syntax on
|
syntax on
|
||||||
|
|
||||||
" For plugins to load correctly
|
|
||||||
filetype plugin indent on
|
|
||||||
|
|
||||||
" TODO: Pick a leader key
|
|
||||||
" let mapleader = ","
|
|
||||||
|
|
||||||
" Security
|
" Security
|
||||||
set modelines=0
|
set modelines=0
|
||||||
|
|
||||||
@ -30,8 +20,6 @@ set visualbell
|
|||||||
set encoding=utf-8
|
set encoding=utf-8
|
||||||
|
|
||||||
" Whitespace
|
" Whitespace
|
||||||
set wrap
|
|
||||||
set textwidth=79
|
|
||||||
set formatoptions=tcqrn1
|
set formatoptions=tcqrn1
|
||||||
set tabstop=2
|
set tabstop=2
|
||||||
set shiftwidth=2
|
set shiftwidth=2
|
||||||
@ -43,8 +31,6 @@ set noshiftround
|
|||||||
set scrolloff=3
|
set scrolloff=3
|
||||||
set backspace=indent,eol,start
|
set backspace=indent,eol,start
|
||||||
set matchpairs+=<:> " use % to jump between pairs
|
set matchpairs+=<:> " use % to jump between pairs
|
||||||
runtime! macros/matchit.vim
|
|
||||||
|
|
||||||
" Move up/down editor lines
|
" Move up/down editor lines
|
||||||
nnoremap j gj
|
nnoremap j gj
|
||||||
nnoremap k gk
|
nnoremap k gk
|
||||||
@ -63,8 +49,6 @@ set showmode
|
|||||||
set showcmd
|
set showcmd
|
||||||
|
|
||||||
" Searching
|
" Searching
|
||||||
"nnoremap / /\v
|
|
||||||
"vnoremap / /\v
|
|
||||||
set hlsearch
|
set hlsearch
|
||||||
set incsearch
|
set incsearch
|
||||||
set ignorecase
|
set ignorecase
|
||||||
@ -80,13 +64,6 @@ vnoremap <F1> :set invfullscreen<CR>
|
|||||||
" Formatting
|
" Formatting
|
||||||
map <leader>q gqip
|
map <leader>q gqip
|
||||||
|
|
||||||
" Visualize tabs and newlines
|
|
||||||
set listchars=tab:▸\ ,eol:¬
|
|
||||||
" Uncomment this to enable by default:
|
|
||||||
" set list " To enable by default
|
|
||||||
" Or use your leader key + l to toggle on/off
|
|
||||||
map <leader>l :set list!<CR> " Toggle tabs and EOL
|
|
||||||
|
|
||||||
set t_Co=256
|
set t_Co=256
|
||||||
set background=dark
|
set background=dark
|
||||||
let g:solarized_termcolors=256
|
let g:solarized_termcolors=256
|
||||||
@ -99,30 +76,15 @@ filetype off " required
|
|||||||
" set the runtime path to include Vundle and initialize
|
" set the runtime path to include Vundle and initialize
|
||||||
set rtp+=~/.vim/bundle/Vundle.vim
|
set rtp+=~/.vim/bundle/Vundle.vim
|
||||||
call vundle#begin()
|
call vundle#begin()
|
||||||
" alternatively, pass a path where Vundle should install plugins
|
|
||||||
"call vundle#begin('~/some/path/here')
|
"call vundle#begin('~/some/path/here')
|
||||||
|
|
||||||
" let Vundle manage Vundle, required
|
|
||||||
Plugin 'VundleVim/Vundle.vim'
|
Plugin 'VundleVim/Vundle.vim'
|
||||||
Plugin 'tomasiser/vim-code-dark'
|
Plugin 'tomasiser/vim-code-dark'
|
||||||
" The following are examples of different formats supported.
|
|
||||||
" Keep Plugin commands between vundle#begin/end.
|
|
||||||
" plugin on GitHub repo
|
|
||||||
Plugin 'tpope/vim-fugitive'
|
Plugin 'tpope/vim-fugitive'
|
||||||
" plugin from http://vim-scripts.org/vim/scripts.html
|
|
||||||
" Plugin 'L9'
|
|
||||||
" Git plugin not hosted on GitHub
|
|
||||||
Plugin 'git://git.wincent.com/command-t.git'
|
Plugin 'git://git.wincent.com/command-t.git'
|
||||||
" git repos on your local machine (i.e. when working on your own plugin)
|
|
||||||
" The sparkup vim script is in a subdirectory of this repo called vim.
|
|
||||||
" Pass the path to set the runtimepath properly.
|
|
||||||
Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
|
|
||||||
" Install L9 and avoid a Naming conflict if you've already installed a
|
|
||||||
" different version somewhere else.
|
|
||||||
" Plugin 'ascenator/L9', {'name': 'newL9'}
|
|
||||||
Plugin 'vim-airline/vim-airline'
|
Plugin 'vim-airline/vim-airline'
|
||||||
Plugin 'vim-airline/vim-airline-themes'
|
Plugin 'vim-airline/vim-airline-themes'
|
||||||
Plugin 'preservim/nerdtree'
|
Plugin 'preservim/nerdtree'
|
||||||
|
Plugin 'Xuyuanp/nerdtree-git-plugin'
|
||||||
" All of your Plugins must be added before the following line
|
" All of your Plugins must be added before the following line
|
||||||
call vundle#end() " required
|
call vundle#end() " required
|
||||||
filetype plugin indent on " required
|
filetype plugin indent on " required
|
||||||
|
Loading…
Reference in New Issue
Block a user