Browse Source

Update vimrc

neuraflash
Brandon Cornejo 11 years ago
parent
commit
911b6f25e4
  1. 30
      vimrc

30
vimrc

@ -1,3 +1,4 @@
set shell=/bin/bash
set nocompatible set nocompatible
set laststatus=2 set laststatus=2
set encoding=utf-8 set encoding=utf-8
@ -11,7 +12,7 @@ if has("autocmd")
filetype indent on filetype indent on
filetype plugin on filetype plugin on
set ofu=syntaxcomplete#Complete set ofu=syntaxcomplete#Complete
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == "primary") | q | endif
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == \"primary") | q | endif
endif endif
" basic options " basic options
@ -20,6 +21,26 @@ set number
set nowrap set nowrap
set autoindent set autoindent
set backspace=indent,eol,start
set complete-=i
set showmatch
set smarttab
set incsearch
set ruler
set showcmd
set wildmenu
"set foldmethod=syntax
"set foldcolumn=1
if !&scrolloff
set scrolloff=1
endif
if !&sidescrolloff
set sidescrolloff=5
endif
set display+=lastline
" spaces not tabs, etc " spaces not tabs, etc
set tabstop=8 set tabstop=8
set softtabstop=4 set softtabstop=4
@ -58,6 +79,7 @@ Bundle 'Lokaltog/vim-powerline.git'
Bundle 'Lokaltog/vim-distinguished.git' Bundle 'Lokaltog/vim-distinguished.git'
Bundle 'scrooloose/nerdtree.git' Bundle 'scrooloose/nerdtree.git'
Bundle 'ervandew/supertab.git' Bundle 'ervandew/supertab.git'
Bundle 'myusuf3/numbers.vim.git'
" toggle showing nerd-tree " toggle showing nerd-tree
:nmap <leader>e :NERDTreeToggle<CR> :nmap <leader>e :NERDTreeToggle<CR>
@ -65,9 +87,13 @@ Bundle 'ervandew/supertab.git'
" end tags with a key " end tags with a key
imap ,/ </<C-X><C-O> imap ,/ </<C-X><C-O>
" xml validation
:nmap <leader>; :%w !xmllint --valid --noout -
" toggle line wrap " toggle line wrap
:nmap <leader>w :setlocal wrap!<CR>:setlocal wrap?<CR> :nmap <leader>w :setlocal wrap!<CR>:setlocal wrap?<CR>
" dem fancy colors " dem fancy colors
set t_Co=256
" set t_Co=256
"colorscheme ir_black " for macvim
colorscheme distinguished colorscheme distinguished
Loading…
Cancel
Save