what I am using with vim now ?
vundle https://github.com/VundleVim/Vundle.vim
Plugins:
Plugin 'VundleVim/Vundle.vim' |~
Plugin 'tpope/vim-fugitive' |~
Plugin 'L9' |~
Plugin 'Valloric/YouCompleteMe' |~
Plugin 'shawncplus/phpcomplete.vim' |~
Plugin 'scrooloose/nerdTree' |~
Plugin 'altercation/vim-colors-solarized' |~
Plugin 'ctrlp.vim'
~/.vimrc content ( personal preference)
set number "show line number
set tabstop=4 "set tab stop 4 spaces
set encoding=utf-8 "set encoding utf-8
" NERD tree config
nmap <C-\> :NERDTreeToggle<cr>
set autoindent
set copyindent
" color config
syntax enable
set background=dark
colorscheme solarized
" ctrlp option
let g:ctrlp_map = '<c-p>'
let g:ctrlp_cmd = 'CtrlP'
Some shortcuts that I used to use:
gg " go to top
GG " goto bottom
:q " quit current file
:q! " quit without saving file
:wq " write and quite file
:line_number " go to line
:%s/search_string/replace_string "search and replace
/search_string "search a string
Ctrl + \ "nerd tree menu
Ctrl + ww " switch between 2 buffer
when I want to run external bash cmd (:! semi and bang)
:! command
"for eg
:! php -v
why vim ?:
fast, convenience with shortcut, search with regular expression …