-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvimrc
More file actions
122 lines (107 loc) · 4.46 KB
/
Copy pathvimrc
File metadata and controls
122 lines (107 loc) · 4.46 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
"
"" ~/.vimrc
"
"
"" Compability {{{
" -----------------------------------------------------------------------------
" "
set nocompatible " use vim defaults instead of vi
set encoding=utf-8 " always encode in utf
" Required:
set runtimepath+=/home/biyer/.vim/bundle/neobundle.vim/
" Required:
call neobundle#begin(expand('/home/biyer/.vim/bundle'))
" Let NeoBundle manage NeoBundle
" Required:
NeoBundleFetch 'Shougo/neobundle.vim'
" Add or remove your Bundles here:
NeoBundle 'Shougo/neosnippet.vim'
NeoBundle 'Shougo/neosnippet-snippets'
NeoBundle 'tpope/vim-fugitive'
NeoBundle 'ctrlpvim/ctrlp.vim'
NeoBundle 'flazz/vim-colorschemes'
NeoBundle 'AutoComplPop'
NeoBundle 'vim-airline/vim-airline'
NeoBundle 'vim-airline/vim-airline-themes'
NeoBundle 'christoomey/vim-tmux-navigator'
NeoBundle 'jlanzarotta/bufexplorer'
NeoBundle 'rhysd/vim-clang-format'
NeoBundle 'hynek/vim-python-pep8-indent'
NeoBundle 'airblade/vim-gitgutter'
NeoBundle 'vim-scripts/StripWhiteSpaces'
" You can specify revision/branch/tag.
NeoBundle 'Shougo/vimshell', { 'rev' : '3787e5' }
" Creating a custom plugin to map all override settings
" This ensures the vimrc which is the base file remains free from all clutter
" Also makes it easier to make quick changes by separating general changes
" from plugin specific changes
NeoBundle '~/.vim/settings/', { 'type': 'nosync' }
" Required:
call neobundle#end()
" Required:
filetype plugin indent on
" If there are uninstalled bundles found on startup,
" this will conveniently prompt you to install them.
NeoBundleCheck
"End NeoBundle Scripts-------------------------
"}}}
"" Settings {{{
" -----------------------------------------------------------------------------
"
" " File detection
syntax on
set background=dark
colorscheme solarized
"
" " General
set backspace=2 " enable <BS> for everything
" set colorcolumn=80 " visual indicator of column
set number " Show line numbers
set completeopt=longest,menuone " Autocompletion options
set complete=.,w,b,u,t,i,d " autocomplete options (:help 'complete')
set hidden " hide when switching buffers, don't unload
set laststatus=2 " always show status line
set lazyredraw " don't update screen when executing macros
set mouse=a " enable mouse in all modes
set noshowmode " don't show mode, since I'm already using airline
set nowrap " disable word wrap
set showbreak="+++ " " String to show with wrap lines
set number " show line numbers
set showcmd " show command on last line of screen
set showmatch " show bracket matches
" set spelllang=es " spell
" set spellfile=~/.vim/spell/es.utf-8.add
set textwidth=0 " don't break lines after some maximum width
set ttyfast " increase chars sent to screen for redrawing
" set ttyscroll=3 " limit lines to scroll to speed up display
set title " use filename in window title
set wildmenu " enhanced cmd line completion
set wildchar=<TAB> " key for line completion
set noerrorbells " no error sound
set splitright " Split new buffer at right
"
" " Folding
set foldignore= " don't ignore anything when folding
set foldlevelstart=99 " no folds closed on open
set foldmethod=marker " collapse code using markers
set foldnestmax=1 " limit max folds for indent and syntax methods
"
" " Tabs
set autoindent " copy indent from previous line
set expandtab " replace tabs with spaces
set shiftwidth=4 " spaces for autoindenting
set smarttab " <BS> removes shiftwidth worth of spaces
set softtabstop=4 " spaces for editing, e.g. <Tab> or <BS>
set tabstop=4 " spaces for <Tab>
"
" " Searches
set hlsearch " highlight search results
set incsearch " search whilst typing
set ignorecase " case insensitive searching
set smartcase " override ignorecase if upper case typed
set more " Stop in list
"
" " Mapping leader here
" The leader is common to many plugins, so added here to make sure that it is
" global to all the plugin settings
let mapleader = ","