You are not logged in.
Pages: 1
VIM plugin managers? I'm new to VIM (I've always used nano and various other editors) and have been seeing stuff about vundle, pathogen etc etc.
Do you folks use any VIM plugin managers and if so, which ones and why? What would you recommend?
Red
Knowledge Ferret
Offline
Thanks M,
It does indeed look simple to migrate to the new vim built in package manger when it eventually hits stable.
I've been fleshing out my .vimrc based on advice cribbed from the interwebs.
Anything useful to add to this:
1 execute pathogen#infect()
2
3 colorscheme happy_hacking " set colour scheme
4 syntax enable " enable syntax processing
5 set tabstop=4 " number of visual spaces per TAB
6 set softtabstop=4 " number of spaces in tab when editing
7 set expandtab " tabs are spaces
8 set ruler " always shows location in file (line#)
9 set smarttab " autotabs for certain code
10 set shiftwidth=4 " ensure indent corresponds to a single tab width
11 set number " show line numbers
12 set showcmd " show command in bottom bar
13 set cursorline " highlight current line
14 set wildmenu " visual autocomplete for command menu
15 set lazyredraw " redraw only when we need to
16 set showmatch " highlight matching [{()}]
(line numbers are from vim, not the file)
Red
Knowledge Ferret
Offline
I don't know very well because I don't know your use case, but below is my vimrc. Some select features I use:
Persistent and (semi) infinite undo: remember undo history for every file you ever edited. Paired with https://github.com/mhinz/vim-startify.
Limit application of syntax highlighting to 400 columns to avoid lag in files with lines 9000 characters long.
Modelines.
execute pathogen#infect()
set autoindent
set backspace=2
set backupdir=$HOME/.vim/swap
set ch=2
set directory=$HOME/.vim/swap
set expandtab
set formatoptions+=nmM
set hidden
set hlsearch
set ignorecase
set incsearch
set laststatus=2
set lazyredraw
set mat=5
set nocompatible
set noshowcmd
set nostartofline
set nowrap
set number
set ruler
set shiftwidth=2
set showmatch
set smartindent
set smarttab
set softtabstop=2
set synmaxcol=400
set t_Co=256
set tabstop=2
set textwidth=72
set ttyfast
set undodir=$HOME/.vim/undo
set undofile
set undolevels=10000
set undoreload=10000
set virtualedit=block
set visualbell
set wildchar=<Tab> wildmenu wildmode=full
set wildmenu
filetype plugin indent on
set modeline
set modelines=2
syntax on
"let g:mirodark_disable_color_approximation=1
"colorscheme mirodark
"set background=dark
"let g:hybrid_custom_term_colors=1
"colorscheme hybrid
"set background=dark
"colorscheme badwolf
"colorscheme harlequin
"colorscheme jellybeans
"colorscheme kolor
"colorscheme PaperColor
"colorscheme jellybeans
"
set bg=dark
let g:gruvbox_improved_strings=0
let g:gruvbox_termcolors=256
let g:gruvbox_contrast_dark='hard'
colorscheme gruvbox
"colorscheme monokai
" Colorscheme fixes
highlight ColorColumn ctermbg=0
highlight Todo cterm=bold ctermbg=none ctermfg=Green
highlight Search cterm=bold ctermbg=Black ctermfg=Green
highlight SpellBad ctermbg=Black ctermfg=Red
noremap <Up> <nop>
noremap <Down> <nop>
noremap <Left> <nop>
noremap <Right> <nop>
nmap <F2> :make pdf<cr>
nmap <F3> :make -B pdf<cr>
nmap <F4> :lcd %:p:h<cr>
nmap <F5> :tabnew %:p:h<cr>
nmap <F6> :make viewbg<cr>
nmap <F8> :TagbarToggle<cr>
nmap <F10> :make!<cr>
nmap <F11> :!zathura %:r.pdf &>/dev/null&<cr><cr>
nmap <F12> :source %:p<cr>
nmap <F9> :NeoCompleteToggle<cr>
nmap <leader>+ :nohlsearch<cr>
nmap <space> zz
""" airline
let g:airline#extensions#tabline#enabled=1
let g:airline_left_sep=''
let g:airline_right_sep=''
let g:airline_theme='gruvbox'
let g:airline#extension#whitespace#enabled=0
""" neocomplete
let g:acp_enableAtStartup=0
let g:neocomplete#enable_at_startup=1
let g:neocomplete#enable_smart_case=1
let g:neocomplete#sources#syntax#min_keyword_length=3
let g:neocomplete#lock_buffer_name_pattern='\*ku\*'
if !exists('g:neocomplete#keyword_patterns')
let g:neocomplete#keyword_patterns={}
endif
let g:neocomplete#keyword_patterns['default']='\h\w*'
function! s:my_cr_function()
return neocomplete#close_popup() . "\<CR>"
endfunction
if !exists('g:neocomplete#sources#omni#input_patterns')
let g:neocomplete#sources#omni#input_patterns={}
endif
nmap <F9> :NeoCompleteToggle<cr>
inoremap <expr><C-g> neocomplete#undo_completion()
inoremap <expr><C-l> neocomplete#complete_common_string()
inoremap <silent> <CR> <C-r>=<SID>my_cr_function()<CR>
inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"
inoremap <expr><C-h> neocomplete#smart_close_popup()."\<C-h>"
inoremap <expr><BS> neocomplete#smart_close_popup()."\<C-h>"
inoremap <expr><C-y> neocomplete#close_popup()
inoremap <expr><C-e> neocomplete#cancel_popup()
autocmd VimEnter * NeoCompleteLock
autocmd FileType css setlocal omnifunc=csscomplete#CompleteCSS
autocmd FileType html,markdown setlocal omnifunc=htmlcomplete#CompleteTags
autocmd FileType javascript setlocal omnifunc=javascriptcomplete#CompleteJS
autocmd FileType python setlocal omnifunc=pythoncomplete#Complete
autocmd FileType xml setlocal omnifunc=xmlcomplete#CompleteTags
" tagbar
let g:tagbar_compact=1
nmap <F8> :TagbarToggle<CR>
" mutt
autocmd BufNewFile,BufRead mutt-* set tw=72 autoindent noruler syntax=mail
set path+=/usr/include/lua5.2
call matchadd('ColorColumn', '\%73v', 100)
Offline
Cheers folks, there's some useful stuff in there.
Red
Knowledge Ferret
Offline
On top of vim-pathogen, I use Homeshick for a larger dotfiles management encompassing the vimrc file and vim plugins. I have forks when I want vim to do different things and can revert when I do something stupid.
Offline
Not sure if this threads gonna get a [Solved].. (prob not )
so here is what I use and like the most like vim-plug.
For 'expertise' I can only say, that I used pathogen before, and I moved, because vim-plug can update my plugins neatly (not sure if pathogen does it).
Also the lines in .vimrc that the Plugins need to be enabled.. I like the synthax.
regards
Offline
Is "Packages" in Vim 8 supposed to replace all those?
https://github.com/vim/vim/blob/master/ … rsion8.txt
http://vimhelp.appspot.com/repeat.txt.html#packages
Last edited by brontosaurusrex (2017-01-19 11:55:35)
Offline
Is "Packages" in Vim 8 supposed to replace all those?
https://github.com/vim/vim/blob/master/ … rsion8.txt
http://vimhelp.appspot.com/repeat.txt.html#packages
There are good chances on that. And I guess its intentional, to do exactly just that.
But you probably want some Plugin for you to manage updating your Plugins / 'packpath'.
I'd say that you want that Packages feature, because you don't want to have poorly written plugins polluting your configs. ( not sure if it does that. But I assume..)
But you still want to have things done beyond that.
Offline
imp2021: Right, it doesn't seem to update stuff. (Which can be also intentional)
Offline
Pages: 1