Académique Documents
Professionnel Documents
Culture Documents
TABLE OF CONTENTS:
1. Generic settings
2. Vundle plugins
3. File settings
4. Specific filetype settings
5. Colors and UI
6. Maps and functions
" ===================
" 1. GENERIC SETTINGS
" ===================
set nocompatible " disable vi compatibility mode
set history=1000 " increase history size
" =================
" 2. VUNDLE PLUGINS
" =================
" Init Vundle
filetype off " required by Vundle.
set rtp+=~/.vim/bundle/vundle.vim
call vundle#begin()
" Vundleception. Vundle actually needs to manage Vundle.
Plugin 'gmarik/vundle.vim'
" Plug-ins
Plugin 'scrooloose/nerdtree'
Plugin 'tpope/vim-fugitive'
Plugin 'majutsushi/tagbar'
Plugin 'Valloric/YouCompleteMe'
Plugin 'rdnetto/YCM-Generator'
"
"
"
"
"
NERDtree
Fugitive
Tagbar
YouCompleteMe
YCM-Generator
"
"
"
"
"
Jekyll
Racket
jQuery
CoffeeScript
Gradle
" Colorschemes
Plugin 'endel/vim-github-colorscheme'
Plugin 'altercation/vim-colors-solarized'
Plugin 'sickill/vim-monokai'
Plugin 'benjaminwhite/Benokai'
Plugin 'cschlueter/vim-wombat'
Plugin 'chriskempson/vim-tomorrow-theme'
"
"
"
"
"
"
GitHub
Solarized
Monokai
Benokai
Wombat
Tomorrow
g:airline#extensions#tabline#enabled=1
g:airline_powerline_fonts=1
g:airline_theme='badwolf'
laststatus=2
"
"
"
"
"
=============================
4. SPECIFIC FILETYPE SETTINGS
=============================
WARNING: As soon as this section grows over one vertical screen, all
the content here should be moved to ftplugin folder. I'm serious.
set
set
set
set
set
set
"
"
"
"
"
"
nowrap
number
relativenumber
cursorline
cursorcolumn
showmatch
" =====================
" 6. MAPS AND FUNCTIONS
" =====================
let mapleader=","
" I GOTCHA, MAPLEADER _
" Make window navigation less painful.
" this one is taken from https://gist.github.com/JeffreyWay/6753834
map <C-h> <C-w>h
map <C-j> <C-w>j
map <C-k> <C-w>k
map <C-l> <C-w>l
" Better tabbing using <C-tab> (why didn't I think of this earlier?)
map <C-TAB> :tabn<CR>
map <C-S-TAB> :tabp<CR>
" NERDTree: map ,nt for toggling NERDTree. Faster than the old :NT command
" since I don't have to hold Shift whenever I want to display NERDTree.
command NT NERDTree
" Legacy. Classy. I didn't know the power of maps yet.
nmap <Leader>nt :NERDTreeToggle<cr>
nmap <F8> :TagbarToggle<CR>
:let g:NERDTreeWinSize=20
:let g:tagbar_width=20
" Now, in order to easily swap between relative numbers and non-relative
" numbers, let's declare a function that does the job for us: it sets
" relativenumbers if it's OFF, it unsets it if it's ON.
function! ToggleRelativeNumber()
if &relativenumber == 1
set norelativenumber
set number
else
set relativenumber
endif
endfunction
" Finally, to make toggling easier, I just have to map an unused key, such
" as F5. This mapping will work both in Normal and in Insert mode. By
" pressing this key, relative numbers are automatically toggled.
nmap <F5> :call ToggleRelativeNumber()<CR>
imap <F5> <Esc>:call ToggleRelativeNumber()<CR>a
" adiciones de lubeck
color monokai " inicia con el adorable color monokai
autocmd vimenter * NERDTree " inicia nerdtree por default
set mouse=a
" habilita el uso del mouse