vim: more conf for fzf, nerdtree and add cosco
This commit is contained in:
parent
7f42be1e5d
commit
c37cd39404
24
.vimrc
24
.vimrc
@ -3,6 +3,8 @@
|
||||
"""""""""""""
|
||||
" F1 help
|
||||
" S-F1 open vimrc
|
||||
" M-S-F1 vim help
|
||||
" C-F1 LSP Menu
|
||||
" F2 open file in a new tab
|
||||
" S-F2 Split and open file
|
||||
" F3 autotags Update
|
||||
@ -14,7 +16,7 @@
|
||||
" F8 view tag list
|
||||
" S-F8 Open DB building menu
|
||||
" M-F8 build kernel ctags/cscope databases
|
||||
" F9 Open NerdTree
|
||||
" F9 Open NerdTree. s to open in split. t to open in tab
|
||||
" M-F9 Show diff line
|
||||
" S-F9 Highlight diff line
|
||||
" F10 folding
|
||||
@ -31,6 +33,7 @@
|
||||
" from a.vim
|
||||
" :A[SVTN] Switch between header/file , split, vertical, tab, next match
|
||||
" :IH[SVTN] Switch to file under cursor
|
||||
"\o to run FZF
|
||||
" Use snippets with tab e.g : for <tab> (see .vim/bundle/vim-snippets/snippets for available
|
||||
" snippets)
|
||||
" look at :help index
|
||||
@ -192,6 +195,8 @@ augroup IrisPython
|
||||
au BufRead,BufNewFile *.iris set ft=python
|
||||
au BufRead,BufNewFile *.ino set tabstop=4 shiftwidth=4 softtabstop=4
|
||||
au BufRead,BufNewFile *.asm set ft=nasm
|
||||
"hand written GNU AS
|
||||
au BufRead,BufNewFile *.S set ft=asm
|
||||
|
||||
" python
|
||||
" autocmd FileType python set tabstop=4|set shiftwidth=4|set expandtab
|
||||
@ -462,6 +467,7 @@ cnoremap w!! execute 'silent! write !sudo tee % >/dev/null' <bar> edit!
|
||||
augroup NerdGroup
|
||||
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == "primary") | q | endif
|
||||
map <F9> :NERDTreeToggle<CR>
|
||||
let NERDTreeIgnore= ['\.o$', '\.d$']
|
||||
augroup END
|
||||
|
||||
"""""""""""
|
||||
@ -625,9 +631,15 @@ Plugin 'majutsushi/tagbar'
|
||||
|
||||
" Fuzzy finder
|
||||
Plugin 'junegunn/fzf'
|
||||
Plugin 'junegunn/fzf.vim'
|
||||
nnoremap <silent> <leader>o :FZF<CR>
|
||||
nnoremap <silent> <leader>O :FZF!<CR>
|
||||
|
||||
" Insert mode completion
|
||||
imap <c-x><c-k> <plug>(fzf-complete-word)
|
||||
imap <c-x><c-f> <plug>(fzf-complete-path)
|
||||
imap <c-x><c-l> <plug>(fzf-complete-line)
|
||||
|
||||
if v:version >= 800
|
||||
" Async lint
|
||||
" Plugin 'w0rp/ale'
|
||||
@ -671,11 +683,6 @@ else
|
||||
"let g:syntastic_cpp_compiler_options = '-std=c++14'
|
||||
endif
|
||||
|
||||
"Android integration
|
||||
"Plugin 'hsanson/vim-android'
|
||||
" let g:android_sdk_path="~/Android/Sdk/"
|
||||
"background task
|
||||
Plugin 'tpope/vim-dispatch'
|
||||
"Completion (need more configuration for python, c# ...)
|
||||
"Plugin 'Valloric/YouCompleteMe'
|
||||
" VimWiki
|
||||
@ -818,4 +825,9 @@ Plugin 'pgilad/vim-skeletons'
|
||||
let skeletons#autoRegister = 1
|
||||
let skeletons#skeletonsDir = ["~/.vim/templates/"]
|
||||
"let skeletons#skeletonsDir += ["~/.vim/bundle/vim-skeletons/skeletons/"]
|
||||
|
||||
Plugin 'lfilho/cosco.vim'
|
||||
autocmd FileType c,cpp nmap <silent> <Leader>; <Plug>(cosco-commaOrSemiColon)
|
||||
autocmd FileType c,cpp imap <silent> <Leader>; <c-o><Plug>(cosco-commaOrSemiColon)
|
||||
|
||||
call vundle#end()
|
||||
|
Loading…
Reference in New Issue
Block a user