728x90

ctrlp vim

https://github.com/kien/ctrlp.vim

 

GitHub - kien/ctrlp.vim: Fuzzy file, buffer, mru, tag, etc finder.

Fuzzy file, buffer, mru, tag, etc finder. Contribute to kien/ctrlp.vim development by creating an account on GitHub.

github.com

 

ctrlp
set wildignore+=*/tmp/*,*.so,*.swp,*.zip     " Linux/MacOSX
let g:ctrlp_available=1
let g:ctrlp_by_filename=1
" nnoremap g :CtrlPYankRound
let g:ctrlp_user_command = 'find %s -type f'        " MacOSX/Linux
let g:ctrlp_custom_ignore = { 'dir':  '\v[\/](\.git|\.hg|\.svn|node_modules|aJs|vendor|gen|bower_components|web.*|dist|.*Zone.Identifier|assets)$', 'file': '\.pyc$\|\.pyo$\|\v\.(exe|so|dll|class|png|jpg|jpeg)$' }
let NERDTreeIgnore=['\.pyc$', 'aJs$', 'vendor$', 'gen$','bower_components$', 'dist$', 'node_modules$', 'Zone.Identifier$', '\.vim$', '\~$'] " Ignores for NERDTree
let g:ctrlp_root_markers = ['.ctrlp']
let g:ctrlp_max_height = 30
let g:ctrlproj_open_extensions = ['pdf', 'png']
let g:ctrlproj_configuration_path = '~/.vim/.ctrlproj'
let g:ctrlp_yankring_disable = 1
func! MyCtrlPTag()
    CtrlPTag
endfunc
com! MyCtrlPTag call MyCtrlPTag()

nnoremap SJ :CtrlPBuffer
nnoremap SD :CtrlPDir
nnoremap SN :CtrlPMRUFiles
nnoremap SM :CtrlPCmdline
nnoremap ST :CtrlPTag
nnoremap SQ :CtrlPQuickfix
nnoremap SY :CtrlPLine

nnoremap SE :CtrlprojEdit
nnoremap SR :Ctrlproj
nnoremap SL :CtrlprojLastDir

nnoremap SC :CtrlPMenu
nnoremap SP :CtrlP

 

파일 찾기 Buffer Dir 등 많은기능을 지원함

Nerd tree 에서 갈아탈예정

 

transalte vim

Plug 'skanehira/translate.vim'

 

nmap <C-q> :Translate<CR>

let g:translate_source = "en"
let g:translate_target = "kr"
let g:translate_popup_window = 0 " if you want use popup window, set value 1
let g:translate_winsize = 10 " set buffer window height size if you doesn't use popup window

 

영어문서를 한국어로 번역해서 보기위한 번역기

Ctrl - q 에 맵핑해서 사용하는중

 

Ack vim

Plug 'mileszs/ack.vim'
:Ack 검색하고싶은 문자열

해당 문자열이 들어간 파일을 찾고싶을때 쓴다. 매우유용함 

 

 

계속해서 업데이트 해나갈 예정입니다.

728x90