Vim as My IDE Update 1

A few months ago I posted about usingĀ Vim as my primary IDE. Since then I’ve fallen in love with Vim and have made a few more changes to my .vimrc file. Here is my current .vimrc:

" ------------------
"       Plugins
" ------------------
call plug#begin('~/.vim/plugged')

Plug 'altercation/vim-colors-solarized'
Plug 'bronson/vim-trailing-whitespace'
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
Plug 'Xuyuanp/nerdtree-git-plugin'
Plug 'jistr/vim-nerdtree-tabs'
Plug 'ap/vim-buftabline'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'taglist.vim'
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
Plug 'junegunn/fzf.vim'
Plug 'joonty/vdebug'
Plug 'airblade/vim-gitgutter'
Plug 'tpope/vim-fugitive'
Plug 'ervandew/supertab'
Plug 'vim-scripts/SearchComplete'
Plug 'scrooloose/nerdcommenter'
Plug 'tobyS/pdv'
Plug 'StanAngeloff/php.vim'
Plug 'scrooloose/syntastic'
Plug 'joonty/vim-taggatron'
Plug 'groenewege/vim-less'

call plug#end()

" -- ctrl-p plugin conf
"set runtimepath^=~/.vim/bundle/ctrlp.vim

" -- solarized personal conf
set background=dark
try
 colorscheme luna
catch
endtry

" -- airline plugin conf
set laststatus=2
"let g:airline_powerline_fonts = 1
"if !exists('g:airline_symbols')
" let g:airline_symbols = {}
"endif
"let g:airline_symbols.space = "\ua0"

" -- vdebug plugin conf
if exists('g:vdebug_options["break_on_open"]')
 let g:vdebug_options["break_on_open"] = 0
endif

" -------------------------------
" Basic Configurations
" -------------------------------

" -- tabwidth set to 4
set tabstop=8 softtabstop=0 expandtab shiftwidth=4 smarttab

" -- show 80th and 120th column
let &colorcolumn="80,".join(range(120,999),",")
highlight ColorColumn ctermbg=0

" -- highlight search matches
set hlsearch

" -- numbered lines
set number

" -- enable mouse support
"set mouse=a

" -- set buffers to hidden
set hidden

" -- path to php.tags
set tags=/var/www/mage19/php.tags

" ---------------------
" Key Mapping
" ---------------------

" -- NERDTree
map <C-n> :NERDTreeToggle<CR>

" -- fuzzy finder
map <C-p> :FZF<CR>

" -- taglist
map <C-t> :TlistToggle<CR>

" -- highlight search matches
"map <C-f> :set hlsearch!<CR>

" -- copy file name
nmap ,cs :let @"+=expand("%")<CR>

" -- copy full file path
nmap ,cl :let @"+=expand("%:p")<CR>

Leave a Reply